22# vim: ft=yaml
33---
44users-formula :
5- use_vim_formula : True
5+ use_vim_formula : true
66 lookup : # override the defauls in map.jinja
77 root_group : root
88
@@ -11,19 +11,19 @@ groups:
1111 foo :
1212 state : present
1313 gid : 1500
14- system : False
14+ system : false
1515 badguys :
16- absent : True
16+ absent : true
1717 niceguys :
1818 gid : 4242
19- system : False
19+ system : false
2020 addusers : root
2121 delusers : toor
2222 ssl-cert :
23- system : True
23+ system : true
2424 members :
25- - www-data
26- - openldap
25+ - www-data
26+ - openldap
2727
2828users :
2929 # # Minimal required pillar values
@@ -34,29 +34,29 @@ users:
3434 buser :
3535 fullname : B User
3636 password : $6$w.............
37- enforce_password : True
38- # WARNING: If 'empty_password' is set to True , the 'password' statement
37+ enforce_password : true
38+ # WARNING: If 'empty_password' is set to true , the 'password' statement
3939 # will be ignored by enabling password-less login for the user.
40- empty_password : False
41- hash_password : False
42- system : False
40+ empty_password : false
41+ hash_password : false
42+ system : false
4343 home : /custom/buser
4444 homedir_owner : buser
4545 homedir_group : primarygroup
4646 user_dir_mode : 750
47- createhome : True
47+ createhome : true
4848 roomnumber : " A-1"
4949 workphone : " (555) 555-5555"
5050 homephone : " (555) 555-5551"
51- manage_vimrc : False
52- allow_gid_change : False
53- manage_bashrc : False
54- manage_profile : False
51+ manage_vimrc : false
52+ allow_gid_change : false
53+ manage_bashrc : false
54+ manage_profile : false
5555 expire : 16426
5656 # Disables user management except sudo rules.
5757 # Useful for setting sudo rules for system accounts created by package instalation
58- sudoonly : False
59- sudouser : True
58+ sudoonly : false
59+ sudouser : true
6060 # sudo_rules doesn't need the username as a prefix for the rule
6161 # this is added automatically by the formula.
6262 # ----------------------------------------------------------------------
7070 sudo_defaults :
7171 - ' !requiretty'
7272 # enable polkitadmin to make user an AdminIdentity for polkit
73- polkitadmin : True
73+ polkitadmin : true
7474 shell : /bin/bash
75- remove_groups : False
75+ remove_groups : false
7676 prime_group :
7777 name : primarygroup
7878 gid : 1501
@@ -82,10 +82,10 @@ users:
8282 - some_groups_that_might
8383 - not_exist_on_all_minions
8484 ssh_key_type : rsa
85- # You can inline the private keys ...
8685 ssh_keys :
87- privkey : PRIVATEKEY
88- pubkey : PUBLICKEY
86+ # You can inline the private keys ...
87+ # privkey: PRIVATEKEY
88+ # pubkey: PUBLICKEY
8989 # or you can provide path to key on Salt fileserver
9090 privkey : salt://path_to_PRIVATEKEY
9191 pubkey : salt://path_to_PUBLICKEY
@@ -114,15 +114,15 @@ users:
114114 ssh_auth_sources :
115115 - salt://keys/buser.id_rsa.pub
116116 ssh_auth_sources.absent :
117- - salt://keys/deleteduser.id_rsa.pub # PUBLICKEY_FILE_TO_BE_REMOVED
117+ - salt://keys/deleteduser.id_rsa.pub # PUBLICKEY_FILE_TO_BE_REMOVED
118118 # Manage the ~/.ssh/config file
119119 ssh_known_hosts :
120120 importanthost :
121121 port : 22
122122 fingerprint : 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
123123 key : PUBLICKEY
124124 enc : ssh-rsa
125- hash_known_hosts : True
125+ hash_known_hosts : true
126126 timeout : 5
127127 fingerprint_hash_type : sha256
128128 ssh_known_hosts.absent :
@@ -150,7 +150,7 @@ users:
150150 - push.default
151151 - color\..+
152152
153- google_2fa : True
153+ google_2fa : true
154154 google_auth :
155155 sshd : |
156156 SOMEGAUTHHASHVAL
@@ -163,31 +163,33 @@ users:
163163 33333333
164164 44444444
165165 55555555
166- # unique: True allows user to have non unique uid
167- unique : False
166+ # unique: true allows user to have non unique uid
167+ unique : false
168168 uid : 1001
169169
170170 user_files :
171- enabled : True
172- # 'source' allows you to define an arbitrary directory to sync, useful to use for default files.
171+ enabled : true
172+ # 'source' allows you to define an arbitrary directory to sync,
173+ # useful to use for default files.
173174 # should be a salt fileserver path either with or without 'salt://'
174175 # if not present, it defaults to 'salt://users/files/user/<username>
175176 source : users/files
176177 # template: jinja
177- # You can specify octal mode for files and symlinks that will be copied. Since version 2016.11.0
178- # it's possible to use 'keep' for file_mode, to preserve file original mode, thus you can save
179- # execution bit for example.
178+ # You can specify octal mode for files and symlinks that will be copied.
179+ # Since version 2016.11.0 it's possible to use 'keep' for file_mode,
180+ # to preserve file original mode, thus you can save execution bit for example.
180181 file_mode : keep
181- # You can specify octal mode for directories as well. This won't work on Windows minions
182+ # You can specify octal mode for directories as well.
183+ # This won't work on Windows minions
182184 # dir_mode: 775
183185 sym_mode : 640
184186 exclude_pat : " *.gitignore"
185187
186188 # # Absent user
187189 cuser :
188- absent : True
189- purge : True
190- force : True
190+ absent : true
191+ purge : true
192+ force : true
191193
192194
193195# # Old syntax of absent_users still supported
0 commit comments