From 4a64329226c61f7716de36425bd0904f478e677a Mon Sep 17 00:00:00 2001 From: stoo johnston Date: Sun, 23 Apr 2023 20:57:32 +0100 Subject: [PATCH] fix(config): ensure daemon dir is created --- libvirt/server/config/files.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libvirt/server/config/files.sls b/libvirt/server/config/files.sls index a69428c..9758710 100644 --- a/libvirt/server/config/files.sls +++ b/libvirt/server/config/files.sls @@ -28,6 +28,11 @@ libvirt-server-config-files-libvirtd-file-managed: - watch_in: - service: libvirt-server-service-running-service-running +libvirt-server-config-files-daemonconfig-dir-managed: + file.directory: + - name: {{ libvirt_settings.daemon_config_path }} + - mode: '0755' + libvirt-server-config-files-daemonconfig-file-managed: file.managed: - name: {{ libvirt_settings.daemon_config_path }}/{{ libvirt_settings.libvirt_service }} @@ -39,5 +44,6 @@ libvirt-server-config-files-daemonconfig-file-managed: }} - require: - pkg: libvirt-server-package-install-pkg-installed + - file: libvirt-server-config-files-daemonconfig-dir-managed - watch_in: - service: libvirt-server-service-running-service-running