summaryrefslogtreecommitdiff
path: root/roles
AgeCommit message (Collapse)Author
2015-04-14Configuration updates for latest builds and major refactorJason DeTiberus
Configuration updates for latest builds - Switch to using create-node-config - Switch sdn services to use etcd over SSL - This re-uses the client certificate deployed on each node - Additional node registration changes - Do not assume that metadata service is available in openshift_facts module - Call systemctl daemon-reload after installing openshift-master, openshift-sdn-master, openshift-node, openshift-sdn-node - Fix bug overriding openshift_hostname and openshift_public_hostname in byo playbooks - Start moving generated configs to /etc/openshift - Some custom module cleanup - Add known issue with ansible-1.9 to README_OSE.md - Update to genericize the kubernetes_register_node module - Default to use kubectl for commands - Allow for overriding kubectl_cmd - In openshift_register_node role, override kubectl_cmd to openshift_kube - Set default openshift_registry_url for enterprise when deployment_type is enterprise - Fix openshift_register_node for client config change - Ensure that master certs directory is created - Add roles and filter_plugin symlinks to playbooks/common/openshift-master and node - Allow non-root user with sudo nopasswd access - Updates for README_OSE.md - Update byo inventory for adding additional comments - Updates for node cert/config sync to work with non-root user using sudo - Move node config/certs to /etc/openshift/node - Don't use path for mktemp. addresses: https://github.com/openshift/openshift-ansible/issues/154 Create common playbooks - create common/openshift-master/config.yml - create common/openshift-node/config.yml - update playbooks to use new common playbooks - update launch playbooks to call update playbooks - fix openshift_registry and openshift_node_ip usage Set default deployment type to origin - openshift_repo updates for enabling origin deployments - also separate repo and gpgkey file structure - remove kubernetes repo since it isn't currently needed - full deployment type support for bin/cluster - honor OS_DEPLOYMENT_TYPE env variable - add --deployment-type option, which will override OS_DEPLOYMENT_TYPE if set - if neither OS_DEPLOYMENT_TYPE or --deployment-type is set, defaults to origin installs Additional changes: - Add separate config action to bin/cluster that runs ansible config but does not update packages - Some more duplication reduction in cluster playbooks. - Rename task files in playbooks dirs to have tasks in their name for clarity. - update aws/gce scripts to use a directory for inventory (otherwise when there are no hosts returned from dynamic inventory there is an error) libvirt refactor and update - add libvirt dynamic inventory - updates to use dynamic inventory for libvirt
2015-04-09Merge pull request #149 from kwoodson/ans_inventoryKenny Woodson
Adding openshift_ansible_inventory role to configure multi_ec2
2015-04-09Adding a multi_ec2 yaml configure roleKenny Woodson
2015-04-09Merge pull request #148 from mwoodson/tower_configMatt Woodson
added sebools for ansible tower
2015-04-09added sebools for ansible tower configMatt Woodson
2015-04-09refactor yum_repo role to handle multiple repos/filesJason DeTiberus
- Rename yum_repo role to yum_repos - Update yum_repos to take a more complex datastructure to describe multiple repo files and multiple repos within those files - Update the template to support multiple repos within the repo file - Update the template to allow for any key, value pair passed in instead of a hard coded list. - Add assertions to verify the repo_files variable is properly defined - Convert the legacy variables to the new repo_files variable
2015-04-09added more options to the yum repoMatt Woodson
2015-04-08Adding yum_repo role for facilitating repository deploymentKenny Woodson
2015-04-08move zbxapi module to a new os_zabbix roleJason DeTiberus
- cleans up repo root a bit
2015-04-03Add byo playbooks and enterprise docsJason DeTiberus
- added byo playbooks - added byo (example) inventory - added a README_OSE.md for getting started with Enterprise deployments - Added an ansible.cfg as an example for configuration helpful for playbooks/roles
2015-04-03openshift_facts role/module refactor default settingsJason DeTiberus
- Add openshift_facts role and module - Created new role openshift_facts that contains an openshift_facts module - Refactor openshift_* roles to use openshift_facts instead of relying on defaults - Refactor playbooks to use openshift_facts - Cleanup inventory group_vars - Update defaults - update openshift_master role firewall defaults - remove etcd peer port, since we will not be supporting clustered embedded etcd - remove 8444 since console now runs on the api port by default - add 8444 and 7001 to disabled services to ensure removal if updating - Add new role os_env_extras_node that is a subset of the docker role - previously, we were starting/enabling docker which was causing issues with some installations - Does not install or start docker, since the openshift-node role will handle that for us - Only adds root to the dockerroot group - Update playbooks to use ops_env_extras_node role instead of docker role - os_firewall bug fixes - ignore ip6tables for now, since we are not configuring any ipv6 rules - if installing package do a daemon-reload before starting/enabling service - Add aws support to bin/cluster - Add list action to bin/cluster - Add update action to bin/cluster - cleanup some stray debug statements - some variable renaming for clarity
2015-03-24* Remove DOCKER chain work aroundJhon Honce
2015-03-24Revert "Jwhonce wip/cluster"Jhon Honce
2015-03-24remove openshift_hostname_workaround var for openshift_common, rather rely ↵Jason DeTiberus
on inventory/playbook variables for openshift_hostname
2015-03-24node registration changesJason DeTiberus
- Remove default value for openshift_hostname and make it required - Remove workarounds that are no longer needed - Remove resources parameter from openshift_register_node module - pre-create node certificates for each node before registering node - distribute created node certificates to each node - Move node registration logic to a new openshift_register_nodes role - This is because we now have to run the steps on a master as opposed to on the nodes like we were previously doing. - Rename openshift_register_node module to kubernetes_register_node, one more step to genericizing enough for upstreaming, however there are still plenty of openshift specific commands that still need to be genericized.
2015-03-24remove os_firewall creation of DOCKER chainJason DeTiberus
2015-03-24Use docker as package name instead of docker-ioJason DeTiberus
2015-03-24Add new role os_env_extras_node that is a subset of the docker roleJason DeTiberus
- Does not install or start docker, since the openshift-node role will handle that for us - Only add root to the dockerroot group and configures the enter-container script.
2015-03-24Add verify_chain action to os_firewall_manage_iptables moduleJason DeTiberus
- Add verify_chain action to os_firewall_manage_iptables module - Update os_firewall module to use os_firewall_manage_iptables for creating the DOCKER chain.
2015-03-24* Add DOCKER chain to iptablesJhon Honce
2015-03-24add repos role to gce cluster launch so that we are applying ↵Jason DeTiberus
os_update_latest after repo config
2015-03-24Use ansible playbook to initialize openshift clusterJhon Honce
* Added playbooks/gce/openshift-cluster * Added bin/cluster (will replace cluster.sh)
2015-03-24Move yum update * to new os_update_latest roleJason DeTiberus
2015-03-24Use ansible playbook to initialize openshift clusterJhon Honce
* Added playbooks/gce/openshift-cluster * Added bin/cluster (will replace cluster.sh)
2015-03-24Merge pull request #117 from detiber/repoRenameThomas Wiest
Rename repos role to openshift_repos
2015-03-18Rename repos role to openshift_reposJason DeTiberus
- Rename repos role to openshift_repos - Make openshift_repos a dependency of openshift_common - Add README and metadata for openshift_repos - Playbook updates for role rename - Verify libselinux-python is installed, otherwise some of the bulit-in modules we use fail
2015-03-18Register node fixesJason DeTiberus
- Set --hostname flag in node config in openshift_node role - Support some additional node attributes in openshift_node role - podCIDR - labels - annotations - Support both output types for openshift ex config view in openshift_register_node module - Support multiple api versions in openshift_register_node module - Support additional attributes in openshift_register_node module - annotations - labels - pod_cidr - external_ips (v1beta3, will be available after next kube rebase) - internal_ips (v1beta3, will be available after next kube rebase) - hostnames (v1beta3, will be available after next kube rebase) - external_id (v1beta3, will be available after next kube rebase)
2015-03-18Fix hostname handlingJason DeTiberus
- always set hostname if hostname does not match openshift_hostname - Use local IP instead of public IP as hostname for workaround
2015-03-13Merge pull request #112 from detiber/masterWorkaroundThomas Wiest
Add workaround for openshift-master startup timeout
2015-03-13Update openshift_register_node module for changes in .kubeconfig format ↵Jason DeTiberus
following latest kubernetes rebase
2015-03-13Add workaround for openshift-master startup timeoutJason DeTiberus
2015-03-09Allow for overriding node resourcesJason DeTiberus
- add variable openshift_node_resources to openshift_node role - set default value for openshift_node_resources to { capacity: { cpu: ,memory: }} - If cpu is not set, then the default value will be chosen by the openshift_register_node module (num logical cpus) - If memory is not set, then the default value will be chosen by the openshift_register_node module (75% MemTotal according to /proc/meminfo)
2015-03-09Merge pull request #100 from detiber/randomCleanupThomas Wiest
Random cleanup
2015-03-09Merge pull request #106 from detiber/condionalNodeOptionThomas Wiest
Conditionally set --nodes on master
2015-03-09Merge pull request #105 from detiber/fixPermsKubeFolderThomas Wiest
Fix permissions on .kube folder
2015-03-09os_firewall fixesJason DeTiberus
- Fix variable references to os_firewall_{allow,deny} instead of {allow, deny} - Fix ordering of service stop/start to ensure firewall rules are properly initiated after service startup - Add test for package installed before attempting to disable or mask services
2015-03-09Conditionally set --nodes on masterJason DeTiberus
- only add --nodes option to /etc/sysconfig/openshift-master when openshift_node_ips is not an empty list.
2015-03-09Fix permissions on .kube folderJason DeTiberus
- missing leading 0 on mode
2015-03-06start fixing os_firewall issuesJason DeTiberus
- Fix missed references to old firewall scripts - Fix variable name references that didn't get updated
2015-03-06Merge pull request #101 from detiber/SdnWhoopsThomas Wiest
Fix issues with openshift_sdn_node
2015-03-06Merge pull request #99 from detiber/openshiftRegisterNodeFixesThomas Wiest
openshift_register_node module fixes
2015-03-06Merge pull request #98 from detiber/copyNotEnvKubeconfigThomas Wiest
Do not set KUBECONFIG for root user
2015-03-06Fix issues with openshift_sdn_nodeJason DeTiberus
- Use openshift_hostname (set from openshift_common) instead of calculating it again using the openshift_common variables - Fix the task setting facts for openshift_sdn_node that was using references to master instead
2015-03-06Initial readmes for openshift_sdn_{master, node}Jason DeTiberus
2015-03-06Initial READMEs for openshift_{common, node, master}Jason DeTiberus
2015-03-06Fix license nameJason DeTiberus
2015-03-06openshift_register_node module fixesJason DeTiberus
- Set parameters resources and cpu/memory as mutually exclusive - Add parameters for setting the client_user, client_context and client_cluster - This allows the module to ensure it is using the proper context for operation - Node resources weren't properly being registered - wrapped node definition object in a config object to rectify - Reduce default to 75% Total Memory instead of 80% - Don't bother running osc create node if node is already in osc get nodes output
2015-03-06Do not set KUBECONFIG for root userJason DeTiberus
- instead of setting KUBECONFIG, copy the admin kubeconfig to /root/.kube/.kubeconfig in the openshift_master and openshift_node roles - pause for 30 seconds if the openshift-master service has changed state, since the file we are copying is generated by the master
2015-03-06Provide default value for openshift_node_ipsJason DeTiberus
- openshift_node_ips now defaults to [] - Previously an empty --nodes in /etc/sysconfig/master would result in the master creating a node for the localhost. The latest Origin and OSE builds now only create the implicit localhost node if run as openshift, not openshift-master. We can now safely default to setting no nodes in /etc/sysconfig/master and having nodes register themselves with the master when they come up via the 'Register node (if not already registered)' task in roles/openshift_node/tasks/main.yml) - This had an associated change for the byo scripts that had not been merged into master yet, but this PR changes the behavior of the openshift_master role to not fail if openshift_node_ips is not set. This also prevents having the openshift_master service restarted when a node is added.
2015-03-05rename base_os role to os_env_extras, move application to end since it just ↵Jason DeTiberus
sets environment configs for root user