summaryrefslogtreecommitdiffstats
path: root/playbooks/init/facts.yml
Commit message (Collapse)AuthorAgeFilesLines
* Install base_packages earlierMichael Gugino2018-01-221-106/+0
| | | | | | | | | | | | 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.
* Fix node scaleup playsMichael Gugino2018-01-181-3/+3
| | | | | | | | 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.
* Limit host group scope on control-plane upgradesMichael Gugino2018-01-091-1/+3
| | | | | This commit limits common init code to exclude oo_nodes_to_config during upgrade_control_plane runs.
* upgrades: set openshift_client_binary fact when running on oo_first_master hostVadim Rutkovsky2018-01-061-0/+2
| | | | | | | | | 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>
* Migrate to import_role for static role inclusionScott Dodson2018-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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-211-33/+8
| | | | | | | 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-201-25/+0
| | | | | | Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
* 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.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-141-3/+3
|
* Implement container runtime roleMichael Gugino2017-12-011-4/+6
|
* 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-211-2/+1
|\ \ | |/ |/| Include Deprecation - Init Playbook Paths
| * Include Deprecation - Init Playbook PathsRussell Teague2017-11-161-2/+1
| |
* | 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-151-0/+169