we don't require any of these execs, so we don't need them

This commit is contained in:
mh 2008-10-25 21:25:06 +00:00 committed by Micah Anderson
parent 69a63c5767
commit 49b127b80a

View file

@ -19,7 +19,6 @@ class assert_lsbdistcodename {
case $lsbdistcodename {
'': {
err("Please install lsb_release or set facter_lsbdistcodename in the environment of $fqdn")
exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
}
'n/a': {
case $operatingsystem {
@ -32,15 +31,9 @@ class assert_lsbdistcodename {
}
exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
}
default: {
exec { "true # assert_lsbdistcodename": alias => assert_lsbdistcodename }
exec { "true # require_lsbdistcodename": alias => require_lsbdistcodename }
}
}
}
# To fail the complete compilation, include this class
class require_lsbdistcodename inherits assert_lsbdistcodename {
exec { "false # require_lsbdistcodename": require => Exec[require_lsbdistcodename], }
}
class require_lsbdistcodename inherits assert_lsbdistcodename {}