jinjify acg content

This commit is contained in:
John Bowdre 2023-04-19 20:56:42 -05:00
parent 3d7902455b
commit 5c10e67a2b
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
{% set users = salt['grains.filter_by']({
'Debian': {
'sudo_group': 'sudo',
},
'RedHat': {
'sudo_group': 'wheel',
},
}) %}

View file

@ -1,3 +1,5 @@
{% from "users/map.jinja" import users with context %}
create_user_jbyers: create_user_jbyers:
user.present: user.present:
- name: jbyers - name: jbyers
@ -5,7 +7,7 @@ create_user_jbyers:
- shell: /bin/bash - shell: /bin/bash
- home: /home/jbyers - home: /home/jbyers
- groups: - groups:
- sudo - {{ users.sudo_group }}
- qa - qa
- require: - require:
- group: qa - group: qa