1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

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 # Cmnd alias specification
# User privilege specification # User privilege specification
{%- for userspec in users %} {{ users }}
{{ userspec }}
{%- endfor %}
# Group privilege specification # Group privilege specification

View file

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