aboutsummaryrefslogtreecommitdiff
path: root/manifests/nodo.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/nodo.pp')
-rw-r--r--manifests/nodo.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/nodo.pp b/manifests/nodo.pp
index f57e86d..36b04a5 100644
--- a/manifests/nodo.pp
+++ b/manifests/nodo.pp
@@ -68,8 +68,8 @@ class nodo {
$apt_domain_source = hiera('nodo::apt_domain_source', false)
- apt::sources_list { "$domain.list":
- source => "puppet:///modules/site_apt/sources.list.d/$operatingsystem/$domain.list",
+ apt::sources_list { "${::domain}.list":
+ source => "puppet:///modules/site_apt/sources.list.d/${::operatingsystem}/${::domain}.list",
ensure => $apt_domain_source ? {
true => present,
default => absent,
@@ -77,12 +77,12 @@ class nodo {
}
# Preferences file can't have dots in the filename
- $apt_domain_preferences = regsubst($domain, '\.', '-', 'G')
+ $apt_domain_preferences = regsubst($::domain, '\.', '-', 'G')
- file { "/etc/apt/preferences.d/$apt_domain_preferences":
- source => [ "puppet:///modules/site_apt/preferences.d/$operatingsystem/$domain",
+ 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 ? {
+ ensure => ${apt_domain_source} ? {
true => present,
default => absent,
}