From: Ken Dreyer Date: Thu, 5 Nov 2015 20:50:46 +0000 (-0700) Subject: puddle: add rsyncd X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bf6adea2f25f1620fd6b730b9fb3cb3de556b526;p=ceph-cm-ansible.git puddle: add rsyncd Run rsyncd with access to the "ubuntu" directory. This will permit Red Hat's rel-eng to view this repository layout. --- diff --git a/roles/puddle/handlers/main.yml b/roles/puddle/handlers/main.yml index f9faf72..c6a5805 100644 --- a/roles/puddle/handlers/main.yml +++ b/roles/puddle/handlers/main.yml @@ -9,3 +9,8 @@ service: name: faucet state: restarted + +- name: restart rsyncd + service: + name: rsyncd + state: restarted diff --git a/roles/puddle/tasks/main.yml b/roles/puddle/tasks/main.yml index df6b87a..afdb78a 100644 --- a/roles/puddle/tasks/main.yml +++ b/roles/puddle/tasks/main.yml @@ -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 index 0000000..f3ac4d6 --- /dev/null +++ b/roles/puddle/tasks/rsync.yml @@ -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 index 0000000..84121bc --- /dev/null +++ b/roles/puddle/templates/rsyncd.conf @@ -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