summaryrefslogtreecommitdiff
path: root/playbooks/init
AgeCommit message (Collapse)Author
2018-02-09Merge pull request #7078 from mgugino-upstream-stage/limit-hostsOpenShift Merge Robot
Automatic merge from submit-queue. Limit host scope during plays Many plays only target a select subset of hosts, especially oo_first_master for components such as logging and registry. This commit limits the scope of most plays to eliminate unnecessary task execution on node groups. This will result in great time savings for large deployments. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1516526
2018-02-09Limit host scope during playsMichael Gugino
Many plays only target a select subset of hosts, especially oo_first_master for components such as logging and registry. This commit limits the scope of most plays to eliminate unnecessary task execution on node groups. This will result in great time savings for large deployments. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1516526
2018-02-08Merge pull request #7061 from gnewson/Change-etcd-checkOpenShift Merge Robot
Automatic merge from submit-queue. Changing the check for the number of etcd nodes This playbook is called (via std_include.yml) when the scale up playbook for either master or etcd is called. In the scenario where you are scaling up the number of masters/etcd nodes it is feasible, if not likely, that the number of etcd nodes is not 1, 3 or 5 and this check therefore causes a scale up to fail. The two example scenarios that are driving this change are: You have a cluster with 3 master nodes (each running etcd) and one of those masters fail. The master node is removed from both the OpenShift cluster and the etcd cluster and the inventory updated to reflect the state of the cluster minus the failed master node. You would then run the scale up playbook to add a new master / etcd master into the cluster using an inventory containing and etcd group of just 2 nodes. As above but the cluster has 5 master nodes. If you lose a master node and update the inventory to reflect that then the inventory will contain an etcd group with 4 nodes. @sdodson Previously submitted as https://github.com/openshift/openshift-ansible/pull/6979
2018-02-07Remove spaces introduced at the start of the lineGeoff Newson
In making the initial change I introduce some spaces at the beginning of the line. Removing them.
2018-02-07Changing the check for the number of etcd nodesGeoff Newson
2018-02-07Add base package installation to upgrade playbooksRussell Teague
Hosts will need python ipaddress module installed if it was not installed during initial installation. Bug 1540537 https://bugzilla.redhat.com/show_bug.cgi?id=1540537
2018-02-02Don't use 'omit' for package moduleVadim Rutkovsky
'name' param is required and can't be skipped. 'when' is used instead
2018-01-30Merge pull request #6927 from sdodson/1538974OpenShift Merge Robot
Automatic merge from submit-queue. Don't deploy the console if disabled or registry subtype Whenever openshift_deployment_subtype == registry or the console is explicitly listed as a disabled feature don't deploy. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1538974
2018-01-29Don't deploy the console if disabled or registry subtypeScott Dodson
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1538974
2018-01-29Merge pull request #6215 from sdodson/bz1511870OpenShift Merge Robot
Automatic merge from submit-queue. Add kube service ipaddress to no_proxy list Computed as the first ip address in the portal_net Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1511870
2018-01-24[1530403] Improve etcd group error messageRussell Teague
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530403
2018-01-24Add kube service ipaddress to no_proxy listScott Dodson
Computed as the first ip address in the portal_net
2018-01-24Merge pull request #6749 from sdodson/allow-5-etcd-masterScott Dodson
Allow 5 etcd hosts
2018-01-23Merge pull request #6817 from mtnbikenc/fix-1506750OpenShift Merge Robot
Automatic merge from submit-queue. [1506750] Ensure proper hostname check override Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1506750
2018-01-22[1506750] Ensure proper hostname check overrideRussell Teague
2018-01-22Install base_packages earlierMichael Gugino
Currently, openshift_facts requires pyyaml to be installed. This package is installed via init/base_packages.yml, which is currently called after init/facts.yml. This results in a situation where installs will fail due to missing python dependency. This commit splits init/facts.yml into two, and allows base_packages.yml to be run before the openshift_facts.py plugin is executed.
2018-01-18Fix node scaleup playsMichael Gugino
Currently, users have no way to run preqrequisites.yml on just newly added nodes during scaleup. This commit ensures only the new nodes are changed during scaleup as well as ensure prerequisites are run.
2018-01-16Allow 5 etcd hostsScott Dodson
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.