Selaa lähdekoodia

added feature to create groups and set their gid

master
Arthur 7 vuotta sitten
vanhempi
commit
694fd0de6d
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. +10
    -0
      users/init.sls

+ 10
- 0
users/init.sls Näytä tiedosto

{% set used_googleauth = [] %} {% set used_googleauth = [] %}
{% set used_user_files = [] %} {% set used_user_files = [] %}


{% for group, setting in salt['pillar.get']('groups', {}).iteritems() %}
users_group_{{ setting.get('state', "present") }}_{{ group }}:
group.{{ setting.get('state', "present") }}:
- name: {{ group }}
{%- if setting.get('gid') %}
- gid: {{setting.get('gid') }}
{%- endif %}
- system: {{ setting.get('system',"False") }}
{% endfor %}

{%- for name, user in pillar.get('users', {}).items() {%- for name, user in pillar.get('users', {}).items()
if user.absent is not defined or not user.absent %} if user.absent is not defined or not user.absent %}
{%- if user == None -%} {%- if user == None -%}

Loading…
Peruuta
Tallenna