Skip to content

Commit

Permalink
Merge pull request #164 from robled/jenkins_user_uid_fix
Browse files Browse the repository at this point in the history
remove default value for jenkins_user_uid, which is not needed for mo…
  • Loading branch information
greg-hellings authored Sep 13, 2017
2 parents 2469edd + 1127974 commit 16f6476
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cinch/group_vars/jenkins_docker_slave
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
repositories: "{{ jenkins_slave_repositories }}"

download_repositories: "{{ jenkins_slave_download_repositories }}"

# For certain OpenShift instances a value of '1000090000' is recommended.
jenkins_user_uid: 1000090000
7 changes: 5 additions & 2 deletions cinch/roles/jenkins_common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
# supported beyond the EOL support for their packages in the distribution of
# choice
java_version: 8
# Needed for certain OpenShift instances
jenkins_user_uid: 1000090000
# Optionally set the 'jenkins' Unix account UID here. This should not normally
# need to be changed, but for certain OpenShift instances a value of
# '1000090000' is recommended.
#jenkins_user_uid: 1000090000

# Set the default (empty) set of authorized SSH public keys for jenkins user.
# To add authorized keys, override this value by adding a list of paths
# (relative or full) to files containing separate public keys.
Expand Down
2 changes: 1 addition & 1 deletion cinch/roles/jenkins_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
password: "{{ jenkins_user_password }}"
home: "{{ jenkins_user_home }}"
shell: /bin/bash
uid: "{{ jenkins_user_uid }}"
uid: "{{ jenkins_user_uid | default(omit) }}"

- name: ensure SSH directory exists
file:
Expand Down

0 comments on commit 16f6476

Please sign in to comment.