Closed baurmatt closed 1 year ago
I need a way to specifify pre/post commands from other modules to e.g. be able to trigger database backups/cleanups before/after the backup. My suggestion would be:
target
content
systemd::unit_file["${title}.service"]
[Service] User=<%= $user %> Group=<%= $group %> Type=oneshot EnvironmentFile=<%= $config %>
<% $commands.each |$command| { -%> ExecStart=<%= $command %> <% } -%>
What do you think?
I will provide an implementation
I need a way to specifify pre/post commands from other modules to e.g. be able to trigger database backups/cleanups before/after the backup. My suggestion would be:
target
parameter instead ofcontent
forsystemd::unit_file["${title}.service"]
. This allows us to define the location of the unit file ourself.What do you think?