Skip to content

gruzchik/salt-formula-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published