Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require stdlib 9 / use namespaced functions #850

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -1,4 +1,4 @@
{

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system CentOS 8

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system FreeBSD 11

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system FreeBSD 12
"name": "theforeman-foreman_proxy",
"version": "26.1.0",
"author": "theforeman",
Expand Down 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
Loading