libvirt fixes distro
diff --git a/server.sls b/server.sls
index 66b3e21..ec2270a 100644
--- a/server.sls
+++ b/server.sls
@@ -14,13 +14,28 @@
- require:
- pkg: libvirt_packages
+{%- if grains.os_family == 'RedHat' %}
+
libvirt_sysconfig:
- file.append:
- - name: {{ server.config_sys }}
- - text: 'LIBVIRTD_ARGS="--listen"'
+ file.managed:
+ - name: /etc/sysconfig/libvirtd
+ - contents: 'LIBVIRTD_ARGS="--listen"'
- require:
- pkg: libvirt_packages
+{%- endif %}
+
+{%- if grains.os_family == 'Debian' %}
+
+/etc/default/libvirt-bin:
+ file.managed:
+ - source: salt://libvirt/files/libvirt-bin
+ - contents: 'LIBVIRTD_ARGS="--listen"'
+ - require:
+ - pkg: libvirt_packages
+
+{%- endif %}
+
libvirt_service:
service.running:
- name: {{ server.service }}