summaryrefslogtreecommitdiff
path: root/roles/container_runtime/tasks
AgeCommit message (Collapse)Author
2018-02-12Fix docker_upgrade variableMichael Gugino
Currently, docker_upgrade is ignored during cluster upgrades. This commit ensures that the variable is respected. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1543714
2018-02-07Adding ability to provide additional mounts to crio system container.Kenny Woodson
2018-01-17Ensure atomic_proxies are configured with dockerMichael Gugino
In some setups, system containers may be used in conjunction with package_docker. This commit ensures that the atomic proxies are configured while using package_docker and containerized components. This commit also ensures containerized_groups are based on openshift_is_containerized instead of 'containerized' variable directly to account for possible use of atomic hosts which users may not specify containerized in inventory directly. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1535323
2018-01-11Merge pull request #6623 from vrutkovs/avoid-repoquery-on-containerizedOpenShift Merge Robot
Automatic merge from submit-queue. docker_upgrade_check: skip repoquery calls on containerized setups Fedora/CentOS Atomic hosts don't have repoquery installed - also there is no need to check available Docker rpms in the repos for Atomic Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1527256 Note, that this solution is pretty naive - a better idea would be splitting the playbooks for rpm and containerized installs for clarity
2018-01-09Merge pull request #6646 from giuseppe/fix-container-engine-authOpenShift Merge Robot
Automatic merge from submit-queue. container-engine: move registry_auth.yml before pull so that the atomic pull takes into account the credentials if required. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-08Properly cast crio boolean variables to boolMichael Gugino
Variables that are specifically booleans should be cast to bool. This is because users may sometimes pass them as string values. This is particularly prevalent when using ini-style inventories. Affected-by: https://github.com/ansible/ansible/issues/34591 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1531592
2018-01-08container-engine: move registry_auth.yml before pullGiuseppe Scrivano
so that the atomic pull takes into account the credentials if required. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-05Merge pull request #6627 from sdodson/import_roleScott Dodson
Migrate to import_role for static role inclusion
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-05docker_upgrade_check: skip repoquery calls on containerized setupsVadim Rutkovsky
Fedora/CentOS Atomic hosts don't have repoquery installed - also there is no need to check available Docker rpms in the repos for Atomic
2018-01-05crio: create /etc/sysconfig/crio-storageGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-05crio: configure proxy variablesGiuseppe Scrivano
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1529478 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-23Merge pull request #6497 from kwoodson/remove_docker_credsOpenShift Merge Robot
Automatic merge from submit-queue. Adding no_log to registry_auth. We were seeing credentials show up in our jenkins logs. We'd prefer if they were not logged. I'm not sure the repercussions but these are sensitive and probably should be `no_log`.
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-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-15Adding no_log to registry_auth.Kenny Woodson
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
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-08crio: define and use l_is_node_system_containerGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-07Merge pull request #6362 from mgugino-upstream-stage/crt-playsScott Dodson
Implement container_runtime playbooks and changes
2017-12-07Implement container_runtime playbooks and changesMichael Gugino
This commit refactors some duplicate code, removes usage of set_fact where not needed, and reorganizes container_runtime role to use include_role.
2017-12-06Include Deprecation: Convert to include_tasksRussell Teague
2017-12-01Implement container runtime roleMichael Gugino