summaryrefslogtreecommitdiff
path: root/roles/openshift_repos/tasks
AgeCommit message (Collapse)Author
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-18Merge pull request #6492 from mazzystr/fix_rhel_reposMichael Gugino
Fix rhel_repos disable command
2017-12-15Merge pull request #6489 from mgugino-upstream-stage/fix-repos-v2Michael Gugino
Fix rhel_subscribe boolean
2017-12-15Merge pull request #6484 from mtnbikenc/tests-as-filtersRussell Teague
Deprecate using Ansible tests as filters
2017-12-15Fix rhel_repos disable commandChris Callegari
2017-12-15Fix rhel_subscribe booleanMichael Gugino
This commit fixes a variable name to it's correct name used in a when condition. Also makes use of 'is defined' consistent.
2017-12-14Move repo and subscribe to prerequisitesMichael Gugino
This commit refactors some steps in rhel subscribe and moves repos.yml from init/main to prerequisites.
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-14Commit to stabalize RHSM operations. This code is derived from contribChris Callegari
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-16Include Deprecation - Init Playbook PathsRussell Teague
2017-11-02Remove old /etc/yum.repos.d/openshift_additional.repo file.Andrew Butcher
2017-09-26Fix origin repo deploymentMichael Gugino
Currently, origin deployments place a repo on nodes and masters named centos-openshift-origin. At some point, the maintainers of centos-openshift-origin migrated previous releases of openshift to their own respective repositories. This commit provides the correct repositories for centos-openshift-origin based on the variable openshift_release, defaulting to the latest release reposititory (unversioned). Fixes: https://github.com/openshift/openshift-ansible/issues/5404
2017-08-31Adding another default to protect against missing name/descKenny Woodson
2017-08-29Merging openshift_node with openshift bootstrap.Kenny Woodson
2017-07-23Support enabling the centos-openshift-origin-testing repositoryDavid Moreau-Simard
New versions of Origin land in the -testing repository before they are tagged for release. This effectively adds the ability to easily test a new unreleased version (currently in this case 1.5.1) by enabling the correct repository if 'openshift_repos_enable_testing' is true.
2017-06-06singletonize some role tasks that repeat a lotLuke Meyer
2017-05-15Don't set-up origin repositories if they've already been configuredDavid Moreau-Simard
CentOS ships the 'centos-release-openshift-origin' package which is used to set up the repository and the key. If this package has been installed prior to running openshift-ansible (i.e, to install ansible or openshift-ansible from RPM), it leads to the repository being set up twice in different files. We're now matching the name of the files and since they are identical, it will stay idempotent while not configuring the repositories twice.
2017-05-03Ensure repo cache is clean on the first runRussell Teague
The openshift_repos role is modified to clean the repo cache on first run to ensure a clean cache in the situation where the repo files have been changed manually, such as just prior to upgrades.
2017-03-29validate and normalize inventory variablesLuke Meyer
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.
2017-02-17Disentangle openshift_repos from openshift_factsScott Dodson
2017-01-04Cast openshift_enable_origin_repo to bool.Andrew Butcher
2016-11-17Refactor to use Ansible package moduleRussell Teague
The Ansible package module will call the correct package manager for the underlying OS.
2016-11-17Allow users to disable the origin repo creationScott Dodson
2016-08-24fix duplicate src fieldJason DeTiberus
2016-08-24simplify repo configurationJason DeTiberus
2016-08-23Revert "Due to problems with with_fileglob lets avoid using it for now"Scott Dodson
2016-08-18Due to problems with with_fileglob lets avoid using it for nowScott Dodson
2016-08-08with_fileglob no longer supports wildcard prefixes.Andrew Butcher
2016-07-07Don't special case origin on centosScott Dodson
Just install the centos paas sig repo whenever asked for origin on RHEL or Centos
2016-07-06Add CentOS PaaS SIG repos for RHELScott Dodson
2016-05-26switch to using sig release packagesJason DeTiberus
2016-03-03First past at the upgrade processBrenton Leanhardt
2016-02-23Add quotes around src argument to support paths with spacesDavid Mat
2015-12-15Skip yum/dnf ops when is_containerizedScott Dodson
2015-12-15Containerization work by @sdodsonScott Dodson
2015-12-15Initial containerization work from @ibottyTobias Florek
copied from https://github.com/eparis/kubernetes-ansible/blob/17f98edd7ff53e649b43e26822b8fbc0be42b233/roles/common/tasks/main.yml
2015-12-09Remove yum / dnf duplicationScott Dodson
2015-12-02Fedora changes:Adam Miller
- ansible bootstrap playbook for Fedora 23+ - add conditionals to handle yum vs dnf - add Fedora OpenShift COPR - update BYO host README for repo configs and fedora bootstrap Fix typo in etcd README, remove unnecessary parens in openshift_node main.yml rebase on master, update package cache refresh handler for yum vs dnf Fix typo in etcd README, remove unnecessary parens in openshift_node main.yml
2015-11-24Update openshift_repos to refresh package cache on changesJason DeTiberus
2015-11-05Various HA changes for pacemaker and native methods.Andrew Butcher
2015-04-14Configuration updates for latest builds and major refactorJason DeTiberus
Configuration updates for latest builds - Switch to using create-node-config - Switch sdn services to use etcd over SSL - This re-uses the client certificate deployed on each node - Additional node registration changes - Do not assume that metadata service is available in openshift_facts module - Call systemctl daemon-reload after installing openshift-master, openshift-sdn-master, openshift-node, openshift-sdn-node - Fix bug overriding openshift_hostname and openshift_public_hostname in byo playbooks - Start moving generated configs to /etc/openshift - Some custom module cleanup - Add known issue with ansible-1.9 to README_OSE.md - Update to genericize the kubernetes_register_node module - Default to use kubectl for commands - Allow for overriding kubectl_cmd - In openshift_register_node role, override kubectl_cmd to openshift_kube - Set default openshift_registry_url for enterprise when deployment_type is enterprise - Fix openshift_register_node for client config change - Ensure that master certs directory is created - Add roles and filter_plugin symlinks to playbooks/common/openshift-master and node - Allow non-root user with sudo nopasswd access - Updates for README_OSE.md - Update byo inventory for adding additional comments - Updates for node cert/config sync to work with non-root user using sudo - Move node config/certs to /etc/openshift/node - Don't use path for mktemp. addresses: https://github.com/openshift/openshift-ansible/issues/154 Create common playbooks - create common/openshift-master/config.yml - create common/openshift-node/config.yml - update playbooks to use new common playbooks - update launch playbooks to call update playbooks - fix openshift_registry and openshift_node_ip usage Set default deployment type to origin - openshift_repo updates for enabling origin deployments - also separate repo and gpgkey file structure - remove kubernetes repo since it isn't currently needed - full deployment type support for bin/cluster - honor OS_DEPLOYMENT_TYPE env variable - add --deployment-type option, which will override OS_DEPLOYMENT_TYPE if set - if neither OS_DEPLOYMENT_TYPE or --deployment-type is set, defaults to origin installs Additional changes: - Add separate config action to bin/cluster that runs ansible config but does not update packages - Some more duplication reduction in cluster playbooks. - Rename task files in playbooks dirs to have tasks in their name for clarity. - update aws/gce scripts to use a directory for inventory (otherwise when there are no hosts returned from dynamic inventory there is an error) libvirt refactor and update - add libvirt dynamic inventory - updates to use dynamic inventory for libvirt
2015-04-03openshift_facts role/module refactor default settingsJason DeTiberus
- Add openshift_facts role and module - Created new role openshift_facts that contains an openshift_facts module - Refactor openshift_* roles to use openshift_facts instead of relying on defaults - Refactor playbooks to use openshift_facts - Cleanup inventory group_vars - Update defaults - update openshift_master role firewall defaults - remove etcd peer port, since we will not be supporting clustered embedded etcd - remove 8444 since console now runs on the api port by default - add 8444 and 7001 to disabled services to ensure removal if updating - Add new role os_env_extras_node that is a subset of the docker role - previously, we were starting/enabling docker which was causing issues with some installations - Does not install or start docker, since the openshift-node role will handle that for us - Only adds root to the dockerroot group - Update playbooks to use ops_env_extras_node role instead of docker role - os_firewall bug fixes - ignore ip6tables for now, since we are not configuring any ipv6 rules - if installing package do a daemon-reload before starting/enabling service - Add aws support to bin/cluster - Add list action to bin/cluster - Add update action to bin/cluster - cleanup some stray debug statements - some variable renaming for clarity
2015-03-18Rename repos role to openshift_reposJason DeTiberus
- Rename repos role to openshift_repos - Make openshift_repos a dependency of openshift_common - Add README and metadata for openshift_repos - Playbook updates for role rename - Verify libselinux-python is installed, otherwise some of the bulit-in modules we use fail