Skip to content

Instantly share code, notes, and snippets.

@mjinks
Last active August 25, 2015 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjinks/50849e8aac683c0127ef to your computer and use it in GitHub Desktop.
Save mjinks/50849e8aac683c0127ef to your computer and use it in GitHub Desktop.
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
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.
{{ 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