Skip to content

Commit

Permalink
Changed alert to fail if OS is not supported
Browse files Browse the repository at this point in the history
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
  • Loading branch information
George Brown authored and jlambert121 committed Nov 14, 2014
1 parent 683ad19 commit 14b1fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
}

default: { alert("${::osfamily} not supported yet") }
default: { fail("${::osfamily} not supported yet") }

}

Expand Down

0 comments on commit 14b1fd7

Please sign in to comment.