Commit 4f3c19c3 by Dóbé Péter

fix dhcpd fail on reboot

parent 2785a7a6
# systemd service file extras added by CIRCLE Salt installer:
# openvswitch and virtual network interface must be up before
# dhcpd is started
[Unit]
After=openvswitch-switch.service
[Service]
ExecStartPre=-/sbin/ifup vm
{# TODO: change 'vm' to pillar['fwdriver']['vm_if'] ? #}
{# TODO: similar patch for firewall.service ? #}
......@@ -49,3 +49,13 @@ isc-dhcp-server:
- enable: True
- reload: True
{% if grains['os'] == 'Debian' %}
{# For next reboot #}
/etc/systemd/system/isc-dhcp-server.service.d/after_openvswitch.conf:
file.managed:
- source: salt://network/files/fix_dhcp_Debian.conf
- user: root
- group: root
- template: jinja
- makedirs: True
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment