summaryrefslogtreecommitdiff
path: root/roles/openshift_node/tasks
AgeCommit message (Collapse)Author
2018-02-13Move installation of packages before container_runtime to ensure bind mounts ↵Kenny Woodson
are avaialable.
2018-02-13Merge pull request #5251 from celebdor/configurable_node_startOpenShift Merge Robot
Automatic merge from submit-queue. Make node start options configurable Thanks to this, the node startup can be customized. Change-Id: Ifb93bf892d7de52a575b8d0231328d44f733d0aa Signed-off-by: Antoni Segura Puimedon <celebdor@gmail.com>
2018-02-08Merge pull request #7031 from mgugino-upstream-stage/fix-syscon-varsOpenShift Merge Robot
Automatic merge from submit-queue. Fix master and node system container variables This commit corrects service names and adds DOCKER_SERVICE variable to openshift_master system container creation. This will ensure services will restart correctly and in the proper order. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1542324
2018-02-07openshift_node: Remove master from aws node buildingSteve Milner
Since it is expected to be re-added at some point in the future the lines have been commented out rather than deleted. Signed-off-by: Steve Milner <smilner@redhat.com>
2018-02-06Fix master and node system container variablesMichael Gugino
This commit corrects service names and adds DOCKER_SERVICE variable to openshift_master system container creation. This will ensure services will restart correctly and in the proper order. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1542324
2018-02-06Fix docker rpm upgrade install task wordingMichael Gugino
This commit corrects wording of task name.
2018-02-02dynamic inventory bug when group exists but its emptyMangirdas
2018-01-31add glusterblock support for ansibleMangirdas
Co-authored-by: Christina Kyriakidou <Ckyriaki@Redhat.com>
2018-01-24Create swapoff moduleMichael Gugino
Create custome ansible module 'swapoff' to idempotently disable swap in /etc/fstab and also run swapoff.
2018-01-18Add ability to mount volumes into system container nodesMichael Gugino
This commit adds the ability to mount volumes into system containerized nodes. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1534933
2018-01-13Merge pull request #6426 from danwinship/cleanup-ipamScott Dodson
Clean up host-local IPAM data while nodes are drained
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 #6553 from ↵Michael Gugino
mgugino-upstream-stage/node-reduce-package-commands Install node packages in one task instead of 3
2018-01-09Merge pull request #6658 from mgugino-upstream-stage/containerized_boolsOpenShift Merge Robot
Automatic merge from submit-queue. ensure containerized bools are cast
2018-01-09Merge pull request #6650 from ↵OpenShift Merge Robot
vrutkovs/containerized_upgrade_set_openshift_use_openshift_sdn Automatic merge from submit-queue. upgrades: use openshift_node_use_openshift_sdn when trying to pre-pull the image This affects 3.8/3.9 upgrades for containerized hosts, if nodes are separate from master.
2018-01-09Use openshift_node_use_openshift_sdn when doing a containerized node upgradeVadim Rutkovsky
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-01-08ensure containerized bools are castMichael Gugino
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-05Don't overwrite node's systemd units for containerized installVadim Rutkovsky
Systemd units are being updated in ../systemd_units.yml Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-01-04Install node packages in one task instead of 3Michael Gugino
This commit reduces the number of package tasks from 3 to 1.
2017-12-21Remove bootstrap.yml from main.yml in openshift_node roleMichael Gugino
This commit utilizes include_role for bootstrapping the node instead of conditional include of tasks now that the node role has no meta includes that have tasks.
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-21Make node start options configurableAntoni Segura Puimedon
Thanks to this, the node startup can be customized. Change-Id: Ifb93bf892d7de52a575b8d0231328d44f733d0aa Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
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-18Remove openshift_node_facts roleMichael Gugino
This commit removes the remainder of openshift_node_facts role.
2017-12-17Merge pull request #6456 from mgugino-upstream-stage/node-factsMichael Gugino
Remove openshift_node_facts part 1
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-14Remove openshift_node_facts part 1Michael Gugino
This commit removes some items from openshift_facts for the openshit_node role.
2017-12-14Clean up host-local IPAM data while nodes are drainedDan Winship
2017-12-12upgrade node mark 2Michael Gugino
2017-12-12Refactor node upgrade to include less serial tasksMichael Gugino
This commit moves the pulling of images, packages, and updating config files into a non-serialized play. The serialized play is now in charge of marking unschedulable, draining, stopping and restarting services, and marking schedulable. If rpm install / container download takes 60s per host, this will save 3 hours and 10 minutes at 200 hosts per cluster and forks of 20 hosts.
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-08openshift_node: reintroduce restart of CRI-O.Giuseppe Scrivano
change introduced with 39cf5084f18e2e0adca46b925660a6f2c38d227c Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-07Remove openshift.common.service_typeMichael Gugino
This commit removes openshift.common.service_type in favor of openshift_service_type. This commit also removes r_openshift_excluder_service_type from plays in favor of using the role's defaults.
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-05Fix oreg_auth_credentials_create register varMichael Gugino
There is a variable collision for the *oreg_auth_credentials_create variables in openshift_master and openshift_node registry_create tasks. This commit ensures standard and alternative oreg auth credential placement tasks don't use the same register variable. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1520866
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-27Combine openshift_node and openshift_node_dnsmasqMichael Gugino
This commit combines these two roles. This will prevent openshift_node_facts from running twice.
2017-11-27Merge pull request #6198 from mgugino-upstream-stage/openvswitch-sys-containerMichael Gugino
Remove is_openvswitch_system_container from facts
2017-11-22Include Deprecation - openshift-nodeRussell Teague
2017-11-22Remove is_openvswitch_system_container from factsMichael Gugino
Simply logic for this variable.
2017-11-22Fix system_images_registry variableMichael Gugino
Simplify the logic for this variable.
2017-11-21Fix node system container varMichael Gugino
Fix logic, make it simpler.
2017-11-16Combine openshift_node and openshift_node_upgradeMichael Gugino
Currently, having openshift_node and openshift_node_upgrade as two distinct roles has created a duplication across handlers, templates, and some tasks. This commit combines the roles to reduce duplication and bugs encountered by not putting code in both places.
2017-11-15Merge pull request #6094 from ↵OpenShift Merge Robot
mgugino-upstream-stage/syscontainers-docker-login-module Automatic merge from submit-queue. Alternative method to create docker registry auth creds Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
2017-11-14Alternative method to create docker registry auth credsMichael Gugino
Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374