- Repository for creating users on different os Ubuntu and Centos
- Version 0.1
- 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:)
-
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
-
- Option nopass_sudo in config files tests/pillar/users/ should be True
-
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