Преглед изворни кода

Add top.sls file.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm пре 7 година
родитељ
комит
de8bc0eba5
1 измењених фајлова са 58 додато и 0 уклоњено
  1. 58 0
      top.sls

+ 58 - 0
top.sls

@@ -0,0 +1,58 @@
+base:
+  # Base config for all minions
+  '*':
+    - ffinfo
+    - apt
+    - bash
+    - cert.x509
+    - console-tools
+    - kernel
+    - locales
+    - mosh
+    - network
+    - ntp
+    - postfix
+    - screen
+    - snmpd
+    - ssh
+    - sysctl
+    - vim
+    - unattended-upgrades
+
+#    - ffpb
+#    - monitoring.node
+#    - tinc
+
+#
+# Roles
+#
+
+# Roles no relevant here are
+# - batman_gw (require role "batman")
+# - bbr (require role "router")
+
+  # Router
+  nodes:{{ grains['id'] }}:roles:router:
+    - match: pillar
+    - bird
+
+  # Batman node?
+  nodes:{{ grains['id'] }}:roles:batman:
+    - match: pillar
+    - batman
+
+  # BRAS / Fastd
+  nodes:{{ grains['id'] }}:roles:fastd:
+    - match: pillar
+    - fastd
+
+  # Hardware nodes
+  virtual:physical:
+    - match: grain
+    - hardware
+
+  # KVM hosts
+  nodes:{{ grains['id'] }}:roles:kvm:
+    - match: pillar
+    - kvm
+