Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
cd1f2efb
Commit
cd1f2efb
authored
May 29, 2019
by
James T. Lee
Browse files
Don't run systemctl daemon-reload in a container
parent
1238eef6
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
40 additions
and
81 deletions
+40
-81
manifests/profile/base/distccd.pp
manifests/profile/base/distccd.pp
+3
-5
manifests/profile/base/fs.pp
manifests/profile/base/fs.pp
+6
-12
manifests/profile/base/fstab.pp
manifests/profile/base/fstab.pp
+2
-5
manifests/profile/base/libvirt.pp
manifests/profile/base/libvirt.pp
+3
-6
manifests/profile/base/network.pp
manifests/profile/base/network.pp
+2
-5
manifests/profile/base/openvpn.pp
manifests/profile/base/openvpn.pp
+3
-5
manifests/profile/base/puppet.pp
manifests/profile/base/puppet.pp
+3
-5
manifests/profile/base/ssh.pp
manifests/profile/base/ssh.pp
+2
-5
manifests/profile/base/zfs.pp
manifests/profile/base/zfs.pp
+4
-7
manifests/profile/workstation/barrier.pp
manifests/profile/workstation/barrier.pp
+3
-6
manifests/profile/workstation/bluetooth.pp
manifests/profile/workstation/bluetooth.pp
+0
-20
manifests/systemd_reload.pp
manifests/systemd_reload.pp
+9
-0
No files found.
manifests/profile/base/distccd.pp
View file @
cd1f2efb
...
@@ -11,13 +11,11 @@ class nest::profile::base::distccd {
...
@@ -11,13 +11,11 @@ class nest::profile::base::distccd {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$disable_verbose_content
,
content
=>
$disable_verbose_content
,
notify
=>
Exec
[
'distccd-systemd-daemon-reloa
d'
],
notify
=>
Nest
::
Systemd_reload
[
'distcc
d'
],
}
}
exec
{
'distccd-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'distccd'
:
command
=>
'/bin/systemctl daemon-reload'
,
notify
=>
Service
[
'distccd'
]
refreshonly
=>
true
,
notify
=>
Service
[
'distccd'
]
}
}
service
{
'distccd'
:
service
{
'distccd'
:
...
...
manifests/profile/base/fs.pp
View file @
cd1f2efb
...
@@ -23,18 +23,15 @@ class nest::profile::base::fs {
...
@@ -23,18 +23,15 @@ class nest::profile::base::fs {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$nfs_server_make_v4recovery
,
content
=>
$nfs_server_make_v4recovery
,
notify
=>
Exec
[
'nfs-server-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'nfs-server
'
],
}
}
exec
{
'nfs-server-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'nfs-server'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
if
$::nest::fileserver
{
if
$::nest::fileserver
{
service
{
'nfs-server'
:
service
{
'nfs-server'
:
enable
=>
true
,
enable
=>
true
,
subscribe
=>
Exec
[
'nfs-server-systemd-daemon-reload
'
],
subscribe
=>
Nest
::
Systemd_reload
[
'nfs-server
'
],
}
}
service
{
'zfs-share'
:
service
{
'zfs-share'
:
...
@@ -117,18 +114,15 @@ class nest::profile::base::fs {
...
@@ -117,18 +114,15 @@ class nest::profile::base::fs {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$cachefilesd_fix_path
,
content
=>
$cachefilesd_fix_path
,
notify
=>
Exec
[
'cachefilesd-systemd-daemon-reloa
d'
],
notify
=>
Nest
::
Systemd_reload
[
'cachefiles
d'
],
require
=>
Package
[
'sys-fs/cachefilesd'
],
require
=>
Package
[
'sys-fs/cachefilesd'
],
}
}
exec
{
'cachefilesd-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'cachefilesd'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
service
{
'cachefilesd'
:
service
{
'cachefilesd'
:
enable
=>
true
,
enable
=>
true
,
require
=>
Exec
[
'cachefilesd-systemd-daemon-reloa
d'
],
require
=>
Nest
::
Systemd_reload
[
'cachefiles
d'
],
}
}
}
}
}
}
manifests/profile/base/fstab.pp
View file @
cd1f2efb
...
@@ -99,12 +99,9 @@ class nest::profile::base::fstab {
...
@@ -99,12 +99,9 @@ class nest::profile::base::fstab {
'/etc/systemd/system/var.mount.d/lazyunmount.conf'
:
'/etc/systemd/system/var.mount.d/lazyunmount.conf'
:
content
=>
$var_lazy_unmount
,
content
=>
$var_lazy_unmount
,
notify
=>
Exec
[
'fstab-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'fstab
'
],
;
;
}
}
exec
{
'fstab-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'fstab'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
}
}
manifests/profile/base/libvirt.pp
View file @
cd1f2efb
...
@@ -65,7 +65,7 @@ class nest::profile::base::libvirt {
...
@@ -65,7 +65,7 @@ class nest::profile::base::libvirt {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$after_fs_servers_conf
,
content
=>
$after_fs_servers_conf
,
notify
=>
Exec
[
'libvirt-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'libvirt
'
],
}
}
$after_openvpn_ensure
=
$::nest::openvpn_server
?
{
$after_openvpn_ensure
=
$::nest::openvpn_server
?
{
...
@@ -84,13 +84,10 @@ class nest::profile::base::libvirt {
...
@@ -84,13 +84,10 @@ class nest::profile::base::libvirt {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$after_openvpn_conf
,
content
=>
$after_openvpn_conf
,
notify
=>
Exec
[
'libvirt-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'libvirt
'
],
}
}
exec
{
'libvirt-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'libvirt'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
# Do not filter bridge packets
# Do not filter bridge packets
# See: https://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf
# See: https://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf
...
...
manifests/profile/base/network.pp
View file @
cd1f2efb
...
@@ -41,12 +41,9 @@ class nest::profile::base::network {
...
@@ -41,12 +41,9 @@ class nest::profile::base::network {
file
{
'/etc/systemd/system/NetworkManager-wait-online.service'
:
file
{
'/etc/systemd/system/NetworkManager-wait-online.service'
:
ensure
=>
$wait_online_ensure
,
ensure
=>
$wait_online_ensure
,
target
=>
'/dev/null'
,
target
=>
'/dev/null'
,
notify
=>
Exec
[
'NetworkManager-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'NetworkManager
'
],
}
}
# probably not *strictly* necessary, but good practice none-the-less
# probably not *strictly* necessary, but good practice none-the-less
exec
{
'NetworkManager-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'NetworkManager'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
}
}
manifests/profile/base/openvpn.pp
View file @
cd1f2efb
...
@@ -145,16 +145,14 @@ class nest::profile::base::openvpn {
...
@@ -145,16 +145,14 @@ class nest::profile::base::openvpn {
content
=>
$dnsmasq_systemd_dropin_unit
,
content
=>
$dnsmasq_systemd_dropin_unit
,
}
}
exec
{
'dnsmasq-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'dnsmasq'
:
command
=>
'/bin/systemctl daemon-reload'
,
subscribe
=>
File
[
'/etc/systemd/system/dnsmasq.service.d/10-openvpn.conf'
],
refreshonly
=>
true
,
subscribe
=>
File
[
'/etc/systemd/system/dnsmasq.service.d/10-openvpn.conf'
],
}
}
service
{
'dnsmasq'
:
service
{
'dnsmasq'
:
enable
=>
true
,
enable
=>
true
,
require
=>
[
require
=>
[
Exec
[
'dnsmasq-systemd-daemon-reload
'
],
Nest
::
Systemd_reload
[
'dnsmasq
'
],
Service
[
"openvpn-
${mode}
@nest"
],
Service
[
"openvpn-
${mode}
@nest"
],
],
],
}
}
...
...
manifests/profile/base/puppet.pp
View file @
cd1f2efb
...
@@ -35,13 +35,11 @@ class nest::profile::base::puppet {
...
@@ -35,13 +35,11 @@ class nest::profile::base::puppet {
group
=>
'root'
,
group
=>
'root'
,
content
=>
"[Service]
\n
RuntimeDirectory=puppetlabs
\n
"
,
content
=>
"[Service]
\n
RuntimeDirectory=puppetlabs
\n
"
,
require
=>
Class
[
'::puppet::server::install'
],
require
=>
Class
[
'::puppet::server::install'
],
notify
=>
Exec
[
'puppetserver-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'puppet
'
],
}
}
exec
{
'puppetserver-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'puppet'
:
command
=>
'/bin/systemctl daemon-reload'
,
before
=>
Class
[
'::puppet::server::service'
],
refreshonly
=>
true
,
before
=>
Class
[
'::puppet::server::service'
],
}
}
# Package installs the log directory with incorrect permissions
# Package installs the log directory with incorrect permissions
...
...
manifests/profile/base/ssh.pp
View file @
cd1f2efb
...
@@ -33,13 +33,10 @@ class nest::profile::base::ssh {
...
@@ -33,13 +33,10 @@ class nest::profile::base::ssh {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
source
=>
'puppet:///modules/nest/ssh/ssh-agent.service'
,
source
=>
'puppet:///modules/nest/ssh/ssh-agent.service'
,
notify
=>
Exec
[
'ssh-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'puppet
'
],
}
}
exec
{
'ssh-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'puppet'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
exec
{
'ssh-agent-enable-systemd-user-service'
:
exec
{
'ssh-agent-enable-systemd-user-service'
:
command
=>
'/bin/systemctl --user --global enable ssh-agent.service'
,
command
=>
'/bin/systemctl --user --global enable ssh-agent.service'
,
...
...
manifests/profile/base/zfs.pp
View file @
cd1f2efb
...
@@ -86,7 +86,7 @@ class nest::profile::base::zfs {
...
@@ -86,7 +86,7 @@ class nest::profile::base::zfs {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$zfs_auto_snapshot_service_content
,
content
=>
$zfs_auto_snapshot_service_content
,
notify
=>
Exec
[
'zfs-systemctl-daemon-
reload'
],
notify
=>
Nest
::
Systemd_
reload
[
'zfs
'
],
}
}
$zfs_auto_snapshot_timer_frequencies
=
{
$zfs_auto_snapshot_timer_frequencies
=
{
...
@@ -114,17 +114,14 @@ class nest::profile::base::zfs {
...
@@ -114,17 +114,14 @@ class nest::profile::base::zfs {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
content
=>
$zfs_auto_snapshot_timer_content
,
content
=>
$zfs_auto_snapshot_timer_content
,
notify
=>
Exec
[
'zfs-systemctl-daemon-
reload'
],
notify
=>
Nest
::
Systemd_
reload
[
'zfs
'
],
}
}
service
{
"zfs-auto-snapshot@
${frequency}
.timer"
:
service
{
"zfs-auto-snapshot@
${frequency}
.timer"
:
enable
=>
true
,
enable
=>
true
,
require
=>
Exec
[
'zfs-systemctl-daemon-
reload'
],
require
=>
Nest
::
Systemd_
reload
[
'zfs
'
],
}
}
}
}
exec
{
'zfs-systemctl-daemon-reload'
:
::
nest::systemd_reload
{
'zfs'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
}
}
manifests/profile/workstation/barrier.pp
View file @
cd1f2efb
...
@@ -29,7 +29,7 @@ class nest::profile::workstation::barrier {
...
@@ -29,7 +29,7 @@ class nest::profile::workstation::barrier {
owner
=>
'root'
,
owner
=>
'root'
,
group
=>
'root'
,
group
=>
'root'
,
source
=>
'puppet:///modules/nest/barrier/barriers.service'
,
source
=>
'puppet:///modules/nest/barrier/barriers.service'
,
notify
=>
Exec
[
'barrier-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'barrier
'
],
}
}
# barrier pulls in avahi, which I don't want, and it gets started by
# barrier pulls in avahi, which I don't want, and it gets started by
...
@@ -41,13 +41,10 @@ class nest::profile::workstation::barrier {
...
@@ -41,13 +41,10 @@ class nest::profile::workstation::barrier {
ensure
=>
link
,
ensure
=>
link
,
target
=>
'/dev/null'
,
target
=>
'/dev/null'
,
require
=>
Package
[
'x11-misc/barrier'
],
require
=>
Package
[
'x11-misc/barrier'
],
notify
=>
Exec
[
'barrier-systemd-daemon-reload
'
],
notify
=>
Nest
::
Systemd_reload
[
'barrier
'
],
}
}
exec
{
'barrier-systemd-daemon-reload'
:
::
nest::systemd_reload
{
'barrier'
:
}
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
exec
{
'barrier-enable-systemd-user-service'
:
exec
{
'barrier-enable-systemd-user-service'
:
command
=>
'/bin/systemctl --user --global enable barriers.service'
,
command
=>
'/bin/systemctl --user --global enable barriers.service'
,
...
...
manifests/profile/workstation/bluetooth.pp
View file @
cd1f2efb
...
@@ -16,24 +16,4 @@ class nest::profile::workstation::bluetooth {
...
@@ -16,24 +16,4 @@ class nest::profile::workstation::bluetooth {
creates
=>
'/lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd'
,
creates
=>
'/lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd'
,
require
=>
Package
[
'sys-kernel/linux-firmware'
],
require
=>
Package
[
'sys-kernel/linux-firmware'
],
}
}
file
{
default
:
mode
=>
'0644'
,
owner
=>
'root'
,
group
=>
'root'
,
;
'/etc/systemd/system/sleep.target.d'
:
ensure
=>
absent
,
recurse
=>
true
,
force
=>
true
,
notify
=>
Exec
[
'bluetooth-systemd-daemon-reload'
],
;
}
exec
{
'bluetooth-systemd-daemon-reload'
:
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
}
}
}
manifests/systemd_reload.pp
0 → 100644
View file @
cd1f2efb
define
nest::systemd_reload
{
$exec_noop
=
$facts
[
'virtual'
]
==
'lxc'
exec
{
"systemd-daemon-reload-
${name}
"
:
command
=>
'/bin/systemctl daemon-reload'
,
refreshonly
=>
true
,
noop
=>
$exec_noop
,
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment