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

Issue upgrading from 3.8.0 to 3.11.1 #157

Open
k2patel opened this issue Jan 26, 2021 · 0 comments
Open

Issue upgrading from 3.8.0 to 3.11.1 #157

k2patel opened this issue Jan 26, 2021 · 0 comments

Comments

@k2patel
Copy link

k2patel commented Jan 26, 2021

Hello,

Puppet agent version: 6.19.1
puppet server version: 6.7.0

After the upgrade, it gives me an error.

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Unacceptable location. The name 'validate_ip_address' is unacceptable in file '/etc/puppetlabs/code/modules/network/manifests/init.pp' (file: /etc/puppetlabs/code/modules/network/manifests/init.pp, line: 240, column: 1)

My usage is only managing one interface on the system using the following code.

network::if::static { lookup('interface_name') :
ensure => 'up',
ipaddress => $local_ipaddress,
netmask => '255.255.255.0',
macaddress => $local_macaddress,
mtu => '9000',
ipv6init => false,
}

It works without issue if I remove the following code from network/manifests/init.pp

define validate_ip_address {
if ! is_ip_address($name) { fail("${name} is not an IP(v6) address.") }
} # define validate_ip_address

What could I be doing wrong which is causing this failure, i may be using it wrong.

Please advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant