From 455797675cbbd7a8e67ed9a45d70d5e8500befec Mon Sep 17 00:00:00 2001 From: N Date: Mon, 29 Jul 2019 23:32:46 +0100 Subject: [PATCH] fix(os): pass state on unsupported os --- salt/pkgrepo/arch | 1 + salt/pkgrepo/freebsd | 1 + salt/pkgrepo/macos | 1 + salt/pkgrepo/nop/clean.sls | 7 +++++++ salt/pkgrepo/nop/init.sls | 5 +++++ salt/pkgrepo/nop/install.sls | 7 +++++++ 6 files changed, 22 insertions(+) create mode 120000 salt/pkgrepo/arch create mode 120000 salt/pkgrepo/freebsd create mode 120000 salt/pkgrepo/macos create mode 100644 salt/pkgrepo/nop/clean.sls create mode 100644 salt/pkgrepo/nop/init.sls create mode 100644 salt/pkgrepo/nop/install.sls diff --git a/salt/pkgrepo/arch b/salt/pkgrepo/arch new file mode 120000 index 0000000..0595218 --- /dev/null +++ b/salt/pkgrepo/arch @@ -0,0 +1 @@ +nop/ \ No newline at end of file diff --git a/salt/pkgrepo/freebsd b/salt/pkgrepo/freebsd new file mode 120000 index 0000000..0595218 --- /dev/null +++ b/salt/pkgrepo/freebsd @@ -0,0 +1 @@ +nop/ \ No newline at end of file diff --git a/salt/pkgrepo/macos b/salt/pkgrepo/macos new file mode 120000 index 0000000..0595218 --- /dev/null +++ b/salt/pkgrepo/macos @@ -0,0 +1 @@ +nop/ \ No newline at end of file diff --git a/salt/pkgrepo/nop/clean.sls b/salt/pkgrepo/nop/clean.sls new file mode 100644 index 0000000..f535f7f --- /dev/null +++ b/salt/pkgrepo/nop/clean.sls @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# vim: ft=sls + +salt-pkgrepo-clean-saltstack-norepo-{{ grains['os_family']|lower }}: + test.show_notification: + - text: | + No official repository for {{ grains['os_family'] }} diff --git a/salt/pkgrepo/nop/init.sls b/salt/pkgrepo/nop/init.sls new file mode 100644 index 0000000..d3e5518 --- /dev/null +++ b/salt/pkgrepo/nop/init.sls @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# vim: ft=sls + +include: + - .install diff --git a/salt/pkgrepo/nop/install.sls b/salt/pkgrepo/nop/install.sls new file mode 100644 index 0000000..55e3907 --- /dev/null +++ b/salt/pkgrepo/nop/install.sls @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# vim: ft=sls + +salt-pkgrepo-install-saltstack-norepo-{{ grains['os_family']|lower }}: + test.show_notification: + - text: | + No official repository for {{ grains['os_family'] }}