Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3938618
init.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
init.sls
View Options
# -------------------------------------------------------------
# Salt — Provision dotfiles and other personal content
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Note: Content deployed here propagate to every server,
# for devserver only, see roles/devserver unit.
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
with context
%}
{%
for
username
,
user
in
salt
[
'forest.get_users'
]()
.items
()
%}
{%
set
tasks
=
user.get
(
'everywhere_tasks'
,
[])
%}
{%
if
'deploy_dotfiles'
in
tasks
%}
dotfiles_to_core_
{{
username
}}
:
file.recurse
:
-
name
:
/home/
{{
username
}}
-
source
:
salt://roles/core/userland-home/files/
{{
username
}}
-
include_empty
:
True
-
clean
:
False
-
user
:
{{
username
}}
-
group
:
{{
username
}}
-
template
:
jinja
-
context
:
roles
:
{{
salt
[
"node.get"
](
"roles"
)
}}
node
:
{{
grains
[
"id"
]
}}
{%
endif
%}
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 03:42 (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2313850
Default Alt Text
init.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment