From 121dc37fb3710b8e1e80e8ad7e056f14ec7e30e3 Mon Sep 17 00:00:00 2001 From: Alessandro Franceschi Date: Sat, 3 Feb 2024 16:15:35 +0100 Subject: [PATCH] Puppet8 --- docs/proxy.md | 4 ++-- manifests/init.pp | 2 +- manifests/puppet/postrun.pp | 2 +- manifests/services/init_script.pp | 2 +- manifests/services/systemd_script.pp | 2 +- manifests/tools/create_dir.pp | 2 +- spec/fixtures/hiera.yaml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/proxy.md b/docs/proxy.md index 6e5a453e..1907a742 100644 --- a/docs/proxy.md +++ b/docs/proxy.md @@ -15,8 +15,8 @@ and manage proxy settings with: password: xxx # Optional no_proxy: - localhost - - "%{::domain}" - - "%{::fqdn}" + - "%{facts.networking.domain}" + - "%{facts.networking.fqdn}" scheme: http You can customise the components for which proxy should be configured, here are the default params: diff --git a/manifests/init.pp b/manifests/init.pp index a061fce0..795e0cff 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -82,7 +82,7 @@ # password: xxx # Optional # no_proxy: # - localhost -# - "%{::domain}" +# - "%{facts.networking.domain}" # scheme: http # # @example Define arbitrary resources, with some defaults diff --git a/manifests/puppet/postrun.pp b/manifests/puppet/postrun.pp index 43b9eb82..884ffdad 100644 --- a/manifests/puppet/postrun.pp +++ b/manifests/puppet/postrun.pp @@ -21,7 +21,7 @@ noop($noop_value) } - $manage_content = tp_content($content, $template, $epp) + $manage_content = tp::content($content, $template, $epp) File { owner => 'root', diff --git a/manifests/services/init_script.pp b/manifests/services/init_script.pp index 52b21813..ef6f923e 100644 --- a/manifests/services/init_script.pp +++ b/manifests/services/init_script.pp @@ -12,7 +12,7 @@ Optional[String] $service_ensure = undef, Variant[Undef,Boolean,String] $service_enable = undef, ) { - $manage_content = tp_content($content, $template, $epp) + $manage_content = tp::content($content, $template, $epp) file { "/etc/init.d/${title}": ensure => $ensure, content => $manage_content, diff --git a/manifests/services/systemd_script.pp b/manifests/services/systemd_script.pp index 323320c9..9a53369f 100644 --- a/manifests/services/systemd_script.pp +++ b/manifests/services/systemd_script.pp @@ -16,7 +16,7 @@ Optional[String] $systemd_after = 'network.target', # lint:ignore:optional_default Optional[String] $systemd_before = undef, ) { - $manage_content = tp_content($content, $template, $epp) + $manage_content = tp::content($content, $template, $epp) file { $path: ensure => $ensure, content => $manage_content, diff --git a/manifests/tools/create_dir.pp b/manifests/tools/create_dir.pp index cb7a0c57..95a9a4c1 100644 --- a/manifests/tools/create_dir.pp +++ b/manifests/tools/create_dir.pp @@ -26,7 +26,7 @@ command => $mkdir_command, path => $facts['path'], creates => $path, - provider => $command_provider, + #provider => $command_provider, } if $facts['os']['family'] != 'windows' { diff --git a/spec/fixtures/hiera.yaml b/spec/fixtures/hiera.yaml index fdc82195..94084f65 100644 --- a/spec/fixtures/hiera.yaml +++ b/spec/fixtures/hiera.yaml @@ -4,6 +4,6 @@ :yaml: :datadir: './spec/fixtures/hieradata' :hierarchy: - - '%{::clientcert}' + - '%{trusted.certname}' - 'common'