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
|
||||
|
||||
# User privilege specification
|
||||
{%- for userspec in users %}
|
||||
{{ userspec }}
|
||||
{%- endfor %}
|
||||
{{ users }}
|
||||
|
||||
# Group privilege specification
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
import salt.renderers.jinja as jinja
|
||||
|
||||
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