]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
format and mount the ephemeral filesystem
authorAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 19:09:23 +0000 (15:09 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 19:09:23 +0000 (15:09 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml.j2

index bcc7901cb985a03b577b48ccb338ab05bae6338f..304830813f033227bab331e6ee2d6535f761d055 100644 (file)
     - name: ensure the build dir exists
       file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
 
+    - name: format /dev/vdb to ext4
+      filesystem: fstype=ext4 dev=/dev/vdb
+
+    - name: mount the ephemeral storage at the build dir
+      mount:
+        name: /home/jenkins-build/build
+        src: '/dev/vdb'
+        fstype: ext4
+        opts: noatime
+        state: present
+
     - name: copy the gnupg files to build/
       synchronize: src=playbook/files/gnupg.ceph-release dest=/home/{{ jenkins_user }}/build/gnupg.ceph-release
       ignore_errors: true