mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-12-25 18:12:18 +00:00
introduce sample content from the acg salt course
This commit is contained in:
parent
19b9c0a5a0
commit
3d7902455b
6 changed files with 19 additions and 8 deletions
|
@ -1,3 +0,0 @@
|
|||
install_neofetch:
|
||||
pkg.installed:
|
||||
- name: neofetch
|
|
@ -1,3 +0,0 @@
|
|||
uninstall_neofetch:
|
||||
pkg.removed:
|
||||
- name: neofetch
|
|
@ -1,4 +1,4 @@
|
|||
acg:
|
||||
'roles:acglab':
|
||||
'os:Ubuntu':
|
||||
- match: grain
|
||||
- neofetch
|
||||
- users
|
||||
|
|
3
salt_content/local/salt/acg/users/groups.sls
Normal file
3
salt_content/local/salt/acg/users/groups.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
create_group_qa:
|
||||
group.present:
|
||||
- name: qa
|
3
salt_content/local/salt/acg/users/init.sls
Normal file
3
salt_content/local/salt/acg/users/init.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
include:
|
||||
- users.groups
|
||||
- users.user
|
11
salt_content/local/salt/acg/users/user.sls
Normal file
11
salt_content/local/salt/acg/users/user.sls
Normal file
|
@ -0,0 +1,11 @@
|
|||
create_user_jbyers:
|
||||
user.present:
|
||||
- name: jbyers
|
||||
- fullname: John Byers
|
||||
- shell: /bin/bash
|
||||
- home: /home/jbyers
|
||||
- groups:
|
||||
- sudo
|
||||
- qa
|
||||
- require:
|
||||
- group: qa
|
Loading…
Reference in a new issue