From: Alfredo Deza Date: Tue, 21 Jul 2015 20:45:57 +0000 (-0400) Subject: ensure that the owner of the build dir can write to it X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d6b253f20ddaa0d1bf5b105ffe2cca62659bee90;p=ceph-build.git ensure that the owner of the build dir can write to it Signed-off-by: Alfredo Deza --- 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 index 00000000..e4c92628 --- /dev/null +++ b/ansible/roles/ansible-jenkins/files/ssh/keys/jenkins_build.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDI0tHxJQ7n+uMiLpsoR6CKAVd0xatgVQuqp/gmnGpZU0kE54a29vPNnEt7/aLitbfyhc57rrbHOT09H3ov74GZKkoVBSbMJUSsK3drbN+58wcuk+HK0htRewmwCfcfi9AkrVbyw6pbPXW/pbjxnxLep52fKmpJJnImZ5eHRV5le9OSAcLA1LHYR4y9R3IOrTp7jgpE205UxZi5OopAx7gkyTsmfydvmq4MjaSwbVOJ7aW/Fdt5FVxNJP3Zl/OrvDoo/1WovoRIDbVQH8JFpLikMSnCqtBVIHDeW6imAKl6dpn9Gf4FxD94+OcurhXo2p0pvSzC4Strg4d2Sxqh4wph jenkins-build diff --git a/ansible/slave.yml.j2 b/ansible/slave.yml.j2 index 9998f0f0..22913d19 100644 --- a/ansible/slave.yml.j2 +++ b/ansible/slave.yml.j2 @@ -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