forked from mantidproject/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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 @@ | ||
- name: Deploy macOS Jenkins agent for Mantid. | ||
hosts: all | ||
|
||
roles: | ||
- role: agent | ||
become: yes | ||
tags: "agent" | ||
|
40 changes: 40 additions & 0 deletions
40
jenkins-node/mantid-builder-macos/ansible/roles/agent/tasks/main.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,40 @@ | ||
--- | ||
|
||
- name: Deploy Jenkins agent on macOS | ||
tasks: | ||
# Install Requirements | ||
|
||
- name: Install homebrew | ||
include_role: | ||
name: geerlingguy.mac.homebrew | ||
|
||
- name: Make sure homebrew bin is in the path | ||
ansible.builtin.lineinfile: | ||
path: /etc/paths | ||
state: present | ||
line: '/opt/homebrew/bin' | ||
become: true | ||
become_user: root | ||
|
||
- name: Install git | ||
community.general.homebrew: | ||
name: git | ||
state: latest | ||
|
||
- name: Install Java 11 | ||
community.general.homebrew: | ||
name: java11 | ||
state: present | ||
|
||
# Configure macOS Settings | ||
|
||
- name: Disable screensaver | ||
shell: defaults write com.apple.screensaver idleTime 0 | ||
|
||
- name: Disable saved application states to avoid dialog | ||
shell: defaults write org.python.python NSQuitAlwaysKeepsWindows -bool false | ||
|
||
# TODO: Disable autolock (this seems to change between versions, so might not be possible to script) | ||
|
||
# TODO: Crontab entry | ||
|