]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ensure that the owner of the build dir can write to it
authorAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 20:45:57 +0000 (16:45 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 20:45:57 +0000 (16:45 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ansible-jenkins/files/ssh/keys/jenkins_build.pub [new file with mode: 0644]
ansible/slave.yml.j2

diff --git a/ansible/roles/ansible-jenkins/files/ssh/keys/jenkins_build.pub b/ansible/roles/ansible-jenkins/files/ssh/keys/jenkins_build.pub
new file mode 100644 (file)
index 0000000..e4c9262
--- /dev/null
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDI0tHxJQ7n+uMiLpsoR6CKAVd0xatgVQuqp/gmnGpZU0kE54a29vPNnEt7/aLitbfyhc57rrbHOT09H3ov74GZKkoVBSbMJUSsK3drbN+58wcuk+HK0htRewmwCfcfi9AkrVbyw6pbPXW/pbjxnxLep52fKmpJJnImZ5eHRV5le9OSAcLA1LHYR4y9R3IOrTp7jgpE205UxZi5OopAx7gkyTsmfydvmq4MjaSwbVOJ7aW/Fdt5FVxNJP3Zl/OrvDoo/1WovoRIDbVQH8JFpLikMSnCqtBVIHDeW6imAKl6dpn9Gf4FxD94+OcurhXo2p0pvSzC4Strg4d2Sxqh4wph jenkins-build
index 9998f0f0b06aa0fd98834692347a391efbe6abe6..22913d193ff56d286ab553601f8c0156e9a8c55e 100644 (file)
@@ -63,6 +63,9 @@
         opts: noatime
         state: mounted
 
+    - name: ensure the build dir has the right owner permissions
+      file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
+
     - 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