summaryrefslogtreecommitdiffstats
path: root/roles/etcd
Commit message (Collapse)AuthorAgeFilesLines
* ensure containerized bools are castMichael Gugino2018-01-081-1/+1
|
* Remove become=no from various roles and tasksMichael Gugino2018-01-052-30/+11
| | | | | | | | | | | | | | | | | etcd runs some actions locally to copy certs from the CA cert host. This commit ensures that we respect the end user's intended behavior with become when using 'anisble_become' in the inventory. Other roles with similar tasks have been modified in the same manner. We shouldn't hard-code become behavior as it can be unexpected for the end user. This only currently works in the CI because the CI passes the '-b' argument on the command line, which will override the task behavior.
* Cast openshift_docker_use_system_container to boolMichael Gugino2018-01-021-1/+1
| | | | | | | | | | | | | 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
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-205-6/+6
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-183-3/+2
| | | | | | | | | | | | | | 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.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-148-11/+17
|
* etcd: use Fedora /latest/ instead of hardcoding the versionGiuseppe Scrivano2017-12-131-1/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Add missing dependencies on openshift_facts roleScott Dodson2017-12-101-0/+1
| | | | | | | All of these roles call the openshift_facts module but didn't include the role in their dependencies which can lead to errors in Ansible 2.4. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1524102
* Merge pull request #6380 from sdodson/oc-admScott Dodson2017-12-071-1/+1
|\ | | | | Remove all uses of openshift.common.admin_binary
| * Remove all uses of openshift.common.admin_binaryScott Dodson2017-12-071-1/+1
| | | | | | | | Replace with `oc adm`
* | Implement container_runtime playbooks and changesMichael Gugino2017-12-071-5/+0
|/ | | | | | This commit refactors some duplicate code, removes usage of set_fact where not needed, and reorganizes container_runtime role to use include_role.
* Implement container runtime roleMichael Gugino2017-12-012-4/+6
|
* retry package operationsLuke Meyer2017-11-307-0/+14
| | | | | | 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).
* Remove unused task file from etcd roleRussell Teague2017-11-281-8/+0
|
* fix type in authroizeJan Chaloupka2017-11-281-2/+2
|
* Include Deprecation - openshift-etcdRussell Teague2017-11-2232-47/+46
|
* Cleanup etcd runtime variable.Michael Gugino2017-11-214-5/+83
| | | | Cleaning out reference to etcd_runtime in openshift facts.
* Refactor etcd imageMichael Gugino2017-11-204-4/+10
| | | | Simplify logic for etcd_image
* check presence of v2 snapshot before the migration proceedsJan Chaloupka2017-11-011-0/+11
|
* etcd: remove hacks for the system containerGiuseppe Scrivano2017-10-238-75/+33
| | | | | | Use ADDTL_MOUNTS to add a bind mount to the etcd configuration. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* systemcontainers: Verify atomic.conf proxy is always configuredSteve Milner2017-10-191-0/+5
| | | | | | | | | | | A new openshift_atomic role has been created for atomic specific tasks. The first task added is proxy which handles updating /etc/atomic.conf to ensure the proper proxy configuration is configured. This task file is then included (via include_role) in system container related task files. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1503903 Signed-off-by: Steve Milner <smilner@redhat.com>
* set initial etcd cluster properly during system container scale upJan Chaloupka2017-10-132-2/+3
|
* Merge pull request #5672 from ingvagabund/migrate-embedded-etcdOpenShift Merge Robot2017-10-1120-19/+135
|\ | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Migrate embedded etcd to external etcd Trello card: https://trello.com/c/9fnBfkT5/528-migrate-embedded-etcd-hosts-to-external-process?menu=filter&filter=label:committed-3.7 Tested on: - [x] embedded etcd -> external rpm etcd - [x] embedded etcd -> external docker etcd One needs to set the `openshift_image_tag` before running the migration to containerized docker etcd.
| * migrate embedded etcd to external etcdJan Chaloupka2017-10-0620-19/+135
| |
* | fix typo for default in etcdMichael Gugino2017-10-051-1/+1
|/
* Separate certificate playbooks.Andrew Butcher2017-10-021-2/+0
|
* Merge pull request #5518 from ingvagabund/set-quota-backend-bytes-explicitlyOpenShift Merge Robot2017-09-274-0/+14
|\ | | | | | | | | | | | | Automatic merge from submit-queue set the etcd backend quota to 4GB by default Bug: 1492891
| * Set the etcd backend quota to 4GB by defaultJan Chaloupka2017-09-264-0/+14
| |
* | Fix typo in drop_etcdctl.ymlMichael Hanselmann2017-09-271-1/+1
| | | | | | | | s/alises/aliases/ says everything.
* | consolidate etcd_common roleJan Chaloupka2017-09-2529-16/+597
|/
* Merge pull request #5451 from ingvagabund/consolidate-etcd-upgradeOpenShift Merge Robot2017-09-254-0/+91
|\ | | | | | | | | | | | | Automatic merge from submit-queue Consolidate etcd upgrade Consolidates `etcd_upgrade` into the `etcd` role.
| * consolidate etcd_upgrade roleJan Chaloupka2017-09-214-0/+91
| |
* | consolidate etcd_migrate roleJan Chaloupka2017-09-2213-0/+230
| |
* | Consolidate etcd certs rolesJan Chaloupka2017-09-189-1/+513
|/ | | | | | | This is a part of the etcd_ like role consolidationi into an action-based role. As part of the consilidation some roles have been removed and some replaced by include_role module. Resulting in reorder and shift of role dependencies from a role into a play.
* update env in etcd.conf.j2 to reflect the latest namingJan Chaloupka2017-08-311-3/+23
|
* Added firwall defaults to etcd role.Kenny Woodson2017-08-301-2/+2
|
* Updated README to reflect refactor. Moved firewall initialize into separate ↵Kenny Woodson2017-08-102-2/+5
| | | | file.
* Adding a default condition and removing unneeded defaults.Kenny Woodson2017-08-092-6/+4
|
* First attempt at refactor of os_firewallKenny Woodson2017-08-084-6/+56
|
* Merge pull request #3043 from jkhelil/scaleup_etcdScott Dodson2017-08-021-11/+7
|\ | | | | Add etcd scaleup playbook
| * add etcd scaleup playbookjawed2017-06-151-11/+7
| |
* | Fix etcd conditional check failureMarc Rooding2017-07-071-1/+2
| |
* | drop etcdctl before the etcd_container serviceJan Chaloupka2017-07-042-7/+7
| | | | | | | | | | If the etcdctl is dropped after the etcd_container is enabled, label of /var/lib/etcd directory is set to var_lib_t instead of virt_sandbox_file_t.
* | etcd, syscontainer: fix copy of existing datastoreGiuseppe Scrivano2017-07-031-2/+5
| | | | | | | | | | | | Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1466638 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* | run etcd_container with type:spc_t labelJan Chaloupka2017-06-301-1/+1
| |
* | etcd, system_container: do not mask etcd_containerGiuseppe Scrivano2017-06-201-1/+8
| | | | | | | | | | | | Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1462087 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* | etcd, system_container: do not enable system etcdGiuseppe Scrivano2017-06-201-2/+2
|/ | | | | | | if etcd is installed and it is not the system container, only unmask the service but do not enable it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* move etcd backup to etcd_common roleJan Chaloupka2017-06-141-1/+2
|
* etcd: system container defines ETCD_(PEER_)?TRUSTED_CA_FILEGiuseppe Scrivano2017-06-081-0/+2
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* etcd: unmask system container service before installing itGiuseppe Scrivano2017-06-081-0/+26
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>