diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 20:58:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 20:58:21 -0300 |
commit | d6d256a293da043076351c62146228ed5bd4dfbc (patch) | |
tree | 230ffbd0ce66f2756fd2ac8bf897a11cf4329fc4 /manifests/base | |
parent | 508668172faddb6765b6de5582a9bd6214b859fb (diff) | |
download | puppet-nodo-d6d256a293da043076351c62146228ed5bd4dfbc.tar.gz puppet-nodo-d6d256a293da043076351c62146228ed5bd4dfbc.tar.bz2 |
Hiera 5 migration
Diffstat (limited to 'manifests/base')
-rw-r--r-- | manifests/base/host.pp | 2 | ||||
-rw-r--r-- | manifests/base/physical.pp | 2 | ||||
-rw-r--r-- | manifests/base/virtual.pp | 2 |
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'), } } |