Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321870
repos.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
repos.sls
View Options
# -------------------------------------------------------------
# Deploy user repositories
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-09
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Clone user repositories
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
for
username
,
user
in
salt
[
'forest.get_users'
]()
.items
()
%}
{%
set
repositories
=
salt
[
'pillar.get'
](
'user_repositories:'
+
username
,
{})
%}
{%
for
target
,
repo
in
repositories.items
()
%}
{{
target
}}
:
file.directory
:
-
user
:
{{
username
}}
-
group
:
{{
username
}}
{{
repo
[
'vcs'
]
|
default
(
'git'
)
}}
.latest
:
-
name
:
{{
repo
[
'source'
]
}}
-
target
:
{{
target
}}
-
update_head
:
False
{%
if
salt
[
'node.has_role'
](
'salt-primary'
)
%}
# TODO: find an alternative solution for other servers (suggest rSTAGING?)
-
identity
:
/opt/salt/security/id_ed25519
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 13, 16:54 (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569544
Default Alt Text
repos.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment