summaryrefslogtreecommitdiff
path: root/playbooks
AgeCommit message (Collapse)Author
2018-01-08Merge pull request #6649 from mgugino-upstream-stage/fix-pre-packagesMichael Gugino
install base_packages on oo_all_hosts
2018-01-08Merge pull request #6549 from mgugino-upstream-stage/node-meta-depends2OpenShift Merge Robot
Automatic merge from submit-queue. Remove last of openshift_node role meta-depends Remove last non-taskless meta-depends from openshift_node role.
2018-01-08install base_packages on oo_all_hostsMichael Gugino
This commit ensures base packages are installed for oo_all_hosts, which is what we were doing previously. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1530516
2018-01-08Contiv multi-master and other fixesNick Bartos
Contiv's etcd was not being deployed correctly when using more than one master. To make it easier to manage, it has been moved into a k8s container. The api proxy was hardcoded to an old version (1.1.1), and in some environments would run into a docker error. This has been moved into a k8s container for easier management. The firewall was too permissive on several ports. Many were open to the world when they should have only been accessible inside the cluster. Many of the contiv role variables were not prefixed with 'contiv', which may end up clobbering variables from another role. Now all the contiv specific role variables start with 'contiv_'. The api proxy's default self-signed certificate was bundled with the role. This means someone with read-only MITM access and this key could decrypt traffic. Granted a user defined certificate from a trusted CA should be used in a production environment, it is still better to generate one in each environment when one is not provided.
2018-01-06Merge pull request #6359 from spadgett/web-console-serverScott Dodson
Install web console server
2018-01-05Merge pull request #6627 from sdodson/import_roleScott Dodson
Migrate to import_role for static role inclusion
2018-01-05Install web console serverSamuel Padgett
2018-01-05Migrate to import_role for static role inclusionScott Dodson
In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
2018-01-05Merge pull request #6532 from jmencak/heat_stack-cnsOpenShift Merge Robot
Automatic merge from submit-queue. OpenStack provisioning -- support cns. Initial support for CNS nodes during OpenShift on OpenStack provisioning.
2018-01-02Merge pull request #6557 from mgugino-upstream-stage/delay-hosted-waitOpenShift Merge Robot
Automatic merge from submit-queue. Move wait_for_pods to it's own play openshift_hosted Currently, both registry and router pods need to be polled for successful deployment. Somtimes this can take up to a minute. This commit attempts to deploy both pods before polling either. This should reduce the average wait time for polling pods by 50% as time spent polling the first will also allow the second pod to continue it's own deployment.
2018-01-02Merge pull request #6554 from mgugino-upstream-stage/bootstrap-to-include-roleMichael Gugino
Remove bootstrap.yml from main.yml in openshift_node role
2018-01-02Remove last of openshift_node role meta-dependsMichael Gugino
Remove last non-taskless meta-depends from openshift_node role. Remove variable 'openshift_node_upgrade_in_progress' as it is no longer used.
2018-01-02OpenStack provisioning -- support cns.Jiri Mencak
2017-12-21Move wait_for_pods to it's own play openshift_hostedMichael Gugino
Currently, both registry and router pods need to be polled for successful deployment. Somtimes this can take up to a minute. This commit attempts to deploy both pods before polling either. This should reduce the average wait time for polling pods by 50% as time spent polling the first will also allow the second pod to continue it's own deployment.
2017-12-21Merge pull request #6550 from mbarnes/aws_provisioning_vars_exampleOpenShift Merge Robot
Automatic merge from submit-queue. aws: Fix misnamed variable in provisioning_vars.yml.example This typo (?) in `provisioning_vars.yml.example` tripped me up while trying to run `provision_install.yml` using a configuration based on the example file.
2017-12-21Remove bootstrap.yml from main.yml in openshift_node roleMichael Gugino
This commit utilizes include_role for bootstrapping the node instead of conditional include of tasks now that the node role has no meta includes that have tasks.
2017-12-21Merge pull request #6530 from mgugino-upstream-stage/init-task-trimMichael Gugino
Move sanity_checks into custom action plugin
2017-12-21aws: Fix misnamed variable in provisioning_vars.yml.exampleMatthew Barnes
2017-12-21Fix container_runtime openshift_containerized_host_groupsMichael Gugino
openshift_containerized_host_groups needs to be referenced via hostvars. This commit also updates tox ansible syntax checks to account for unavailability of hostsvars during syntax checks. Fixes: https://github.com/openshift/openshift-ansible/issues/6540
2017-12-21Remove references to deployment_typeMichael Gugino
Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
2017-12-20Move validate_hosts to prerequisites.ymlMichael Gugino
Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
2017-12-20Move sanity_checks into custom action pluginMichael Gugino
This commit moves sanity_checks tasks into a custom action plugin that is only run against a single host. This will result in a large reduction of tasks during initialization
2017-12-20Remove openshift.common.{is_atomic|is_containerized}Michael Gugino
We set these variables using facts in init, no need to duplicate the logic all around the codebase.
2017-12-20Merge pull request #6524 from kwoodson/docker_storage_setup_overlayScott Dodson
Adding support for docker-storage-setup on overlay
2017-12-19Adding support for docker-storage-setup on overlayKenny Woodson
2017-12-19Merge pull request #6469 from mgugino-upstream-stage/plugin-consolidateScott Dodson
Plugin consolidate
2017-12-18Relocate filter plugins to lib_utilsMichael Gugino
This commit relocates filter_plugings to lib_utils, changes the namespacing to prevent unintended use of older versions that may be present in filter_plugins/ directory on existing installs. Add lib_utils to meta depends for roles Also consolidate some plugins into lib_utils from various other areas. Update rpm spec, obsolete plugin rpms.
2017-12-18set repos after registration: convert to match task -> import_role model.Mark Lamourine
2017-12-15Merge pull request #6489 from mgugino-upstream-stage/fix-repos-v2Michael Gugino
Fix rhel_subscribe boolean
2017-12-15Merge pull request #6484 from mtnbikenc/tests-as-filtersRussell Teague
Deprecate using Ansible tests as filters
2017-12-15Fix rhel_subscribe booleanMichael Gugino
This commit fixes a variable name to it's correct name used in a when condition. Also makes use of 'is defined' consistent.
2017-12-14Merge pull request #6483 from mgugino-upstream-stage/fix-reposScott Dodson
Move repo and subscribe to prerequisites
2017-12-14Merge pull request #5970 from mtnbikenc/fix-1506750OpenShift Merge Robot
Automatic merge from submit-queue. 1506750 Validate node hostname and IP address - Replaces use of `pause` with a `fail` task. `pause` only runs on one host, therefore the check was not run for all nodes - Adds check for valid openshift_ip Fixes 1506750 https://bugzilla.redhat.com/show_bug.cgi?id=1506750
2017-12-14Move repo and subscribe to prerequisitesMichael Gugino
This commit refactors some steps in rhel subscribe and moves repos.yml from init/main to prerequisites.
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-14Merge pull request #6463 from mgugino-upstream-stage/openshift-service-type-fixOpenShift Merge Robot
Automatic merge from submit-queue. Add missing openshift_service_type Pull in openshift_facts to define the variable. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1525429
2017-12-14Merge pull request #6404 from mazzystr/stablize_rhsmScott Dodson
Commit to stabilize RHSM operations. This code is derived from contrib
2017-12-14Commit to stabalize RHSM operations. This code is derived from contribChris Callegari
2017-12-13Validate node hostname and IP addressRussell Teague
Fixes 1506750 https://bugzilla.redhat.com/show_bug.cgi?id=1506750
2017-12-13Add missing openshift_service_typeMichael Gugino
Pull in openshift_facts to define the variable. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1525429
2017-12-12Refactor node upgrade to include less serial tasksMichael Gugino
This commit moves the pulling of images, packages, and updating config files into a non-serialized play. The serialized play is now in charge of marking unschedulable, draining, stopping and restarting services, and marking schedulable. If rpm install / container download takes 60s per host, this will save 3 hours and 10 minutes at 200 hosts per cluster and forks of 20 hosts.
2017-12-12Merge pull request #6451 from mgugino-upstream-stage/remove-empty-hosted-factsScott Dodson
Remove empty openshift_hosted_facts role
2017-12-12Remove empty openshift_hosted_facts roleMichael Gugino
This commit removes a now-empty role.
2017-12-12Refactor upgrade codepaths step 1Michael Gugino
This commit refactors some upgrade code paths. Touched areas are: 1) Reduces usage of 'oo_all_hosts' in various places, especially when running upgrade_control_plane. 2) Reuses common code across the various upgrade* playbooks. 3) Moves docker upgrade checks into container_runtime_role. 4) Combines smaller playbooks and plays to reduce file sprawl.
2017-12-12Merge pull request #6335 from kwoodson/node_groups_refactorScott Dodson
Node group management update.
2017-12-12Merge pull request #6381 from bogdando/dns_hostname_prefixesOpenShift Merge Robot
Automatic merge from submit-queue. Allow 2 sets of hostnames for openstack provider Support private/public hostnames suffixes for DNS records. Real hostnames, Inventory variables, Nova servers and ansible hostnames will ignore the custom suffixes. Those are only for nsupdates sent to external DNS servers. Related change: add openshift_openstack_public_dns_domain to the role defaults to not rely on the group vars example only. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com> Co-authored-by: Tomas Sedovic <tsedovic@redhat.com>
2017-12-12Merge pull request #6433 from joelddiaz/example-inventory-master-portOpenShift Merge Robot
Automatic merge from submit-queue. add openshift_master_api_port var to example inventory
2017-12-11Merge pull request #6414 from mgugino-upstream-stage/remove-embedded-etcdOpenShift Merge Robot
Automatic merge from submit-queue. Remove unneeded embedded etcd logic Removing some remaining embedded etcd facts except for the migration plays.
2017-12-11Changing the node group format to a list.Kenny Woodson
2017-12-11add openshift_master_api_port var to example inventoryJoel Diaz
would get timeouts during master node installation without this setting