summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version/tasks/main.yml
Commit message (Collapse)AuthorAgeFilesLines
* Refactor version and move some checks into sanity_checks.pyMichael Gugino2018-01-091-205/+1
| | | | | | | | | | | | | 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.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-12/+8
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-141-2/+2
|
* Remove openshift.common.service_typeMichael Gugino2017-12-071-4/+4
| | | | | | | | 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.
* Include Deprecation - Init Playbook PathsRussell Teague2017-11-161-2/+2
|
* Remove base package installMichael Gugino2017-10-231-10/+0
| | | | | | | | | | | Currently, base atomic-openshift package is installed for versioning. This doesn't appear to be necessary. This commit removes this step. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1504196
* Default openshift_pkg_version to full version-release during upgradesScott Dodson2017-09-201-2/+7
| | | | | | | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1490677 The versioning scheme for 3.7 pre-releases has changed and now all versions are 3.7.0 and the release is incremented on builds, ie: 3.7.0-0.124.0 upgraded to 3.7.0-0.125.0. If we know we're an upgrade and they haven't requested a specific package version defer the defaulting of openshift_pkg_version until the upgrade playbooks and there set it to the available version including the release.
* Only install base openshift package on masters and nodesMichael Gugino2017-09-121-1/+5
| | | | | | | | | | | Recent refactoring to remove openshift_common resulted in base openshift rpm's being installed on more hosts than previous. This situation results in hosts that would otherwise not need access to openshift repositories to require them. This patch set results in only openshift_masters and openshift_nodes to have the openshift base package installed.
* Remove openshift-commonMichael Gugino2017-09-061-0/+6
| | | | | | | | | Most of this role's purpose was to set facts. The vast majority of these facts were simply redefining user-supplied variables. This commit also removes various artifacts leftover from previous versions, as well as variables that seem to be entirely unused.
* openshift_version: enterprise accepts new style pre-releaseSteve Milner2017-08-241-2/+5
| | | | | | | Example: v3.7.0-0.104.0 Resolves 5192 Fixes: https://github.com/openshift/openshift-ansible/issues/5192
* Set the openshift_version from the openshift.common.version in case it is emptyJan Chaloupka2017-07-281-1/+1
| | | | | | | It can happen the openshift_version is set to an empty string. Which results in openshift_pkg_version set to "-". Thus, failing installation of base and excluder packages. For more info see https://bugzilla.redhat.com/show_bug.cgi?id=1474871
* openshift_version: skip nfs and lb hostsSteve Milner2017-06-231-96/+100
| | | | Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1458653
* Merge pull request #4225 from ingvagabund/relax-rpm-image-version-checkJan Chaloupka2017-05-311-2/+7
|\ | | | | relax check for rpm version and docker image version equality
| * check for rpm version and docker image version equality only if ↵Jan Chaloupka2017-05-181-2/+7
| | | | | | | | openshift_pkg_version and openshift_image_tag are not defined
* | allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner2017-05-191-1/+1
|/ | | | | | | | | This commit allows to specify imageConfig.format specifically for master or for nodes. One use case of this could be if you want to use customer builder images. In this case imageConfig.format only needs to be changed in the master-config.yml but not in the node-config.yml.
* openshift_version: skip rpm version==image version on AtomicGiuseppe Scrivano2017-05-151-3/+8
| | | | | | since there is no repoquery installed on Atomic Host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka2017-05-111-2/+10
|
* Fail if rpm version != docker image versionJan Chaloupka2017-05-091-2/+10
|
* openshift_version: improve messagingLuke Meyer2017-04-181-18/+38
| | | | | | | This role often provides the first failure messages when users' inventory parameters are not going to work out. So, make sure the task names and messages are informative to someone who may not have very much context for what this role does.
* Add names to openshift_image_tag assertsSteve Milner2017-04-031-2/+4
|
* openshift_version now requires prepended version formatsSteve Milner2017-04-031-14/+0
| | | | | - openshift_image_tag must start with a v unless it's set to latest - openshift_pkg_version must start with a -
* Warn if openshift_image_tag is defined by hand for package installsSteve Milner2017-04-031-0/+12
|
* Verify openshift_image_tag is valid during openshift_version mainSteve Milner2017-04-031-0/+31
| | | | | - origin examples: v1.2.3, v1.2.3-alpha, v1.2.3-beta.1, v1.5.0-rc.0 - openshift-enterprise examples: v3.5, v3.5.3, v3.5.3.4, v3.5.3.4-1
* Add openshift_version fact fallback debug messagesSteve Milner2017-04-031-4/+14
|
* cleanup: when in openshift_version tasks are multilineSteve Milner2017-04-031-6/+34
|
* validate and normalize inventory variablesLuke Meyer2017-03-291-8/+0
| | | | | | | | | | In openshift_repos and everywhere, ensure deployment_type and openshift_deployment_type are defined and the same. We really want to set openshift_deployment_type, but users will likely still have just deployment_type, so accept both. And don't make every playbook default openshift_deployment_type to deployment_type. This introduces the openshift_sanitize_inventory role to run before anything else.
* allow 'latest' origin_image_tagSeth Jennings2016-11-291-1/+1
|
* Better error if no OpenShift RPMs are available.Devan Goodwin2016-08-231-0/+4
|
* Slight modification to error when using mismatched openshift_release.Devan Goodwin2016-07-201-1/+1
|
* Fix bugs with origin 1.2 rpm based upgrades.Devan Goodwin2016-07-191-0/+7
|
* Convert openshift_release and openshift_version to strings for startswithScott Dodson2016-07-151-1/+5
| | | | Fixes : startswith first arg must be str, unicode, or tuple, not float
* Use proper startswith.Devan Goodwin2016-07-111-1/+1
|
* Remove all debug used during devel of openshift_version.Devan Goodwin2016-07-081-12/+0
|
* Fixes for Ansible 2.1.Devan Goodwin2016-07-041-3/+6
|
* Fix unsafe bool usage.Devan Goodwin2016-07-041-1/+1
|
* Normalize some of the version inventory vars which users might mistakenly ↵Devan Goodwin2016-06-171-0/+13
| | | | enter wrong.
* Check that detected version matches openshift_release in rpm installations.Devan Goodwin2016-06-171-5/+10
|
* Block attempts to install origin without specifying any release info.Devan Goodwin2016-06-171-0/+7
|
* More version fixes.Devan Goodwin2016-06-161-1/+0
|
* Support origin alpha tags.Devan Goodwin2016-06-151-0/+1
|
* Always populate openshift_image_tag and openshift_pkg_version.Devan Goodwin2016-06-151-2/+22
| | | | | Allows the use of arbitrary tags, precise control over containers and rpms, and likely mixed environments.
* Fix rpm installs.Devan Goodwin2016-06-131-7/+9
|
* Fix version unset bug, and set common ver fact on containerized nodes.Devan Goodwin2016-06-101-0/+5
|
* Respect image tag/pkg version during upgrade.Devan Goodwin2016-06-071-3/+3
|
* Force version to latest 3.2 during upgrade.Devan Goodwin2016-06-071-0/+4
|
* Fix installing release 3.1 not converting to precise version.Devan Goodwin2016-06-011-2/+2
|
* Break version calc out into a role, separate yaml for containerized/rpm.Devan Goodwin2016-05-311-0/+29