summaryrefslogtreecommitdiffstats
path: root/playbooks/init
Commit message (Collapse)AuthorAgeFilesLines
* Migrate to import_role for static role inclusionScott Dodson2018-01-052-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove references to deployment_typeMichael Gugino2017-12-213-34/+46
| | | | | | | Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
* Move validate_hosts to prerequisites.ymlMichael Gugino2017-12-202-28/+0
| | | | | | Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
* Move sanity_checks into custom action pluginMichael Gugino2017-12-201-48/+12
| | | | | | | 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
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-11/+16
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-181-2/+2
| | | | | | | | | | | | | | 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.
* Merge pull request #6489 from mgugino-upstream-stage/fix-repos-v2Michael Gugino2017-12-151-2/+2
|\ | | | | Fix rhel_subscribe boolean
| * Fix rhel_subscribe booleanMichael Gugino2017-12-151-2/+2
| | | | | | | | | | | | | | This commit fixes a variable name to it's correct name used in a when condition. Also makes use of 'is defined' consistent.
* | Merge pull request #6484 from mtnbikenc/tests-as-filtersRussell Teague2017-12-151-3/+3
|\ \ | |/ |/| Deprecate using Ansible tests as filters
| * Deprecate using Ansible tests as filtersRussell Teague2017-12-141-3/+3
| |
* | Merge pull request #6483 from mgugino-upstream-stage/fix-reposScott Dodson2017-12-142-4/+2
|\ \ | | | | | | Move repo and subscribe to prerequisites
| * | Move repo and subscribe to prerequisitesMichael Gugino2017-12-142-4/+2
| |/ | | | | | | | | This commit refactors some steps in rhel subscribe and moves repos.yml from init/main to prerequisites.
* | Merge pull request #5970 from mtnbikenc/fix-1506750OpenShift Merge Robot2017-12-141-7/+27
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 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
| * Validate node hostname and IP addressRussell Teague2017-12-131-7/+27
| | | | | | | | | | | | Fixes 1506750 https://bugzilla.redhat.com/show_bug.cgi?id=1506750
* | Commit to stabalize RHSM operations. This code is derived from contribChris Callegari2017-12-141-0/+8
|/
* Remove unneeded embedded etcd logicMichael Gugino2017-12-081-6/+1
| | | | | Removing some remaining embedded etcd facts except for the migration plays.
* Fix ami building.Kenny Woodson2017-12-061-0/+2
|
* Implement container runtime roleMichael Gugino2017-12-012-4/+7
|
* retry package operationsLuke Meyer2017-11-301-0/+4
| | | | | | When a package install/update fails due to network blips or other spotty availability, retry it. If the failure is a real failure (e.g. package is really not there) it still fails after 3 tries (Ansible default).
* Remove openshift.common.cli_imageMichael Gugino2017-11-271-1/+0
| | | | | This commit removes openshift.common.cli_image in favor of openshift_cli_image.
* Simplify is_master_system_container logicMichael Gugino2017-11-271-2/+0
| | | | Simplify the variable is_master_system_container
* Merge pull request #6198 from mgugino-upstream-stage/openvswitch-sys-containerMichael Gugino2017-11-271-2/+0
|\ | | | | Remove is_openvswitch_system_container from facts
| * Remove is_openvswitch_system_container from factsMichael Gugino2017-11-221-2/+0
| | | | | | | | Simply logic for this variable.
* | Merge pull request #6227 from adelton/issue-5517Scott Dodson2017-11-241-0/+1
|\ \ | |/ |/| Workaround the fact that package state=present with dnf fails for already installed but excluded packages.
| * With dnf repoquery and excluded packages, --disableexcludes=all is needed to ↵Jan Pazdziora2017-11-221-0/+1
| | | | | | | | list the package with --installed.
* | Fix system_images_registry variableMichael Gugino2017-11-221-15/+0
|/ | | | Simplify the logic for this variable.
* Merge pull request #6193 from mgugino-upstream-stage/etc-runtimeMichael Gugino2017-11-221-7/+0
|\ | | | | Cleanup etcd runtime variable.
| * Cleanup etcd runtime variable.Michael Gugino2017-11-211-7/+0
| | | | | | | | Cleaning out reference to etcd_runtime in openshift facts.
* | Merge pull request #6200 from mgugino-upstream-stage/node-sys-containerMichael Gugino2017-11-211-2/+0
|\ \ | | | | | | Fix node system container var
| * | Fix node system container varMichael Gugino2017-11-211-2/+0
| |/ | | | | | | Fix logic, make it simpler.
* | Merge pull request #6144 from mtnbikenc/init-include-deprecationRussell Teague2017-11-212-8/+7
|\ \ | |/ |/| Include Deprecation - Init Playbook Paths
| * Include Deprecation - Init Playbook PathsRussell Teague2017-11-162-8/+7
| |
* | Fix logic for any sys containersMichael Gugino2017-11-211-5/+6
|/ | | | Remove set_fact in favor of the variables directly.
* Playbook Consolidation - InitializationRussell Teague2017-11-159-0/+530