]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
puddle: add rsyncd 164/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 5 Nov 2015 20:50:46 +0000 (13:50 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 18 Dec 2015 22:55:47 +0000 (15:55 -0700)
Run rsyncd with access to the "ubuntu" directory. This will permit Red
Hat's rel-eng to view this repository layout.

roles/puddle/handlers/main.yml
roles/puddle/tasks/main.yml
roles/puddle/tasks/rsync.yml [new file with mode: 0644]
roles/puddle/templates/rsyncd.conf [new file with mode: 0644]

index f9faf7239abf99fc54d8ee5c279dc6ddafa7723b..c6a5805c4cbfa3b99758cf95cc69077352c72531 100644 (file)
@@ -9,3 +9,8 @@
   service:
     name: faucet
     state: restarted
+
+- name: restart rsyncd
+  service:
+    name: rsyncd
+    state: restarted
index df6b87ad0cf46ee00ddc9de584dd31d9a701ea64..afdb78a17299084a1a7d3da4ab1cb1ffc912aba4 100644 (file)
@@ -29,3 +29,8 @@
 - include: distill/configure.yml
   tags:
     - configure-distill
+
+# install and configure rsyncd
+- include: rsync.yml
+  tags:
+    - rsync
diff --git a/roles/puddle/tasks/rsync.yml b/roles/puddle/tasks/rsync.yml
new file mode 100644 (file)
index 0000000..f3ac4d6
--- /dev/null
@@ -0,0 +1,18 @@
+---
+- name: install rsync
+  yum:
+    name: rsync
+    state: present
+
+- name: configure rsyncd
+  template:
+    src: rsyncd.conf
+    dest: /etc/rsyncd.conf
+  notify:
+   - restart rsyncd
+
+- name: start the rsyncd service
+  service:
+    name: rsyncd
+    state: started
+    enabled: yes
diff --git a/roles/puddle/templates/rsyncd.conf b/roles/puddle/templates/rsyncd.conf
new file mode 100644 (file)
index 0000000..84121bc
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# {{ ansible_managed }}
+#
+
+        uid = nobody
+        gid = nobody
+        use chroot = yes
+        max connections = 64
+
+[ubuntu]
+        path = /var/www/{{ ansible_hostname }}/htdocs/ubuntu
+        comment = ceph ubuntu packages