-
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
Nov 20, 2017
1 parent
326ca9d
commit cc1e899
Showing
16 changed files
with
224 additions
and
42 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
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)" |
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,8 @@ | ||
#!/bin/bash | ||
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; | ||
PROD=$(softwareupdate -l | | ||
grep "\*.*Command Line" | | ||
head -n 1 | awk -F"*" '{print $2}' | | ||
sed -e 's/^ *//' | | ||
tr -d '\n') | ||
softwareupdate -i "$PROD"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,11 @@ | ||
#!/NODEJS2/bin/bash | ||
|
||
su -s - iojs <<'EOF' | ||
export PATH=/NODEJS/bin:$PATH | ||
#!/bin/bash | ||
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 | ||
export JOBS=2 | ||
export NODE_COMMON_PIPE=/Users/iojs/test.pipe | ||
export OSTYPE=osx | ||
export ARCH=x64 | ||
export DESTCPU=x64 | ||
|
||
java -jar {{ home }}/{{ server_user }}/slave.jar -secret {{ secret }} \ | ||
-jnlpUrl {{ jenkins_url }}/computer/{{ inventory_hostname }}/slave-agent.jnlp |
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 |
Oops, something went wrong.