Skip to content

Commit

Permalink
Require stdlib 9 / use namespaced functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 4, 2024
1 parent 907200b commit b0d822f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}

if $foreman_proxy::bmc and !($foreman_proxy::bmc_default_provider in ['shell', 'redfish']) {
ensure_packages([$foreman_proxy::bmc_default_provider], { ensure => $foreman_proxy::ensure_packages_version, })
stdlib::ensure_packages([$foreman_proxy::bmc_default_provider], { ensure => $foreman_proxy::ensure_packages_version, })
}

if $foreman_proxy::dns and $foreman_proxy::dns_provider in ['nsupdate', 'nsupdate_gss'] {
ensure_packages([$foreman_proxy::nsupdate], { ensure => $foreman_proxy::ensure_packages_version })
stdlib::ensure_packages([$foreman_proxy::nsupdate], { ensure => $foreman_proxy::ensure_packages_version })
}
}
2 changes: 1 addition & 1 deletion manifests/plugin/ansible.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}

if ($facts['os']['family'] in ['RedHat', 'Debian'] and $foreman_proxy::plugin::ansible::callback == 'theforeman.foreman.foreman') {
ensure_packages(['ansible-collection-theforeman-foreman'])
stdlib::ensure_packages(['ansible-collection-theforeman-foreman'])
}

include foreman_proxy::plugin::dynflow
Expand Down
2 changes: 1 addition & 1 deletion manifests/proxydhcp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

if $foreman_proxy::dhcp_manage_acls {
ensure_packages(['grep', 'acl'])
stdlib::ensure_packages(['grep', 'acl'])

exec { "Allow ${foreman_proxy::user} to read ${dhcp::dhcp_dir}":
command => "setfacl -m u:${foreman_proxy::user}:rx ${dhcp::dhcp_dir}",
Expand Down
2 changes: 1 addition & 1 deletion manifests/tftp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

if $manage_wget {
ensure_packages(['wget'], { ensure => $wget_version, })
stdlib::ensure_packages(['wget'], { ensure => $wget_version, })
}

class { 'foreman_proxy::tftp::netboot':
Expand Down
2 changes: 1 addition & 1 deletion manifests/tftp/netboot.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Enum['redhat', 'debian', 'none'] $grub_installation_type = $foreman_proxy::tftp::netboot::params::grub_installation_type,
String $grub_modules = $foreman_proxy::tftp::netboot::params::grub_modules,
) inherits foreman_proxy::tftp::netboot::params {
ensure_packages($packages, { ensure => 'installed', })
stdlib::ensure_packages($packages, { ensure => 'installed', })

# The symlink from grub2/boot to boot is needed for UEFI HTTP boot
file { "${root}/grub2/boot":
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.19.0 < 10.0.0"
"version_requirement": ">= 9.0.0 < 10.0.0"
},
{
"name": "puppet/extlib",
Expand Down

0 comments on commit b0d822f

Please sign in to comment.