Last active
August 25, 2015 23:53
-
-
Save mjinks/50849e8aac683c0127ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ATTFiles: | |
uid: 5401 | |
prime_group: | |
name: ATTFiles | |
gid: 5401 | |
fullname: ATT Files EMI Access | |
home: /FTPDATA/PRLSS/Customers/ATTFiles | |
ftpuser: True | |
createhome: True | |
chroot: True | |
shell: /bin/sh | |
netnumber: | |
uid: 5507 | |
prime_group: | |
name: | |
gid: | |
fullname: | |
home: /FTPDATA/PRLSS/Customers/Brighthouse | |
ftpuser: True | |
createhome: True | |
chroot: False | |
user_dir_mode: 0770 | |
shell: /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have about a dozen user definitions with the entry 'user_dir_mode: 0770', but when i call | |
highstate, only one of them comes up with its home directory set that way; all the | |
rest are going to 0570. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ name }}_user: | |
{% if user.get('createhome', True) %} | |
file.directory: | |
- name: {{ home }} | |
- user: {{ name }} | |
- group: 'tmsadmin' | |
- mode: {{ user.get('user_dir_mode', '0570') }} | |
- require: | |
- user: {{ name }} | |
- group: {{ user_group }} | |
{%- endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment