summaryrefslogtreecommitdiff
path: root/roles/openshift_master
AgeCommit message (Collapse)Author
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-01Upgrade to migrate to using push to DNS for registries.Kenny Woodson
2018-02-01Merge pull request #6876 from mgugino-upstream-stage/fix-restart-master-playScott Dodson
Remove master_ha bool checks
2018-01-25Don't emit assetConfig on 3.9Scott Dodson
2018-01-25Remove master_ha bool checksMichael Gugino
Most of these checks are no longer applicable to the tasks on which they are applied. This commit removes incorrect ha checks to ensure services are restarted at appropriate times. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1500897
2018-01-17Add call to 3.8 playbook in 3.9 upgradeScott Dodson
2018-01-17Exclude 3.9 packages during 3.8 upgradeScott Dodson
There are some obsoletes in 3.9 packages which lead yum to upgrade directly from 3.7 to 3.9 when you ask for 3.8 packages while 3.9 repos are enabled. Since we'd like to allow people to run one playbook to upgrade from 3.7 to 3.8 to 3.9 we need to exclude those packages when upgrading to 3.8
2018-01-16Remove tuned-profiles from list of master packages upgradedScott Dodson
2018-01-11Merge pull request #6614 from mgugino-upstream-stage/plugins-to-lib-utilsScott Dodson
Move more plugins to lib_utils
2018-01-10Move more plugins to lib_utilsMichael Gugino
This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
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-03Merge pull request #6586 from ↵OpenShift Merge Robot
mgugino-upstream-stage/cast-bool-openshift_docker_use_system_container Automatic merge from submit-queue. Cast openshift_docker_use_system_container to bool openshift_docker_use_system_container might be passed in via ini inventory as 'openshift_docker_use_system_container=false' This condition will be interpreted as a string type, instead of boolean. Casting openshift_docker_use_system_container as bool will achieve the users desired intent. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1528943
2018-01-02Cast openshift_docker_use_system_container to boolMichael Gugino
openshift_docker_use_system_container might be passed in via ini inventory as 'openshift_docker_use_system_container=false' This condition will be interpreted as a string type, instead of boolean. Casting openshift_docker_use_system_container as bool will achieve the users desired intent. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1528943
2017-12-21Remove oauth_template bits from openshift_factsMichael Gugino
This commit moves some deprecated variable logic outside of openshift_facts and into role defaults.
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-19Merge pull request #6469 from mgugino-upstream-stage/plugin-consolidateScott Dodson
Plugin consolidate
2017-12-18Remove some small items from openshift_factsMichael Gugino
Remove some small items from openshift_facts that don't need to be there.
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-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-13Combine openshift_master/vars with defaultsMichael Gugino
This commit combines these two sources of variables. Prior to the current release, some plays external to the openshift_master role consumed these variables using relative imports. This is no longer the case, so we can safely combine the vars into defaults.
2017-12-08Remove unneeded embedded etcd logicMichael Gugino
Removing some remaining embedded etcd facts except for the migration plays.
2017-12-08Merge pull request #6278 from mgugino-upstream-stage/service_typeMichael Gugino
Remove openshift.common.service_type
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-07Fix incorrect register name master registry authMichael Gugino
Corrects register variable name to registry auth support. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
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-05Remove all references to pacemaker (pcs, pcsd) and ↵Andrew Butcher
openshift.master.cluster_method. With pacemaker removed there is no longer a need for openshift.master.cluster_method. We only have one option.
2017-12-05Merge pull request #6306 from mgugino-upstream-stage/fix-hosted-varsScott Dodson
Fix hosted vars
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-05Fix hosted varsMichael Gugino
Remove hosted vars from openshift_facts. The current pattern is causing a bunch of undesired sideffects.
2017-12-04Merge pull request #6297 from mgugino-upstream-stage/crt_roleScott Dodson
Implement container runtime role
2017-12-01Merge pull request #6069 from kwoodson/upgrade_scale_groupsScott Dodson
Initial upgrade for scale groups.
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-29Initial upgrade for scale groups.Kenny Woodson
2017-11-28Remove openshift_facts project_cfg_factsMichael Gugino
This simplifies some variable logic.
2017-11-28Remove dns_port factMichael Gugino
Simply dns_port variable by remove from openshift_facts.
2017-11-28Merge pull request #6259 from adelton/issue-6255Michael Gugino
dist.iteritems() no longer exists in Python 3.
2017-11-27Simplify is_master_system_container logicMichael Gugino
Simplify the variable is_master_system_container
2017-11-27dist.iteritems() no longer exists in Python 3.Jan Pazdziora
2017-11-22Merge pull request #6231 from mtnbikenc/include-deprecation-openshift-masterRussell Teague
Include Deprecation - openshift-master
2017-11-22Include Deprecation - openshift-masterRussell Teague
2017-11-22Fix system_images_registry variableMichael Gugino
Simplify the logic for this variable.
2017-11-15Merge pull request #6084 from mgugino-upstream-stage/combine-master-upgradeOpenShift Merge Robot
Automatic merge from submit-queue. Combine master upgrade play with role Currently, there are plays importing tasks directly from openshift_master role. This has caused numerous bugs and code duplicaiton in the past. This commit combines the upgrade into openshift_master role utilizing include_role syntax.
2017-11-15Merge pull request #5968 from mgugino-upstream-stage/version-scrubScott Dodson
Removed old version code
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-14Removed old version codeMichael Gugino
This commit removes any references to versions < 1.5/3.5 We assume the version is always greater than or equal to 1.5/3.5.
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
2017-11-13Regex anchors changed to match protocol start and ports.Kenny Woodson
2017-11-09Combine master upgrade play with roleMichael Gugino
Currently, there are plays importing tasks directly from openshift_master role. This has caused numerous bugs and code duplicaiton in the past. This commit combines the upgrade into openshift_master role utilizing include_role syntax.
2017-11-08Merge pull request #6016 from kwoodson/bootstrap_enhancements-v3Kenny Woodson
Bootstrap enhancements.