File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 'runner' :{
55 'username' : 'gitlab-runner' ,
66 'downloadpath' : 'https://packages.gitlab.com/runner/gitlab-runner/packages/linuxmint/sonya/gitlab-runner_10.4.0_amd64.deb/download' ,
7+ 'home' : '/home/gitlab-runner' ,
78 }
89 },
910 'default' : {
1011 'runner' :{
1112 'username' : 'gitlab-runner' ,
1213 'downloadpath' : 'https://packages.gitlab.com/runner/gitlab-runner/packages/linuxmint/sonya/gitlab-runner_10.4.0_amd64.deb/download' ,
14+ 'home' : '/home/gitlab-runner' ,
1315 }
1416 },
1517}, merge =salt ['pillar.get' ]('gitlab' )) %}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ gitlab-install_runserver_create_user:
3131 user.present:
3232 - name: {{gitlab.runner.username}}
3333 - shell: / bin / false
34- - home: / home / {{gitlab.runner.username }}
34+ - home: {{gitlab.runner.home }}
3535 - groups:
3636 - gitlab- runner
3737 - require:
@@ -40,7 +40,7 @@ gitlab-install_runserver_create_user:
4040gitlab- install_runserver3:
4141 cmd.run:
4242 - name: " CI_SERVER_URL='{{ gitlab.runner.url}} ' REGISTRATION_TOKEN='{{ gitlab.runner.token}} ' /usr/bin/gitlab-runner register --non-interactive"
43- - unless: ' test -e /home/{{ gitlab.runner.username }} /config.yml'
43+ - unless: ' test -e /home/{{ gitlab.runner.home }} /config.yml'
4444 - require:
4545 - user: gitlab- install_runserver_create_user
4646
Original file line number Diff line number Diff line change @@ -60,3 +60,4 @@ gitlab:
6060 # default: gitlab-runner
6161 url: "url gitlab-ci" # MANDATORY
6262 token: "token gitlab-ci" # MANDATORY
63+ home: /home/gitlab-runner
You can’t perform that action at this time.
0 commit comments