You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by ba...@apache.org on 2015/08/16 19:47:28 UTC
[11/23] couchdb-ci git commit: extract jenkins' gid/uid to vars
extract jenkins' gid/uid to vars
Project: http://git-wip-us.apache.org/repos/asf/couchdb-ci/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ci/commit/c27023ee
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ci/tree/c27023ee
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ci/diff/c27023ee
Branch: refs/heads/master
Commit: c27023ee4d23f1ad03b702310b34684708d1f9ab
Parents: 3550348
Author: Bastian Krol <ba...@web.de>
Authored: Wed Jul 8 13:16:41 2015 +0200
Committer: Bastian Krol <ba...@web.de>
Committed: Wed Jul 8 13:16:41 2015 +0200
----------------------------------------------------------------------
ansible/roles/jenkins-worker/tasks/main.yml | 4 ++--
ansible/roles/jenkins-worker/vars/main.yml | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c27023ee/ansible/roles/jenkins-worker/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/jenkins-worker/tasks/main.yml b/ansible/roles/jenkins-worker/tasks/main.yml
index aafe704..9893ecd 100644
--- a/ansible/roles/jenkins-worker/tasks/main.yml
+++ b/ansible/roles/jenkins-worker/tasks/main.yml
@@ -2,14 +2,14 @@
- name: create jenkins group
group:
name: jenkins
- gid: 112 # same gid as jenkins group on master
+ gid: "{{ jenkins_group_id }}" # same gid as jenkins group on master
state: present
system: yes
- name: create jenkins user
user:
name: jenkins
- uid: 106 # same uid as jenkins user on master
+ uid: "{{ jenkins_user_id }}" # same uid as jenkins user on master
state: present
system: yes
group: jenkins
http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c27023ee/ansible/roles/jenkins-worker/vars/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/jenkins-worker/vars/main.yml b/ansible/roles/jenkins-worker/vars/main.yml
new file mode 100644
index 0000000..9236049
--- /dev/null
+++ b/ansible/roles/jenkins-worker/vars/main.yml
@@ -0,0 +1,7 @@
+---
+
+################################################################################
+# Jenkins
+################################################################################
+jenkins_group_id: 112
+jenkins_user_id: 106