aboutsummaryrefslogtreecommitdiff
path: root/manifests/base
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-05-07 20:58:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-05-07 20:58:21 -0300
commitd6d256a293da043076351c62146228ed5bd4dfbc (patch)
tree230ffbd0ce66f2756fd2ac8bf897a11cf4329fc4 /manifests/base
parent508668172faddb6765b6de5582a9bd6214b859fb (diff)
downloadpuppet-nodo-d6d256a293da043076351c62146228ed5bd4dfbc.tar.gz
puppet-nodo-d6d256a293da043076351c62146228ed5bd4dfbc.tar.bz2
Hiera 5 migration
Diffstat (limited to 'manifests/base')
-rw-r--r--manifests/base/host.pp2
-rw-r--r--manifests/base/physical.pp2
-rw-r--r--manifests/base/virtual.pp2
3 files changed, 3 insertions, 3 deletions
diff --git a/manifests/base/host.pp b/manifests/base/host.pp
index 96c2e63..6e71f98 100644
--- a/manifests/base/host.pp
+++ b/manifests/base/host.pp
@@ -14,7 +14,7 @@ class nodo::base::host {
class { 'firewall': }
# Time
- $ntpdate = hiera('nodo::host::ntpdate', true)
+ $ntpdate = lookup('nodo::host::ntpdate', undef, undef, true)
case $ntpdate {
false: { class { 'ntp::timezone': } }
default: { class { 'ntp::ntpdate': } }
diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp
index 8c3b1c4..936a21f 100644
--- a/manifests/base/physical.pp
+++ b/manifests/base/physical.pp
@@ -1,5 +1,5 @@
class nodo::base::physical inherits nodo::base::host {
- $smartmontools = hiera('nodo::smartmontools', true)
+ $smartmontools = lookup('nodo::smartmontools', undef, undef, true)
if $smartmontools == true {
class { 'smartmontools': }
diff --git a/manifests/base/virtual.pp b/manifests/base/virtual.pp
index c532620..0e107c0 100644
--- a/manifests/base/virtual.pp
+++ b/manifests/base/virtual.pp
@@ -10,6 +10,6 @@ class nodo::base::virtual {
}
nodo::subsystem::monkeysphere { "${::hostname}":
- port => hiera('nodo::virtual::ssh_port', '22'),
+ port => lookup('nodo::virtual::ssh_port', undef, undef, '22'),
}
}