Hello,
First of all, sorry for my poor english ....
I am trying to use foreman, puppet with modules. The razorsedge (
https://forge.puppetlabs.com/razorsedge/network) network module. I have created a manage folder in /etc/puppet/environments/production/modules/network/manifests/ which contains an alias.pp file.
cat alias.pp
class network::manage::alias ($ensure, $data) inherits network::alias {
create_resources('network::alias', $data)
}
In foreman I have imported the network::manage::alias and set the $data variable to this value :
em2:1: {ensure => up, ipaddress => 1.2.8.5, netmask => 255.255.255.0,}
When I'm trying to apply on my node I've got this answer :
rror: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find parent resource type 'network::alias' of type hostclass in production at /etc/puppet/environments/production/modules/network/manifests/manage/alias.pp:1 on node
ovirt-node1.example.comWarning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Can somebody help me ?
Regards.
James