aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-12-04 23:20:41 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-12-04 23:20:41 +0200
commit46a314296e00307f9fb18fb050597d17804aa239 (patch)
tree1546623524612c353884a97922bdb146d001d8ca
parentfc7459742809715d13763b43f856d6297dab9d1b (diff)
downloadl-a-b-VPS-46a314296e00307f9fb18fb050597d17804aa239.tar.gz
Add play to set up production Jenkins partition/directory structure.
Keep this separate for now.
-rw-r--r--ansible-deploy/jenkins-ec2-dirs.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/ansible-deploy/jenkins-ec2-dirs.yml b/ansible-deploy/jenkins-ec2-dirs.yml
new file mode 100644
index 0000000..623df0b
--- /dev/null
+++ b/ansible-deploy/jenkins-ec2-dirs.yml
@@ -0,0 +1,21 @@
+# This play sets up production Jenkins partition/directory structure
+---
+- hosts: production:&ec2
+ gather_facts: no
+ tasks:
+ - name: Prepare jobs volume mount point
+ file: state=directory dest=/mnt2
+ sudo: yes
+ - name: Add jobs volume mount point to /etc/fstab
+ mount: state=mounted src={{job_store_dev}} name=/mnt2 fstype=auto passno=2
+ sudo: yes
+ - name: Prepare jobs volume directory structure
+ file: state=directory dest=/mnt2/jenkins/jobs
+ sudo: yes
+ - name: Prepare Jenkins jobs bind mount point
+ file: state=directory dest=/var/lib/jenkins/jobs
+ sudo: yes
+ - name: Add Jenkins jobs bind mount point to /etc/fstab
+ mount: state=mounted src=/mnt2/jenkins/jobs name=/var/lib/jenkins/jobs
+ fstype=none opts="defaults,bind" passno=0
+ sudo: yes