summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
committerKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
commit5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 (patch)
tree4c17abdd1e5b39e845d33d7d970ac216a82d766d /roles/etcd/tasks
downloadopenshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.gz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.bz2
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.xz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.zip
Initial Commit. Sharing is caring
Diffstat (limited to 'roles/etcd/tasks')
-rw-r--r--roles/etcd/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
new file mode 100644
index 000000000..062d2e8a9
--- /dev/null
+++ b/roles/etcd/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+- name: Install etcd
+ yum: pkg=etcd state=installed disable_gpg_check=yes
+
+- name: Install etcdctl
+ yum: pkg=etcdctl state=installed disable_gpg_check=yes
+
+- name: Write etcd global config file
+ template: src=etcd.conf.j2 dest=/etc/etcd/etcd.conf
+ notify:
+ - restart etcd
+
+- name: Open firewalld port for etcd
+ firewalld: port=4001/tcp permanent=false state=enabled
+
+- name: Save firewalld port for etcd
+ firewalld: port=4001/tcp permanent=true state=enabled
+
+- name: Enable etcd
+ service: name=etcd enabled=yes state=started