Browse Source

Merge pull request #35 from ashb/patch-2

Specify bash shell when validating sudo snippet
tags/v0.45.0
Joseph Hall 10 years ago
parent
commit
39d89a01fa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      users/init.sls

+ 1
- 0
users/init.sls View File

@@ -135,6 +135,7 @@ sudoer-{{ name }}:
"validate {{ name }} sudo rule {{ loop.index0 }} {{ name }} {{ rule }}":
cmd.run:
- name: 'visudo -cf - <<<"$rule"'
- shell: /bin/bash
- env:
# Specify the rule via an env var to avoid shell quoting issues.
- rule: "{{ name }} {{ rule }}"

Loading…
Cancel
Save