summaryrefslogtreecommitdiff
path: root/roles/etcd
AgeCommit message (Collapse)Author
2017-05-18move etcd upgrade related code into etcd_upgrade roleJan Chaloupka
2017-05-09Update systemd units to use proper container service nameSteve Milner
- If using a system container: container-engine - If using a package install: docker Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1448800
2017-05-03move etcdctl.yml from etcd to etcd_common roleJan Chaloupka
2017-05-01Don't double quote when conditionsScott Dodson
2017-04-28Refactor etcd rolesJan Chaloupka
- introduce block and simplify when conditions - introduce config.yml so the self-standing etcd role can be run (e.g. to test etcd cluster deployment) - remove empty task files - skip dependency on openshift_etcd_ca - replace cert paths with their appropriate variables
2017-04-25Revert "Add /etc/sysconfig/etcd to etcd_container"Scott Dodson
2017-04-19Add /etc/sysconfig/etcd to etcd_containerFabio Alessandro Locati
The `/etc/sysconfig/etcd` file is often used to allow the usage of additional variables passed to the etcd daemon. Example of this is to make some new nodes join an existing cluster. Having two files simplify the automation around it, since in the `/etc/sysconfig/etcd` is possible to put temporary variables and then nuke the file as soon as they are not used anymore.
2017-04-13Cast etcd_debug to a booleanSteve Kuznetsov
In the current implementation, any user-provided string in the `etcd_debug` variable will be placed into `etcd.conf`. The YAML and Ansible boolean parsing is more generous than the Golang one, so valid YAML booleans like `no` will be invalid when passed to etcd. Casting to a boolean before casting to a string normalizes the field. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-03-28Add etcd_debug and etcd_log_package_levels variablesScott Dodson
2017-03-27Use meta/main.yml for role dependenciesRussell Teague
2017-03-08add ability to specify an etcd versionMark McKinstry
2017-03-02Only set ownership to etcd for thirdparty datadirScott Dodson
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1428532
2017-03-01Merge pull request #3393 from srampal/contivScott Dodson
Pull request for Contiv Ansible code integration into Openshift Ansible
2017-02-28etcd: use the new oc_atomic_container moduleGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-02-27Combined (squashed) commit for all changes related to adding Contiv support ↵Sanjeev Rampal
into Openshift Ansible. This is the first (beta) release of Contiv with Openshift and is only supported for Openshift Origin + Bare metal deployments at the time of this commit. Please refer to the Openshift and Contiv official documentation for details of the level of support for different features and modes of operation.
2017-02-10etcd: use as system containerGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-11-29Merge pull request #2876 from dustymabe/dusty-fix-etcd-selinuxScott Dodson
fix selinux issues with etcd container
2016-11-28fix selinux issues with etcd containerDusty Mabe
Make it so that we don't relabel /etc/etcd/ (via `:z`) on every run. Doing this causes systemd to fail accessing /etc/etcd/etcd.conf when trying to run the systemd unit file on the next run. Convert it from `:z` to `:ro` since we only need read-only access to the files. Fixes #2811
2016-11-28Refactored to use Ansible systemd moduleRussell Teague
* Ansible systemd module used in place of service module * Refactored command tasks which are no longer necessary * Applying rules from openshift-ansible Best Practices Guide
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-14Add updates for containerizedScott Dodson
2016-11-14Drop /etc/profile.d/etcdctl.shScott Dodson
Includes bash functions for etcdctl2 and etcdctl3 which provide reasonable defaults for etcdctl functions on a host that's configured with openshift_etcd.
2016-09-26tweak logicJason DeTiberus
2016-09-26test fix for systemd changesScott Dodson
2016-08-11Support for redeploying certificates.Andrew Butcher
2016-08-02Refactor etcd certificates roles.Andrew Butcher
2016-07-20Stop reporting changes when docker pull is already up to date.Devan Goodwin
2016-06-02Merge pull request #1971 from dgoodwin/missing-services-fixJason DeTiberus
Fix error with stopping services that may not exist.
2016-06-02Fix error with stopping services that may not exist.Devan Goodwin
Causes a hard failure due to missing etcd/atomic-openshift-master services. Instead, check that the services exist before ensuring they're stopped/disabled.
2016-06-01Move os_firewall_allow from defaults to role dependencies.Andrew Butcher
2016-05-02Default os_firewall_use_firewalld to false in os_firewall and remove overrides.Andrew Butcher
2016-04-20Remove etcd_interface variable. Remove openshift_docker dependency from the ↵Andrew Butcher
etcd role.
2016-04-20Use openshift_hostname/openshift_ip values for etcd configuration and ↵Andrew Butcher
certificates.
2016-04-14The openshift_docker role must set the version facts for containerized installsBrenton Leanhardt
QE found that for fresh installs we were basing the docker version facts of the images that could be pulled prior to configuring /etc/sysconfig/docker. This is an edge case but something we need to fix.
2016-04-12use RestartSec to avoid default rate limit in systemdBrenton Leanhardt
Lifted from https://github.com/openshift/origin/pull/8317
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-28make docker service want ose containerized servicesSeth Jennings
There are points where the docker service is restarted during the install. Sometimes the services that are PartOf docker.service do not get restarted when docker is restarted. https://bugzilla.redhat.com/show_bug.cgi?id=1318948 Systemd documentation recommends using "wants" as the perferred means of creating startup linkages between units. This patch makes the ose services wanted by the docker service rather than multi-user.target. This creates a downward link from the docker service to the ose containerized services.
2016-03-15Only mask etcd service for containerized installls when it's installedScott Dodson
2016-03-14improve ordering of systemd unitsJason DeTiberus
2016-03-14Ensure is_containerized is cast as bool.Andrew Butcher
2016-03-02Bug 1313169 - Ansible installer tries to enable etcd_container service even ↵Brenton Leanhardt
though containerized=false
2016-02-22remove version requirement from etcd, shouldn't be needed anymoreAdam Miller
2016-01-07Always pull docker imagesScott Dodson
2016-01-04Fix typo in etcd service status fact.Andrew Butcher
2015-12-26Fix restart handlers.Andrew Butcher
2015-12-16Add some guards to wait for images to be pulled before moving onScott Dodson
2015-12-15pull docker images only if not already presentJason DeTiberus
2015-12-15fixesJason DeTiberus
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