|
23 | 23 | line: ::1 localhost.localdomain localhost
|
24 | 24 |
|
25 | 25 | - name: create NODE_TEST_DIR directory
|
26 |
| - file: path=/home/{{ server_user }}/tmp state=directory |
| 26 | + file: path="{{ home }}/{{ server_user }}/tmp" state=directory |
27 | 27 |
|
28 | 28 | - name: set NODE_TEST_DIR permission and owner
|
29 | 29 | file:
|
30 |
| - path: /home/{{ server_user }}/tmp |
| 30 | + path: "{{ home }}/{{ server_user }}/tmp" |
31 | 31 | owner: "{{ server_user }}"
|
32 | 32 | group: "{{ server_user }}"
|
33 | 33 | mode: 0755
|
|
53 | 53 | mode: 0644
|
54 | 54 | timeout: 60
|
55 | 55 |
|
56 |
| -# temporary until we get the righ cert bundles |
| 56 | +# temporary until we get the right cert bundles |
57 | 57 | - name: download slave.jar -zos
|
58 | 58 | when: os|startswith("zos")
|
59 | 59 | get_url:
|
|
97 | 97 | dest: "{{ jenkins.dest }}"
|
98 | 98 | mode: "{{ jenkins.mode|default('0644') }}"
|
99 | 99 |
|
| 100 | +# TODO - Should this run on every machine? |
| 101 | +- name: copy start.sh to {{ home }}/{{ server_user }}/start.sh |
| 102 | + when: os|startswith("macos") |
| 103 | + template: |
| 104 | + src: "start.j2" |
| 105 | + dest: "{{ home }}/{{ server_user }}/start.sh" |
| 106 | + mode: "0755" |
| 107 | + |
100 | 108 | - name: import manifest to svcadm
|
101 | 109 | when: os|startswith("smartos")
|
102 | 110 | raw: "svccfg import {{ jenkins.dest }}"
|
|
140 | 148 | command: "chown -R {{ server_user }} {{ home }}/{{ server_user }}/gyp"
|
141 | 149 |
|
142 | 150 | - name: enable jenkins at startup - general
|
143 |
| - when: not os|startswith("zos") |
| 151 | + when: not os|startswith("zos") and not os|startswith("macos") |
144 | 152 | service: name=jenkins state=started enabled=yes
|
145 | 153 |
|
| 154 | +- name: Load org.nodejs.osx.jenkins.plist into launchctl |
| 155 | + when: os|startswith("macos") |
| 156 | + command: launchctl load /Library/LaunchDaemons/org.nodejs.osx.jenkins.plist |
| 157 | + |
| 158 | +- name: Start org.nodejs.osx.jenkins.plist |
| 159 | + when: os|startswith("macos") |
| 160 | + command: launchctl start org.nodejs.osx.jenkins |
| 161 | + |
146 | 162 | # lineinfile does not work on zos due to character conversions
|
147 | 163 | # the inserted line ends up in the wrong character set. We
|
148 | 164 | # tried a few variations to work around this without
|
|
0 commit comments