summaryrefslogtreecommitdiffstats
path: root/manifests/reprepro/params.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-23 11:25:34 +0000
committerintrigeri <intrigeri@boum.org>2016-05-23 11:25:34 +0000
commitc6e5bbe8548d16079f42ccc3d68f9dc888ffd1db (patch)
tree3a7cd2294a4b54b3ccf5384e0880ab073d7b4302 /manifests/reprepro/params.pp
parent0a44232ed9edb4553540544bc4ae43864d01c7e1 (diff)
Convey default params value in a way that doesn't introduce a chicken'n'egg issue.
Otherwise we would see: "(Scope(Class[Tails::Reprepro::All])) Could not look up qualified variable 'tails::reprepro::snapshots::params::architectures'; class tails::reprepro::snapshots::params has not been evaluated" Previously, tails::reprepro::all both declared tails::reprepro::snapshots::* (that inherit from tails::reprepro::snapshots::params), _and_ it used tails::reprepro::snapshots::params's parameters to fetch default values for its own parameters, so we were asking Puppet to solve a chicken'n'egg situation. refs: #6299
Diffstat (limited to 'manifests/reprepro/params.pp')
-rw-r--r--manifests/reprepro/params.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/reprepro/params.pp b/manifests/reprepro/params.pp
new file mode 100644
index 0000000..31e67af
--- /dev/null
+++ b/manifests/reprepro/params.pp
@@ -0,0 +1,15 @@
+# Default parameters that are shared between tails::reprepro::* classes.
+class tails::reprepro::params () {
+
+ $snapshots_architectures = {
+ jessie => [amd64, i386, source],
+ stretch => [amd64, i386, source],
+ sid => [amd64, i386, source],
+ experimental => [amd64, i386, source],
+ tails => [amd64, i386, source],
+ torproject => [amd64, i386],
+ }
+
+ $snapshots_signwith = yes
+
+}