aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/nodo.pp12
1 files changed, 12 insertions, 0 deletions
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,
}