]> Frank Brehm's Git Trees - salt/pillar.git/commitdiff
Adding and using common.sls
authorFrank Brehm <frank@brehm-online.com>
Tue, 22 Mar 2016 19:11:50 +0000 (20:11 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 22 Mar 2016 19:11:50 +0000 (20:11 +0100)
common.sls [new file with mode: 0644]
top.sls

diff --git a/common.sls b/common.sls
new file mode 100644 (file)
index 0000000..ca75c47
--- /dev/null
@@ -0,0 +1,14 @@
+logrotate:
+{% if salt['grains.get']('fqdn') == 'ns3.uhu-banane.de' %}
+  verbose: True
+{% else %}
+  verbose: False
+{% endif %}
+
+networking:
+{% if salt['grains.get']('fqdn') == 'ns3.uhu-banane.de' %}
+  has_public_ipv6: True
+{% else %}
+  has_public_ipv6: False
+{% endif %}
+
diff --git a/top.sls b/top.sls
index b4f710aca61548cfcae72f293b64e8cc4d00c101..5ec22f2c36f752b0b6c6fc9f3b15a667544cdfeb 100644 (file)
--- a/top.sls
+++ b/top.sls
@@ -1,5 +1,6 @@
 base:
   'ns1.uhu-banane.de':
+    - common
     - postfix.satellite
     - debian.openssh
     - resolver.common
@@ -8,6 +9,7 @@ base:
     - bind.secondary
 
   'ns2.uhu-banane.de':
+    - common
     - postfix.satellite
     - debian.openssh
     - resolver.common
@@ -16,6 +18,7 @@ base:
     - bind.secondary
 
   'ns3.uhu-banane.de':
+    - common
     - postfix.satellite
     - debian.openssh
     - resolver.common