template proxy test
This commit is contained in:
parent
ae22c79c93
commit
95d9033068
2 changed files with 4 additions and 5 deletions
|
@ -11,9 +11,7 @@
|
||||||
# Cmnd alias specification
|
# Cmnd alias specification
|
||||||
|
|
||||||
# User privilege specification
|
# User privilege specification
|
||||||
{%- for userspec in users %}
|
{{ users }}
|
||||||
{{ userspec }}
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
# Group privilege specification
|
# Group privilege specification
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
|
import salt.renderers.jinja as jinja
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
return str(pillar.get('sudoers'))
|
sudoers = pillar.get('sudoers', {})
|
||||||
|
return jinja.render('sudoers/files/sudoers', users=sudoers.get('users', {}))
|
||||||
|
|
Loading…
Reference in a new issue