generic-worker on macOS: run as unprivileged user, start as a service

This commit is contained in:
Simon Sapin 2018-11-12 19:48:17 +01:00
parent 889d479935
commit 70f507879f
8 changed files with 115 additions and 16 deletions

View file

@ -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