Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic-worker on macOS: run as unprivileged user, start as a service
- Loading branch information
1 parent
889d479
commit 70f5078
Showing
8 changed files
with
115 additions
and
16 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
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,3 +1,3 @@ | ||
salt-ssh: | ||
config_dir: ./config | ||
state_verbose: False | ||
state_verbose: False |
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,4 +1,7 @@ | ||
root_dir: .salt | ||
file_roots: | ||
base: | ||
- states | ||
- states | ||
extension_modules: ../modules | ||
ext_pillar: | ||
- taskcluster_secrets: |
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,2 +1,7 @@ | ||
mac1: | ||
host: servo-tc-mac1.servo.org | ||
host: servo-tc-mac1.servo.org | ||
|
||
# https://github.com/saltstack/salt/issues/50477 | ||
minion_opts: | ||
providers: | ||
user: mac_user |
16 changes: 16 additions & 0 deletions
16
etc/taskcluster/macos/modules/pillar/taskcluster_secrets.py
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,16 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import os | ||
import sys | ||
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "packet.net")) | ||
import tc | ||
|
||
|
||
def ext_pillar(_minion_id, _pillar, *_args): | ||
tc.check() | ||
data = {} | ||
data.update(tc.secret("project/servo/tc-client/worker/macos/1")) | ||
data.update(tc.secret("project/servo/livelog-secret/1")) | ||
return data |
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