summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-12-19 17:38:32 +0100
committervarac <varacanero@zeromail.org>2012-12-19 17:38:32 +0100
commit507d5448c85904d6471e829d3afe00cff89e7520 (patch)
tree6355329c095931a32ff019e2ed45fd13946e523a /manifests
parentffb44c91db24d30bb9584eb27d52f76958d6b732 (diff)
parent7de392c40e0037c2abdf6d659f28212b265a1eb3 (diff)
Merge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'
Diffstat (limited to 'manifests')
-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)