Skip to content

Commit 14b1fd7

Browse files
George Brownjlambert121
George Brown
authored andcommitted
Changed alert to fail if OS is not supported
When attempting install a repo on an unsuported OS we should fail as soon as possible rather than alterting and atempting to continue and letting puppet spewing out numerous "failed dependancies". Note sure if it's my puppet setup but I don't see anything on the console when attempting to debug. Before: puppet agent -tvd --logdest console 2>&1 | grep -i sensu | grep -i "not supported" After: puppet agent -tvd --logdest console 2>&1 | grep -i sensu | grep -i "not supported" Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Scientific not supported yet at /etc/puppet/environments/production/modules/sensu/manifests/package.pp:21
1 parent 683ad19 commit 14b1fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/package.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
}
3030

31-
default: { alert("${::osfamily} not supported yet") }
31+
default: { fail("${::osfamily} not supported yet") }
3232

3333
}
3434

0 commit comments

Comments
 (0)