]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
remove unneeded tasks from slave.yml and slave.yml.j2 150/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 23 Oct 2015 14:46:22 +0000 (09:46 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 23 Oct 2015 14:46:22 +0000 (09:46 -0500)
We're not going to worry about the private keys anymore and the
jenkins_job.ini and .chacractl files are going to be created using the
mask-passwords plugin for jenkins.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ansible/slave.yml
ansible/slave.yml.j2

index 3aae8c7c0d7c477daec3c696b43afda5c38b839f..2f1455295865ff33355e54c6f0dd1561aeb8e6c6 100644 (file)
     - name: set the authorized keys
       authorized_key: user=jenkins-build key="{{ lookup('file', 'files/ssh/keys/jenkins_build.pub') }}"
 
-    # FIXME: this doesn't work right now as we aren't pushing private keys
-    # around in public repos
-    - name: ensure private key is present
-      copy: src=files/ssh/keys/jenkins_build dest=/home/{{ jenkins_user }}/.ssh/id_rsa mode=0600
-
-    - name: ensure public key is present
-      copy: src=files/ssh/keys/jenkins_build.pub dest=/home/{{ jenkins_user }}/.ssh/id_rsa.pub mode=0600
-
-    - name: /etc/jenkins_jobs should exist as a dir
-      file:
-        path: /etc/jenkins_jobs
-        state: directory
-
-    - name: jenkins api key should be present
-      copy: src=files/jenkins_jobs.ini dest=/etc/jenkins_jobs/jenkins_jobs.ini
-
-    - name: Upload the .chacractl file
-      copy:
-        src: files/chacractl
-        dest: "/home/{{ jenkins_user }}/.chacractl"
-
     - name: ensure the build dir exists
       sudo: yes
       lineinfile:
index f064a1bdcd42cd533c4fe426b54402591086a872..2d6d8e40ddc8ba8c7f2818a6a17290441bae0d6b 100644 (file)
     - name: set the authorized keys
       authorized_key: user=jenkins-build key="{{ lookup('file', 'playbook/files/ssh/keys/jenkins_build.pub') }}"
 
-    # FIXME: this doesn't work right now as we aren't pushing private keys
-    # around in public repos
-    - name: ensure private key is present
-      copy: src=playbook/files/ssh/keys/jenkins_build dest=/home/{{ jenkins_user }}/.ssh/id_rsa mode=0600
-
-    - name: ensure public key is present
-      copy: src=playbook/files/ssh/keys/jenkins_build.pub dest=/home/{{ jenkins_user }}/.ssh/id_rsa.pub mode=0600
-
-    - name: /etc/jenkins_jobs should exist as a dir
-      file:
-        path: /etc/jenkins_jobs
-        state: directory
-
-    - name: jenkins api key should be present
-      copy: src=playbook/files/jenkins_jobs.ini dest=/etc/jenkins_jobs/jenkins_jobs.ini
-
     - name: ensure jenkins-build can sudo without a prompt
       sudo: yes
       lineinfile: