summaryrefslogtreecommitdiffstats
path: root/roles
Commit message (Collapse)AuthorAgeFilesLines
* Use docker as package name instead of docker-ioJason DeTiberus2015-03-241-1/+1
|
* Add new role os_env_extras_node that is a subset of the docker roleJason DeTiberus2015-03-244-0/+182
| | | | | | | - 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.
* Add verify_chain action to os_firewall_manage_iptables moduleJason DeTiberus2015-03-242-35/+47
| | | | | | - 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.
* * Add DOCKER chain to iptablesJhon Honce2015-03-241-0/+14
|
* add repos role to gce cluster launch so that we are applying ↵Jason DeTiberus2015-03-241-3/+0
| | | | os_update_latest after repo config
* Use ansible playbook to initialize openshift clusterJhon Honce2015-03-241-0/+3
| | | | | * Added playbooks/gce/openshift-cluster * Added bin/cluster (will replace cluster.sh)
* Move yum update * to new os_update_latest roleJason DeTiberus2015-03-242-3/+3
|
* Use ansible playbook to initialize openshift clusterJhon Honce2015-03-242-1/+4
| | | | | * Added playbooks/gce/openshift-cluster * Added bin/cluster (will replace cluster.sh)
* Merge pull request #117 from detiber/repoRenameThomas Wiest2015-03-2415-0/+59
|\ | | | | Rename repos role to openshift_repos
| * Rename repos role to openshift_reposJason DeTiberus2015-03-1815-0/+59
| | | | | | | | | | | | | | | | | | - 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
* | Register node fixesJason DeTiberus2015-03-183-142/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | Fix hostname handlingJason DeTiberus2015-03-183-7/+3
|/ | | | | - always set hostname if hostname does not match openshift_hostname - Use local IP instead of public IP as hostname for workaround
* Merge pull request #112 from detiber/masterWorkaroundThomas Wiest2015-03-131-0/+17
|\ | | | | Add workaround for openshift-master startup timeout
| * Add workaround for openshift-master startup timeoutJason DeTiberus2015-03-131-0/+17
| |
* | Update openshift_register_node module for changes in .kubeconfig format ↵Jason DeTiberus2015-03-131-5/+11
|/ | | | following latest kubernetes rebase
* Allow for overriding node resourcesJason DeTiberus2015-03-093-2/+6
| | | | | | | | | | - 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)
* Merge pull request #100 from detiber/randomCleanupThomas Wiest2015-03-0912-73/+118
|\ | | | | Random cleanup
| * Initial readmes for openshift_sdn_{master, node}Jason DeTiberus2015-03-062-26/+42
| |
| * Initial READMEs for openshift_{common, node, master}Jason DeTiberus2015-03-063-40/+69
| |
| * Fix license nameJason DeTiberus2015-03-067-7/+7
| |
* | Merge pull request #106 from detiber/condionalNodeOptionThomas Wiest2015-03-091-2/+3
|\ \ | | | | | | Conditionally set --nodes on master
| * | Conditionally set --nodes on masterJason DeTiberus2015-03-091-2/+3
| | | | | | | | | | | | | | | - only add --nodes option to /etc/sysconfig/openshift-master when openshift_node_ips is not an empty list.
* | | Merge pull request #105 from detiber/fixPermsKubeFolderThomas Wiest2015-03-092-2/+2
|\ \ \ | | | | | | | | Fix permissions on .kube folder
| * | | Fix permissions on .kube folderJason DeTiberus2015-03-092-2/+2
| |/ / | | | | | | | | | - missing leading 0 on mode
* / / os_firewall fixesJason DeTiberus2015-03-092-32/+46
|/ / | | | | | | | | | | | | - 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
* | start fixing os_firewall issuesJason DeTiberus2015-03-066-22/+17
| | | | | | | | | | - Fix missed references to old firewall scripts - Fix variable name references that didn't get updated
* | Merge pull request #101 from detiber/SdnWhoopsThomas Wiest2015-03-061-4/+4
|\ \ | | | | | | Fix issues with openshift_sdn_node
| * | Fix issues with openshift_sdn_nodeJason DeTiberus2015-03-061-4/+4
| |/ | | | | | | | | | | | | - 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
* | Merge pull request #99 from detiber/openshiftRegisterNodeFixesThomas Wiest2015-03-061-36/+90
|\ \ | | | | | | openshift_register_node module fixes
| * | openshift_register_node module fixesJason DeTiberus2015-03-061-36/+90
| |/ | | | | | | | | | | | | | | | | | | | | - 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
* | Merge pull request #98 from detiber/copyNotEnvKubeconfigThomas Wiest2015-03-063-8/+36
|\ \ | | | | | | Do not set KUBECONFIG for root user
| * | Do not set KUBECONFIG for root userJason DeTiberus2015-03-063-8/+36
| |/ | | | | | | | | | | | | - 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
* / Provide default value for openshift_node_ipsJason DeTiberus2015-03-061-0/+1
|/ | | | | | | | | | | | | | | | | - 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.
* rename base_os role to os_env_extras, move application to end since it just ↵Jason DeTiberus2015-03-053-1/+1
| | | | sets environment configs for root user
* refactor firewall management into new roleJason DeTiberus2015-03-0512-59/+477
| | | | | | | | | | | | | | | | | - Add os_firewall role - Remove firewall settings from base_os, add wait task to os_firewall - Added a iptables firewall module for maintaining the following (in a mostly naive manner): - ensure the OPENSHIFT_ALLOW chain is defined - ensure that there is a jump rule in the INPUT chain for OPENSHIFT_ALLOW - adds or removes entries from the OPENSHIFT_ALLOW chain - issues '/usr/libexec/iptables/iptables.init save' when rules are changed - Limitations of iptables firewall module - only allows setting of ports/protocols to open - no testing on ipv6 support - made os_firewall a dependency of openshift_common - Hardcoded openshift_common to use iptables (through the vars directory) until upstream support is in place for firewalld
* add vim vim modeline to ansible modulesJason DeTiberus2015-03-051-0/+1
|
* remove extra '}'Liang Xia2015-03-031-3/+3
|
* Merge pull request #91 from detiber/downWithJSONThomas Wiest2015-03-023-14/+37
|\ | | | | Prefer YAML style datastructures over JSON
| * Prefer YAML style datastructures over JSONJason DeTiberus2015-03-023-14/+37
| | | | | | | | - Switch JSON style datastructures to YAML for debuggability
* | Merge pull request #90 from detiber/addSdnRolesThomas Wiest2015-03-0210-0/+181
|\ \ | | | | | | Add openshift_sdn_{master,node} roles
| * | add openshift_sdn_{master,node} rolesJason DeTiberus2015-03-0210-0/+181
| |/
* | Merge pull request #89 from detiber/registerNodeThomas Wiest2015-03-022-0/+156
|\ \ | | | | | | openshift_node changes for register_node module
| * | openshift_node changes for register_node moduleJason DeTiberus2015-03-022-0/+156
| |/ | | | | | | | | - add openshift_register_node module to openshift_node role - verifies that node isn't already registered before attempting to register it
* | Add openshift_hostname default variable to openshift_commonJason DeTiberus2015-03-022-2/+2
| | | | | | | | | | - for use anywhere the hostname is used that would be dependent on the openshift_hostname_workaround setting.
* | add openshift_hostname workaround varJason DeTiberus2015-03-023-2/+8
|/ | | | | - use openshift_bind_ip for hostname when openshift_hostname_workaround is true - defaults to true to maintain current behavior.
* add support for overriding default registry urlJason DeTiberus2015-03-022-0/+18
|
* Set local_facts for openshift_node and openshift_master later in the task listJason DeTiberus2015-03-022-12/+14
|
* Merge pull request #86 from detiber/manageExternalThomas Wiest2015-03-022-0/+8
|\ | | | | Disable master,node services when externally managed
| * Disable master,node services when externally managedJason DeTiberus2015-03-012-0/+8
| |
* | Bugfixes for openshift-common related changesJason DeTiberus2015-03-011-5/+4
|/ | | | | | | | - Fix failed attempt to cleanup service notify on creds changes - Fix master URL for node to use https - Set openshift_debug_level in vars.yml for playbooks - This puts us closer to the original debug settings, where after the openshift-common changes the debug settings were defaulting back to 0