Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792527
authorized_yubikeys.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
743 B
Referenced Files
None
Subscribers
None
authorized_yubikeys.sls
View Options
# -------------------------------------------------------------
# Salt — Bastion - Yubikeys
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-02-18
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
for
username
,
user
in
salt
[
'forest.get_users'
]()
.items
()
%}
{%
if
'yubico_keys'
in
user
%}
/home/
{{
username
}}
/.yubico
:
file.directory
:
-
user
:
{{
username
}}
-
mode
:
700
/home/
{{
username
}}
/.yubico/authorized_yubikeys
:
file.managed
:
-
user
:
{{
username
}}
-
mode
:
600
-
contents
:
{{
username
+
':'
+
':'
.join
(
user
[
'yubico_keys'
])
}}
{%
endif
%}
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 20:13 (9 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436312
Default Alt Text
authorized_yubikeys.sls (743 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment