Skip to content

Instantly share code, notes, and snippets.

@mastrolinux
Created April 2, 2014 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastrolinux/9930245 to your computer and use it in GitHub Desktop.
Save mastrolinux/9930245 to your computer and use it in GitHub Desktop.
Common/init.sls
{% set home = pillar.get('home', '/home/ubuntu') %}
{% set user = pillar.get('user', 'ubuntu') %}
main_user:
user.present:
- name: {{ user }}
- home: {{ home }}
- createhome: True
- shell: /bin/bash
# - gid_from_name: True
- groups:
- adm
- sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment