Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
673B

  1. {%- if grains['os'] == 'Ubuntu' %}
  2. package_duo:
  3. pkg.installed:
  4. - name: duo-unix
  5. - skip_verify: True
  6. login_duo:
  7. file.managed:
  8. - name: /etc/duo/login_duo.conf
  9. - source: salt://linux/files/login_duo.conf
  10. - template: jinja
  11. - user: 'root'
  12. - group: 'root'
  13. - mode: '0600'
  14. pam_duo:
  15. file.managed:
  16. - name: /etc/duo/pam_duo.conf
  17. - source: salt://linux/files/login_duo.conf
  18. - template: jinja
  19. - user: 'root'
  20. - group: 'root'
  21. - mode: '0600'
  22. pam-sshd_config:
  23. file.managed:
  24. - name: /etc/pam.d/sshd
  25. - user: root
  26. - group: root
  27. - source: salt://linux/files/pam-sshd
  28. - mode: 600
  29. - template: jinja
  30. {%- endif %}