mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-12-18 07:22:17 +00:00
add sample local content
This commit is contained in:
parent
117095ed5e
commit
c668bf171b
2 changed files with 16 additions and 0 deletions
13
salt_content/local/salt/neofetch/init.sls
Normal file
13
salt_content/local/salt/neofetch/init.sls
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% if grains['os_family'] == 'RedHat' %}
|
||||
install_epel_repo:
|
||||
pkg.installed:
|
||||
- name: epel-release
|
||||
{% endif %}
|
||||
|
||||
install_neofetch:
|
||||
pkg.installed:
|
||||
- name: neofetch
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
- require:
|
||||
- pkg: install_epel_repo
|
||||
{% endif %}
|
3
salt_content/local/salt/neofetch/uninstall.sls
Normal file
3
salt_content/local/salt/neofetch/uninstall.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
uninstall_neofetch:
|
||||
pkg.removed:
|
||||
- name: neofetch
|
Loading…
Reference in a new issue