template proxy test

This commit is contained in:
Kenneth Wilke 2013-08-20 12:37:58 -05:00
parent ae22c79c93
commit 95d9033068
2 changed files with 4 additions and 5 deletions

View File

@ -11,9 +11,7 @@
# Cmnd alias specification
# User privilege specification
{%- for userspec in users %}
{{ userspec }}
{%- endfor %}
{{ users }}
# Group privilege specification

View File

@ -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', {}))