]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
allow nodes to be configured as 'exclusive' 365/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 22 Apr 2016 17:12:38 +0000 (13:12 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 22 Apr 2016 17:12:38 +0000 (13:12 -0400)
In Jenkins lingo: "exclusive" means that it will only be used on jobs with
label restrictions matching the node (vs. the normal which is 'use this node as
much as possible')

Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml
ansible/slave.yml.j2

index 832ef9448c36bcbf74ce1e0c73b8d562f1601705..8c6a763eeb6efca4f29a4138e580e84619bdcdc8 100644 (file)
@@ -5,6 +5,7 @@
   user: ubuntu
   vars:
    - jenkins_user: 'jenkins-build'
+   - exclusive: false
   tasks:
     - name: create a {{ jenkins_user }} user
       user: name={{ jenkins_user }} comment="Jenkins Build Slave User" home="/home/{{ jenkins_user }}"
         remoteFS: '/home/{{ jenkins_user }}/build'
         # XXX this should be configurable, not all nodes should have one executor
         executors: 1
+        exclusive: "{{ exclusive }}"
index 18a0b210329ad921872b4035f9b0d62f44899225..cc71fbf08bf1507b5b3294dfe33f85e6021c8a9c 100644 (file)
@@ -11,6 +11,7 @@
    - api_uri: 'https://jenkins.ceph.com'
    - nodename: '${nodename}'
    - labels: '${labels}'
+   - exclusive: '${exclusive}'
   tasks:
     - name: create a {{ jenkins_user }} user
       user: name={{ jenkins_user }} comment="Jenkins Build Slave User"
         remoteFS: '/home/{{ jenkins_user }}/build'
         # XXX this should be configurable, not all nodes should have one executor
         executors: 1
+        exclusive: "{{ exclusive }}"