Skip to content

ruriky/puppet-systemd

 
 

Repository files navigation

Systemd

Puppet Forge Build Status

Overview

This module declares exec resources to create global sync points for reloading systemd.

Usage and examples

There are two ways to use this module.

unit files

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
file { '/usr/lib/systemd/system/foo.service':
  ensure => file,
  owner  => 'root',
  group  => 'root',
  mode   => '0644',
  source => "puppet:///modules/${module_name}/foo.service",
} ~>
Exec['systemctl-daemon-reload']

tmpfiles

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
file { '/etc/tmpfiles.d/foo.conf':
  ensure => file,
  owner  => 'root',
  group  => 'root',
  mode   => '0644',
  source => "puppet:///modules/${module_name}/foo.conf",
} ~>
Exec['systemd-tmpfiles-create']

About

Puppet module to manage systemd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 90.0%
  • Puppet 10.0%