Browse Source

Remove udev-rules include files in favour of pillar configuration.

  Something like the following entry in pillar will generate an udev rules for
  interface 'eth0' with MAC address '08:15:DE:FA:CE:D0' to ensure proper naming
  for the 'eth0' interface:

  node.id.ffho.net:
    ifaces:
      eth0:
        _udev_mac: 08:15:DE:FA:CE:D0

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
f43aefc1cd
2 changed files with 0 additions and 4 deletions
  1. 0 4
      network/udev-rules.tmpl
  2. 0 0
      network/udev-rules/.placeholder

+ 0 - 4
network/udev-rules.tmpl

@@ -1,10 +1,6 @@
 #
 # FFHO net rules (Salt managed)
 #
-
-{%- set host_config_file = "network/udev-rules/" + grains['nodename'] + ".rules" %}
-{% include host_config_file ignore missing %}
-
 {%- for iface, iface_config in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces', {}).items () %}
   {%- if '_udev_mac' in iface_config %}
 # {{ iface_config.get ('desc', '') }}

+ 0 - 0
network/udev-rules/.placeholder