init.sls 305 B

1234567891011121314151617181920
  1. #
  2. # Vim magic
  3. #
  4. sudo:
  5. pkg.installed:
  6. - name: sudo
  7. /etc/sudoers.d:
  8. file.directory:
  9. - user: root
  10. - group: root
  11. - mode: 755
  12. - makedirs: True
  13. /etc/sudoers:
  14. file.managed:
  15. - source:
  16. - salt://sudo/sudoers.{{ grains.os }}.{{ grains.oscodename }}
  17. - salt://sudo/sudoers