We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d24706 commit a244fb7Copy full SHA for a244fb7
modules/enableit/profile/manifests/network/netbird.pp
@@ -50,13 +50,14 @@
50
}
51
52
# Install NetBird service
53
- exec { 'netbird_service_install':
54
- command => 'netbird service install',
55
- path => '/usr/bin:/usr/sbin:/bin',
56
- creates => $_service_file,
57
- onlyif => $enable,
58
- noop => $noop_value,
59
- subscribe => Archive['netbird'],
+ if $enable {
+ exec { 'netbird_service_install':
+ command => 'netbird service install',
+ path => '/usr/bin:/usr/sbin:/bin',
+ creates => $_service_file,
+ noop => $noop_value,
+ subscribe => Archive['netbird'],
60
+ }
61
62
63
if $facts['init_system'] == 'systemd' {
0 commit comments