aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/preferences.d/custom0
-rw-r--r--manifests/nodo.pp12
2 files changed, 12 insertions, 0 deletions
diff --git a/files/preferences.d/custom b/files/preferences.d/custom
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/files/preferences.d/custom
diff --git a/manifests/nodo.pp b/manifests/nodo.pp
index b5ac46a..b4b7e22 100644
--- a/manifests/nodo.pp
+++ b/manifests/nodo.pp
@@ -52,6 +52,18 @@ class nodo {
}
}
+ # Preferences file can't have dots in the filename
+ $apt_domain_preferences = regsubst($domain, '\.', '-', 'G')
+
+ file { "/etc/apt/preferences.d/$apt_domain_preferences":
+ source => [ "puppet:///modules/site-apt/preferences.d/$operatingsystem/$domain",
+ "puppet:///modules/nodo/preferences.d/custom" ],
+ ensure => $apt_domain_source ? {
+ true => present,
+ default => absent,
+ }
+ }
+
package { 'apt-transport-https':
ensure => present,
}