summaryrefslogtreecommitdiffstats
path: root/roles/easyfix
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-12-17 16:10:54 +0000
committerRalph Bean <rbean@redhat.com>2014-12-17 16:10:54 +0000
commit237882207eb165808a1b36c1e17ea79d1fefef7c (patch)
tree3c377c4f68adcbf33df34d12c063a8cb6121ea68 /roles/easyfix
parent7bb515f0d1d6c2ad2eb7a9a9fe1e990b9beaa012 (diff)
downloadansible-237882207eb165808a1b36c1e17ea79d1fefef7c.tar.gz
ansible-237882207eb165808a1b36c1e17ea79d1fefef7c.tar.xz
ansible-237882207eb165808a1b36c1e17ea79d1fefef7c.zip
Proxy config for gather-easyfix and fedmsg-crl.
Diffstat (limited to 'roles/easyfix')
-rw-r--r--roles/easyfix/proxy/files/sync-easyfix.cron1
-rw-r--r--roles/easyfix/proxy/tasks/main.yml25
-rw-r--r--roles/easyfix/proxy/templates/gather-easyfix.conf6
3 files changed, 32 insertions, 0 deletions
diff --git a/roles/easyfix/proxy/files/sync-easyfix.cron b/roles/easyfix/proxy/files/sync-easyfix.cron
new file mode 100644
index 000000000..0c7d317af
--- /dev/null
+++ b/roles/easyfix/proxy/files/sync-easyfix.cron
@@ -0,0 +1 @@
+5,35 * * * * root /usr/bin/rsync -a --delete sundries01::gather-easyfix/* /srv/web/gather-easyfix/ >& /dev/null
diff --git a/roles/easyfix/proxy/tasks/main.yml b/roles/easyfix/proxy/tasks/main.yml
new file mode 100644
index 000000000..a9efb4bba
--- /dev/null
+++ b/roles/easyfix/proxy/tasks/main.yml
@@ -0,0 +1,25 @@
+- name: Ensure dir for content exists
+ file: dest=/srv/web/gather-easyfix owner=root group=root mode=0755 state=directory
+ tags:
+ - easyfix
+ - easyfix/proxy
+
+- name: Put the proxy config in place
+ template: >
+ src=gather-easyfix.conf
+ dest=/etc/httpd/conf.d/{{website}}/gather-easyfix.conf
+ owner=root group=root mode=0644
+ notify:
+ - restart httpd
+ tags:
+ - easyfix
+ - easyfix/proxy
+
+- name: Install the sync-easyfix cronjob to pull content from gatherer
+ copy: >
+ src=sync-easyfix.cron dest=/etc/cron.d/sync-easyfix.cron
+ owner=root group=root mode=0644
+ tags:
+ - cron
+ - easyfix
+ - easyfix/proxy
diff --git a/roles/easyfix/proxy/templates/gather-easyfix.conf b/roles/easyfix/proxy/templates/gather-easyfix.conf
new file mode 100644
index 000000000..bdef7c4dd
--- /dev/null
+++ b/roles/easyfix/proxy/templates/gather-easyfix.conf
@@ -0,0 +1,6 @@
+Alias {{path}} /srv/web/gather-easyfix
+
+<Directory /srv/web/gather-easyfix>
+ Options Indexes
+ AllowOverride None
+</Directory>