From c668bf171bf9544a3923b0170b91512ef05b4baa Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 6 Feb 2024 11:15:30 -0600 Subject: [PATCH] add sample local content --- salt_content/local/salt/neofetch/init.sls | 13 +++++++++++++ salt_content/local/salt/neofetch/uninstall.sls | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 salt_content/local/salt/neofetch/init.sls create mode 100644 salt_content/local/salt/neofetch/uninstall.sls 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