]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
slap the hosts IP to the name when registering them in Jenkins
authorAlfredo Deza <adeza@redhat.com>
Mon, 10 Aug 2015 14:43:12 +0000 (10:43 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 10 Aug 2015 14:43:12 +0000 (10:43 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml
ansible/slave.yml.j2

index 9f38d5b63690d76667c8b76e8ea372342bbcf080..37ddd41dad5e52da073383f3423ac760a1b1b8eb 100644 (file)
         username: "{{ api_user }}"
         uri: "{{ api_uri }}"
         password: "{{ token }}"
-        name: "{{ nodename }}"
+        # relies on a convention to set a unique name that allows a reverse
+        # mapping from Jenkins back to whatever service created the current
+        # node
+        name: "{{ nodename }}+{{ ansible_default_ipv4.address }}"
         labels: "{{ labels }}"
         host: "{{ ansible_default_ipv4.address }}"
         credentialsId: 'c7098414-e0ba-4d97-892e-7122e01be8a8'
index 294912e12d17ac329afc1ff2bb6657e822935419..62643c14fb61ece8faceb37e3e0192f5fa225cb5 100644 (file)
         username: "{{ api_user }}"
         uri: "{{ api_uri }}"
         password: "{{ token }}"
-        name: "{{ nodename }}"
+        # relies on a convention to set a unique name that allows a reverse
+        # mapping from Jenkins back to whatever service created the current
+        # node
+        name: "{{ nodename }}+{{ ansible_default_ipv4.address }}"
         labels: "{{ labels }}"
         host: "{{ ansible_default_ipv4.address }}"
         credentialsId: 'c7098414-e0ba-4d97-892e-7122e01be8a8'