Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11697933
D357.id845.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D357.id845.diff
View Options
diff --git a/roles/shellserver/users/files/ssh_keys/fedai b/roles/shellserver/users/files/ssh_keys/fedai
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/users/files/ssh_keys/fedai
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAnH+wU01809/OZseFQsfwUL6qLOgi7JL/aMvQB3AZGS7RNLt2ESPbQmWswREByDe/XVO+9IZ5x3SbVyPcP3WEqD4YgT5P/4lK9OTJCPkHClTFMccspzH37B3ccueerww8Mwim3F2VwGFDdzg71FhQT95Yg0vrhyzHXuN2Z
diff --git a/roles/shellserver/users/users.sls b/roles/shellserver/users/init.sls
copy from roles/shellserver/users/users.sls
copy to roles/shellserver/users/init.sls
--- a/roles/shellserver/users/users.sls
+++ b/roles/shellserver/users/init.sls
@@ -35,11 +35,15 @@
# Active accounts
# -------------------------------------------------------------
-tomjerr:
- user.present:
- - fullname: Tommy Aditya
- - shell: /bin/bash
- - uid: 2001
+users:
+ tomjerr:
+ fullname: Tommy Aditya
+ shell: /bin/bash
+ uid: 2001
+ fedai:
+ fullname: Erol Unutmaz
+ shell: /bin/bash
+ uid: 2002
# -------------------------------------------------------------
# Groups
@@ -51,6 +55,7 @@
- gid: 200
- members:
- tomjerr
+ - fedai
# -------------------------------------------------------------
# Managed SSH keys
diff --git a/roles/shellserver/users/users.sls b/roles/shellserver/users/users.sls
--- a/roles/shellserver/users/users.sls
+++ b/roles/shellserver/users/users.sls
@@ -1,62 +1,19 @@
# -------------------------------------------------------------
-# Salt — Provision users accounts
+# Salt — Users accounts list
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 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
-# -------------------------------------------------------------
-
-tomjerr:
- user.present:
- - fullname: Tommy Aditya
- - shell: /bin/bash
- - uid: 2001
-
-# -------------------------------------------------------------
-# Groups
-# -------------------------------------------------------------
-
-shell:
- group.present:
- - system: True
- - gid: 200
- - members:
- - tomjerr
-
-# -------------------------------------------------------------
-# Managed SSH keys
+# Users accounts
# -------------------------------------------------------------
-sshkeys:
- ssh_auth.present:
- - user: tomjerr
- - source: salt://roles/shellserver/users/files/ssh_keys/tomjerr
+users:
+ tomjerr:
+ fullname: Tommy Aditya
+ uid: 2001
+ fedai:
+ fullname: Erol Unutmaz
+ uid: 2002
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 12, 18:36 (10 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2979735
Default Alt Text
D357.id845.diff (3 KB)
Attached To
Mode
D357: [Eglide] Create account for fedai
Attached
Detach File
Event Timeline
Log In to Comment