init.sls 331 B

12345678910111213141516
  1. #
  2. # Manage root user (password)
  3. #
  4. # This should break, when the pillar isn't present
  5. {% set root_pw_hash = pillar['globals']['root_password_hash'] %}
  6. root:
  7. user.present:
  8. - fullname: root
  9. - uid: 0
  10. - gid: 0
  11. - home: /root
  12. - password: {{ root_pw_hash }}
  13. - enforce_password: True
  14. - empty_password: False