summaryrefslogtreecommitdiff
path: root/roles/etcd
AgeCommit message (Collapse)Author
2018-02-10Use r_etcd_common_etcdctl_command instead of hardcoded binary name to ↵Vadim Rutkovsky
support containerized upgrade
2018-01-18Use openshift_is_containerized instead of openshift_is_atomic when ↵Vadim Rutkovsky
installing etcd This allows non-Atomic hosts to be used to install containerized etcd
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-08ensure containerized bools are castMichael Gugino
2018-01-05Remove become=no from various roles and tasksMichael Gugino
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.
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-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-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-13etcd: use Fedora /latest/ instead of hardcoding the versionGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-10Add missing dependencies on openshift_facts roleScott Dodson
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
2017-12-07Merge pull request #6380 from sdodson/oc-admScott Dodson
Remove all uses of openshift.common.admin_binary
2017-12-07Remove all uses of openshift.common.admin_binaryScott Dodson
Replace with `oc adm`
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-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-28Remove unused task file from etcd roleRussell Teague
2017-11-28fix type in authroizeJan Chaloupka
2017-11-22Include Deprecation - openshift-etcdRussell Teague
2017-11-21Cleanup etcd runtime variable.Michael Gugino
Cleaning out reference to etcd_runtime in openshift facts.
2017-11-20Refactor etcd imageMichael Gugino
Simplify logic for etcd_image
2017-11-01check presence of v2 snapshot before the migration proceedsJan Chaloupka
2017-10-23etcd: remove hacks for the system containerGiuseppe Scrivano
Use ADDTL_MOUNTS to add a bind mount to the etcd configuration. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-10-19systemcontainers: Verify atomic.conf proxy is always configuredSteve Milner
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>
2017-10-13set initial etcd cluster properly during system container scale upJan Chaloupka
2017-10-11Merge pull request #5672 from ingvagabund/migrate-embedded-etcdOpenShift Merge Robot
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.
2017-10-06migrate embedded etcd to external etcdJan Chaloupka
2017-10-05fix typo for default in etcdMichael Gugino
2017-10-02Separate certificate playbooks.Andrew Butcher
2017-09-27Merge pull request #5518 from ingvagabund/set-quota-backend-bytes-explicitlyOpenShift Merge Robot
Automatic merge from submit-queue set the etcd backend quota to 4GB by default Bug: 1492891
2017-09-27Fix typo in drop_etcdctl.ymlMichael Hanselmann
s/alises/aliases/ says everything.
2017-09-26Set the etcd backend quota to 4GB by defaultJan Chaloupka
2017-09-25consolidate etcd_common roleJan Chaloupka
2017-09-25Merge pull request #5451 from ingvagabund/consolidate-etcd-upgradeOpenShift Merge Robot
Automatic merge from submit-queue Consolidate etcd upgrade Consolidates `etcd_upgrade` into the `etcd` role.
2017-09-22consolidate etcd_migrate roleJan Chaloupka
2017-09-21consolidate etcd_upgrade roleJan Chaloupka
2017-09-18Consolidate etcd certs rolesJan Chaloupka
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.
2017-08-31update env in etcd.conf.j2 to reflect the latest namingJan Chaloupka
2017-08-30Added firwall defaults to etcd role.Kenny Woodson
2017-08-10Updated README to reflect refactor. Moved firewall initialize into separate ↵Kenny Woodson
file.
2017-08-09Adding a default condition and removing unneeded defaults.Kenny Woodson
2017-08-08First attempt at refactor of os_firewallKenny Woodson
2017-08-02Merge pull request #3043 from jkhelil/scaleup_etcdScott Dodson
Add etcd scaleup playbook
2017-07-07Fix etcd conditional check failureMarc Rooding
2017-07-04drop etcdctl before the etcd_container serviceJan Chaloupka
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.
2017-07-03etcd, syscontainer: fix copy of existing datastoreGiuseppe Scrivano
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1466638 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-06-30run etcd_container with type:spc_t labelJan Chaloupka
2017-06-20etcd, system_container: do not mask etcd_containerGiuseppe Scrivano
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1462087 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-06-20etcd, system_container: do not enable system etcdGiuseppe Scrivano
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>
2017-06-15add etcd scaleup playbookjawed