Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F28986163
init.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
init.sls
View Options
# -------------------------------------------------------------
# Salt — Provision users accounts
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Eglide
# Created: 2016-04-08
# Description: Adds and revokes user accounts, in the relevant
# groups and with their stable SSH keys.
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Table of contents
# -------------------------------------------------------------
#
# :: Disabled accounts
# :: Active accounts
# :: Groups
# :: Managed SSH keys
#
# -------------------------------------------------------------
# -------------------------------------------------------------
# Disabled accounts
# -------------------------------------------------------------
# Currently, there is no revoked accounts on Eglide.
#
# To disable an account, remove it from the active section and
# add here the following block:
#
# orkaevash:
# user.absent
# -------------------------------------------------------------
# Active accounts
# -------------------------------------------------------------
{%
for
user
,
args
in
pillar.get
(
'shellusers'
,
{})
.iteritems
()
%}
{{
user
}}
:
user.present
:
-
fullname
:
{{
args
[
'fullname'
]
}}
-
shell
:
/bin/bash
-
uid
:
{{
args
[
'uid'
]
}}
{%
endfor
%}
# -------------------------------------------------------------
# Groups
# -------------------------------------------------------------
shell
:
group.present
:
-
system
:
True
-
gid
:
200
-
members
:
{%
for
user
,
args
in
pillar.get
(
'shellusers'
,
{})
.iteritems
()
%}
-
{{
user
}}
{%
endfor
%}
# -------------------------------------------------------------
# Managed SSH keys
# -------------------------------------------------------------
{%
for
user
,
args
in
pillar.get
(
'shellusers'
,
{})
.iteritems
()
%}
sshkey_
{{
user
}}
:
ssh_auth.present
:
-
user
:
{{
user
}}
-
source
:
salt://roles/shellserver/users/files/ssh_keys/
{{
user
}}
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 19:12 (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3694618
Default Alt Text
init.sls (2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment