Skip to content

Commit a244fb7

Browse files
committed
fix: replace onlyif check with if conditional statement to determine netbird install
Signed-off-by: Sidharth Jawale <sidharth@obmondo.com>
1 parent 1d24706 commit a244fb7

File tree

1 file changed

+8
-7
lines changed
  • modules/enableit/profile/manifests/network

1 file changed

+8
-7
lines changed

modules/enableit/profile/manifests/network/netbird.pp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@
5050
}
5151

5252
# 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'],
53+
if $enable {
54+
exec { 'netbird_service_install':
55+
command => 'netbird service install',
56+
path => '/usr/bin:/usr/sbin:/bin',
57+
creates => $_service_file,
58+
noop => $noop_value,
59+
subscribe => Archive['netbird'],
60+
}
6061
}
6162

6263
if $facts['init_system'] == 'systemd' {

0 commit comments

Comments
 (0)