mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add some SSH keys to tc-mac workers
This commit is contained in:
parent
ce93e017c6
commit
ed4c1ff3d6
3 changed files with 23 additions and 0 deletions
|
@ -5,6 +5,7 @@ file_roots:
|
|||
extension_modules: ../modules
|
||||
ext_pillar:
|
||||
- taskcluster_secrets:
|
||||
- ssh_keys:
|
||||
roster_defaults:
|
||||
# https://github.com/saltstack/salt/issues/50477
|
||||
minion_opts:
|
||||
|
|
14
etc/taskcluster/macos/modules/pillar/ssh_keys.py
Normal file
14
etc/taskcluster/macos/modules/pillar/ssh_keys.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
# 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 https://mozilla.org/MPL/2.0/.
|
||||
|
||||
import urllib
|
||||
|
||||
|
||||
def ext_pillar(_minion_id, _pillar, *_args):
|
||||
url = "https://raw.githubusercontent.com/servo/saltfs/master/admin/files/ssh/%s.pub"
|
||||
return {"ssh_keys": [urllib.urlopen(url % name).read() for name in [
|
||||
"jdm",
|
||||
"manishearth",
|
||||
"simonsapin",
|
||||
]]}
|
|
@ -6,6 +6,14 @@
|
|||
GMT:
|
||||
timezone.system
|
||||
|
||||
sshkeys:
|
||||
ssh_auth.present:
|
||||
- user: root
|
||||
- names:
|
||||
{% for key in pillar["ssh_keys"] %}
|
||||
- {{ key | yaml_encode }}
|
||||
{% endfor %}
|
||||
|
||||
{{ bin }}/generic-worker:
|
||||
file.managed:
|
||||
- name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue