-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
George Adams
committed
May 1, 2018
1 parent
114b481
commit c96cd4e
Showing
17 changed files
with
277 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Manual steps required to run ansible on machines | ||
|
||
## macOS | ||
1. Update Sudoers file: | ||
|
||
this requires `NOPASSWD` to be added to the sudoers file to enable elevation | ||
|
||
`sudo visudo` | ||
and change: | ||
`%admin ALL = (ALL) ALL` | ||
to | ||
`%admin ALL = (ALL) NOPASSWD:ALL` | ||
|
||
2. Allow ssh access | ||
|
||
```bash | ||
sudo systemsetup -setremotelogin on | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
# | ||
|
||
- name: restart sshd | ||
when: not os|startswith("macos") | ||
service: name="{{ sshd_service_name }}" state=restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
ansible/roles/jenkins-worker/tasks/partials/tap2junit/macos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
|
||
# | ||
# macos: python2.7 | ||
# | ||
|
||
- name: install pip | ||
pip: | ||
name: tap2junit | ||
executable: /usr/local/bin/pip2 |
29 changes: 29 additions & 0 deletions
29
ansible/roles/jenkins-worker/templates/org.nodejs.osx.jenkins.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>org.nodejs.osx.jenkins</string> | ||
|
||
<key>UserName</key> | ||
<string>iojs</string> | ||
|
||
<key>WorkingDirectory</key> | ||
<string>/Users/iojs</string> | ||
|
||
<key>Program</key> | ||
<string>/Users/iojs/start.sh</string> | ||
|
||
<key>RunAtLoad</key> | ||
<true/> | ||
|
||
<key>KeepAlive</key> | ||
<true/> | ||
|
||
<key>StandardErrorPath</key> | ||
<string>/Users/iojs/jenkins_err.log</string> | ||
|
||
<key>StandardOutPath</key> | ||
<string>/Users/iojs/jenkins.log</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/NODEJS2/bin/bash | ||
|
||
su -s - iojs <<'EOF' | ||
export PATH=/NODEJS/bin:$PATH | ||
export HOME={{ home }}/{{ server_user }} | ||
export NODE_COMMON_PIPE="$HOME/test.pipe" | ||
export NODE_TEST_DIR="$HOME/tmp" | ||
export JOBS="{{ server_jobs | default(ansible_processor_vcpus) }}" | ||
export OSTYPE=zos | ||
export _BPXK_AUTOCVT=ON | ||
export _CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)" | ||
export _TAG_REDIR_ERR=txt | ||
export _TAG_REDIR_IN=txt | ||
export _TAG_REDIR_OUT=txt | ||
export CC=/bin/xlc | ||
export LINK=/bin/xlc | ||
export CFLAGS="-q64" | ||
export LDFLAGS="-q64" | ||
{{ java_path[os] }} -Dfile.encoding=ISO8859_1 -Xmx{{ server_ram|default('128m') }} \ | ||
-jar {{ home }}/{{ server_user }}/slave.jar -secret {{ secret }} \ | ||
-jnlpUrl {{ jenkins_url }}/computer/{{ inventory_hostname }}/slave-agent.jnlp >{{ home }}/{{ server_user }}/jenkins.log 2>&1 & | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>sysctl</string> | ||
<key>ProgramArguments</key> | ||
<array> | ||
<string>/usr/sbin/sysctl</string> | ||
<string>-w</string> | ||
<string>kern.corefile=core.%P</string> | ||
</array> | ||
<key>RunAtLoad</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
yes | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
Oops, something went wrong.