diff --git a/salt_content/local/salt/neofetch/init.sls b/salt_content/local/salt/neofetch/init.sls new file mode 100644 index 0000000..c1d8ddf --- /dev/null +++ b/salt_content/local/salt/neofetch/init.sls @@ -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 %} diff --git a/salt_content/local/salt/neofetch/uninstall.sls b/salt_content/local/salt/neofetch/uninstall.sls new file mode 100644 index 0000000..2d8368d --- /dev/null +++ b/salt_content/local/salt/neofetch/uninstall.sls @@ -0,0 +1,3 @@ +uninstall_neofetch: + pkg.removed: + - name: neofetch