summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-12-30 13:58:59 +0100
committerintrigeri <intrigeri@boum.org>2012-12-30 13:58:59 +0100
commit8e5ce0b397d17ce7eee0601bf7a6fafd70459b63 (patch)
tree6f1421f39d24ee8d826ba5839874bc42040db5ae
parent37e40416d2aa7614cfbcd4330d4cd543f9874093 (diff)
parent7de392c40e0037c2abdf6d659f28212b265a1eb3 (diff)
Merge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'
-rw-r--r--manifests/init.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 794347f..d102f53 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -73,6 +73,9 @@ class apt {
$codename = $lsbdistcodename
$release = $lsbdistrelease
}
+ 'n/a': {
+ fail("Unknown lsbdistcodename reported by facter: '$lsbdistcodename', please fix this by setting this variable in your manifest.")
+ }
default: {
$codename = $lsbdistcodename
$release = debian_release($codename)