This module declares exec resources to create global sync points for reloading systemd.
There are two ways to use this module.
Let this module handle file creation and systemd reloading.
::systemd::unit_file { 'foo.service':
source => "puppet:///modules/${module_name}/foo.service",
}
Or handle file creation yourself and trigger systemd.
include ::systemd::systemctl::daemon_reload
file { '/usr/lib/systemd/system/foo.service':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => "puppet:///modules/${module_name}/foo.service",
}
~> Class['systemd::systemctl::daemon_reload']
Let this module handle file creation and systemd reloading
::systemd::tmpfile { 'foo.conf':
source => "puppet:///modules/${module_name}/foo.conf",
}
Or handle file creation yourself and trigger systemd.
include ::systemd::tmpfiles
file { '/etc/tmpfiles.d/foo.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => "puppet:///modules/${module_name}/foo.conf",
}
~> Class['systemd::tmpfiles']
Manage soft and hard limits on various resources for executed processes.
::systemd::service_limits { 'foo.service':
limits => {
LimitNOFILE => 8192,
LimitNPROC => 16384,
}
}
Or provide the configuration file yourself. Systemd reloading and restarting of the service are handled by the module.
::systemd::service_limits { 'foo.service':
source => "puppet:///modules/${module_name}/foo.conf",
}
systemd-networkd is able to manage your network configuration. We provide a defined resource which can write the interface configurations. systemd-networkd needs to be restarted to apply the configs. The defined resource can do this for you:
::systemd::network{'eth0.network':
source => "puppet:///modules/${module_name}/eth0.network",
restart_service => true,
}
Systemd provides multiple services. Currently you can manage systemd-resolved
and systemd-networkd
via the main class:
class{'::systemd':
$manage_resolved => true,
$manage_networkd => true,
$manage_networkd is required if you want to reload it for new
::systemd::network
resources. Setting $manage_resolved will also manage your
/etc/resolv.conf
.