action :install
end
- execute "systemctl-reload" do
- action :nothing
- command "systemctl daemon-reload"
- user "root"
- group "root"
- end
-
directory "/etc/systemd/system.conf.d" do
owner "root"
group "root"
owner "root"
group "root"
mode "644"
- notifies :run, "execute[systemctl-reload]"
+ end
+
+ execute "systemctl-reload" do
+ action :nothing
+ command "systemctl daemon-reload"
+ user "root"
+ group "root"
+ subscribes :run, "template[/etc/systemd/system.conf.d/watchdog.conf]"
end
end
group "root"
mode "644"
variables service_variables
- notifies :run, "execute[systemctl-reload]"
end
execute "systemctl-reload" do
command "systemctl daemon-reload"
user "root"
group "root"
+ subscribes :run, "template[#{config_name}]"
end
end
file config_name do
action :delete
- notifies :run, "execute[systemctl-reload]"
end
execute "systemctl-reload" do
command "systemctl daemon-reload"
user "root"
group "root"
+ subscribes :run, "file[#{config_name}]"
end
end
group "root"
mode "644"
variables timer_variables
- notifies :run, "execute[systemctl-reload]"
end
execute "systemctl-reload" do
command "systemctl daemon-reload"
user "root"
group "root"
+ subscribes :run, "template[#{config_name}]"
end
end
command "systemctl daemon-reload"
user "root"
group "root"
- subscribes :run, "file[/etc/systemd/system/#{new_resource.timer}.timer]"
+ subscribes :run, "file[#{config_name}]"
end
end