summaryrefslogtreecommitdiff
path: root/playbooks/init
AgeCommit message (Collapse)Author
2018-01-10Add defaults for openshift_pkg_versionMichael Gugino
This variable may or may not be defined by the users. During deployments, it will be set to '-{{ openshift_version }}' if undefined. During upgrades, it will remain undefined. This commit ensures that if the variable is undefined, empty strings '' are set.
2018-01-10Merge pull request #6674 from mgugino-upstream-stage/remove-becomes2Scott Dodson
Remove become statements
2018-01-09Remove become statementsMichael Gugino
This commit removes become:no statements that break the installer in various ways.
2018-01-09Limit host group scope on control-plane upgradesMichael Gugino
This commit limits common init code to exclude oo_nodes_to_config during upgrade_control_plane runs.
2018-01-09Refactor version and move some checks into sanity_checks.pyMichael Gugino
This commit changes how we handle openshift_version role. Most of the version initialization code is only run on the first master now. All other hosts have values set from the master. Aftwards, we run some basic RPM queries to ensure that the correct version is available on the other nodes. Containerized needs to do their own image checks elsewhere.
2018-01-09Merge pull request #6634 from vrutkovs/openshift_binary_for_upgradesScott Dodson
upgrades: set openshift_client_binary fact when running on oo_first_master host
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-06upgrades: set openshift_client_binary fact when running on oo_first_master hostVadim Rutkovsky
This sets openshift_client_binary var for the first master, as some roles use this var along with first_master_client_binary. Not sure if its worth setting this var for the faulty roles instead though. Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
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.
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-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-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-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-08Remove unneeded embedded etcd logicMichael Gugino
Removing some remaining embedded etcd facts except for the migration plays.
2017-12-06Fix ami building.Kenny Woodson
2017-12-01Implement container runtime roleMichael Gugino
2017-11-30retry package operationsLuke Meyer
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).
2017-11-27Remove openshift.common.cli_imageMichael Gugino
This commit removes openshift.common.cli_image in favor of openshift_cli_image.
2017-11-27Simplify is_master_system_container logicMichael Gugino
Simplify the variable is_master_system_container
2017-11-27Merge pull request #6198 from mgugino-upstream-stage/openvswitch-sys-containerMichael Gugino
Remove is_openvswitch_system_container from facts
2017-11-24Merge pull request #6227 from adelton/issue-5517Scott Dodson
Workaround the fact that package state=present with dnf fails for already installed but excluded packages.
2017-11-22Remove is_openvswitch_system_container from factsMichael Gugino
Simply logic for this variable.
2017-11-22With dnf repoquery and excluded packages, --disableexcludes=all is needed to ↵Jan Pazdziora
list the package with --installed.
2017-11-22Fix system_images_registry variableMichael Gugino
Simplify the logic for this variable.
2017-11-22Merge pull request #6193 from mgugino-upstream-stage/etc-runtimeMichael Gugino
Cleanup etcd runtime variable.
2017-11-21Merge pull request #6200 from mgugino-upstream-stage/node-sys-containerMichael Gugino
Fix node system container var
2017-11-21Merge pull request #6144 from mtnbikenc/init-include-deprecationRussell Teague
Include Deprecation - Init Playbook Paths
2017-11-21Cleanup etcd runtime variable.Michael Gugino
Cleaning out reference to etcd_runtime in openshift facts.
2017-11-21Fix node system container varMichael Gugino
Fix logic, make it simpler.
2017-11-21Fix logic for any sys containersMichael Gugino
Remove set_fact in favor of the variables directly.
2017-11-16Include Deprecation - Init Playbook PathsRussell Teague
2017-11-15Playbook Consolidation - InitializationRussell Teague