mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-11-26 23:22:17 +00:00
jinjify acg content
This commit is contained in:
parent
3d7902455b
commit
5c10e67a2b
2 changed files with 11 additions and 1 deletions
8
salt_content/local/salt/acg/users/map.jinja
Normal file
8
salt_content/local/salt/acg/users/map.jinja
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% set users = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'sudo_group': 'sudo',
|
||||
},
|
||||
'RedHat': {
|
||||
'sudo_group': 'wheel',
|
||||
},
|
||||
}) %}
|
|
@ -1,3 +1,5 @@
|
|||
{% from "users/map.jinja" import users with context %}
|
||||
|
||||
create_user_jbyers:
|
||||
user.present:
|
||||
- name: jbyers
|
||||
|
@ -5,7 +7,7 @@ create_user_jbyers:
|
|||
- shell: /bin/bash
|
||||
- home: /home/jbyers
|
||||
- groups:
|
||||
- sudo
|
||||
- {{ users.sudo_group }}
|
||||
- qa
|
||||
- require:
|
||||
- group: qa
|
||||
|
|
Loading…
Reference in a new issue