Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.03 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.03 KB

salt-formula-users

What is this repository for?

  • Repository for creating users on different os Ubuntu and Centos
  • Version 0.1

How do I get set up?

  • Clone repository to salt master
  • Add path of the repo folder to /etc/salt/master (option file_roots:)
  • Add path of the pillar folder to /etc/salt/master (option pillar_roots:)

How to use it?

  • You should run the salt command with the next parametres

    Example of using formula:

    salt '*' state.sls users

  • In case if you want to configure users, use the next files

    • For centos users: tests/pillar/users/centos.sls

    • For ubuntu users: tests/pillar/users/ubuntu.sls

Run sudo without pass for user

  • Option nopass_sudo in config files tests/pillar/users/ should be True

Add ssh key for user on minion

  • Rewrite ssh public key to the file that contain Option ssh_keypath in config files tests/pillar/users/ (default files are salt://tests/ubuntu.pem and salt://tests/centos.pem)

  • Option key.pub have to be True