summaryrefslogtreecommitdiff
path: root/roles/openshift_cli/tasks
AgeCommit message (Collapse)Author
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.
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-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-12Ensure that clients are version boundScott Dodson
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-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-27Remove openshift.common.cli_imageMichael Gugino
This commit removes openshift.common.cli_image in favor of openshift_cli_image.
2017-11-22Fix system_images_registry variableMichael Gugino
Simplify the logic for this variable.
2017-10-23cli: use the correct name for the master system containerGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-10-23cli: do not pull again the image when using DockerGiuseppe Scrivano
When CRI-O is used and the CLI image is already pulled into Docker then use it also for copying the CLI files to the host instead of pulling it once again in the ostree storage. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-25cri-o: rename openshift_docker_use_crio to openshift_use_crioGiuseppe Scrivano
It is confusing to have _docker_ in the name, since they are two different backends. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cli_image: do not require Docker when using CRI-OGiuseppe Scrivano
Use atomic to copy the CLI binaries to the host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-11-17Refactor to use Ansible package moduleRussell Teague
The Ansible package module will call the correct package manager for the underlying OS.
2016-07-21Copy openshift binaries instead of using wrapper script.Devan Goodwin
For containerized masters, we previously create a wrapper script to run the docker CLI image and clean up afterward, but this approach is much slower than having the binary on the native system. Instead we now use an ansible module to handle the logic of syncing the various OpenShift binaries and symlinks for client tools out onto the host. The module will correctly report changed if modifications were needed. Substantial speed improvement for containerized installs which requires many openshift/oc commands.
2016-07-20Stop reporting changes when docker pull is already up to date.Devan Goodwin
2016-07-14Merge remote-tracking branch 'upstream/master' into upgrade33Devan Goodwin
2016-07-14Move the bash completion into the cli role. Only add when not containerizedTim Bielawa
2016-07-08Remove all debug used during devel of openshift_version.Devan Goodwin
2016-06-15Always populate openshift_image_tag and openshift_pkg_version.Devan Goodwin
Allows the use of arbitrary tags, precise control over containers and rpms, and likely mixed environments.
2016-06-10Merge branch 'master' into upgrade33Devan Goodwin
2016-06-06Fix Docker 1.10 problems with empty tags and trailing :Devan Goodwin
Docker 1.10 is no longer tolerant of commands like "docker pull myimage:" when we do not have an image tag in play. Adjust all occurrences with one that only includes the : if a version is defined. Adjust the containerized CLI wrappers for a similar problem.
2016-05-30Refactor openshift_version behavior.Devan Goodwin
Very early in playbooks we must init the openshift_version for each host. First we determine it for the master, logic now is pushed into the openshift_docker role which we run only on first master via openshift_cli. Facts are reloaded leaving us with a first master with openshift.common.version fact we can then re-use on all other hosts. The correct version of docker should be installed as well. We then set openshift_version for all other hosts by re-using the master fact.
2016-05-25Work towards determining openshift_version when unspecified.Devan Goodwin
openshift_docker role was largely useless now, but also almost did what we needed. (deps ordering still needs to be changed) Remove defaulting of openshift_version.
2016-05-25Set openshift_version in config playbooks for first master.Devan Goodwin
Starting to remove openshift.docker.openshift_version fact usage. openshift_version should no longer contain a leading 'v' for containerized installs, just a version number.
2016-05-25Debug output.Devan Goodwin
2016-03-31Bug 1320829 - Ensure docker installed for factsJason DeTiberus
- gather facts requiring docker only if docker is present and running - Update reference to etcd role in playbooks/common/openshift-etcd/config.yml to use openshift_etcd
2016-03-15Move common common facts to openshift_factsJason DeTiberus
- Prevents roles that need common facts from needing to require openshift_common, which pulls in the openshift binary. - Add dependency on openshift_facts to os_firewall, since it uses openshift.common facts
2016-03-14Docker role refactorJason DeTiberus
- refactors the docker role to push generic config into docker role and wrap openshift specific variables into an openshift_docker role and it's dependent openshift_docker_facts role - adds support for setting --confirm-def-push flag (Resolves https://github.com/openshift/openshift-ansible/issues/1014) - moves docker related facts from common/node roles to a new docker role - renames cli_docker_* role varialbes to openshift_docker-* (maintaining backward compatibility) - update role dependencies to pull in openshift_docker conditionally based on is_containerized - remove playbooks/common/openshift-docker since the docker role is now conditionally included
2016-03-08reverting back to pre-pulling the master imageBrenton Leanhardt
2016-03-03First past at the upgrade processBrenton Leanhardt
2016-01-26replace yum with dnfSeth Jennings
2016-01-11Set the cli image to match osm_image in openshift_cli roleScott Dodson
2016-01-07Always pull docker imagesScott Dodson
2015-12-16Add some guards to wait for images to be pulled before moving onScott Dodson
2015-12-15Add openshift_cli roleScott Dodson
This role ensures that the clients package is installed or if it's a containerized install places a wrapper script in /usr/local/bin/openshift and symlinks for oc, oadm, and kubectl.