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.

37 lines
648B

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