On Friday, March 7, 2014 10:56:09 AM UTC-6, James James wrote:
>
> 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.com
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
> Can somebody help me ?
>
>
Network::Alias is a defined resource type, not a class, therefore your 
class network::manage::alias cannot inherit from it (nor does it need to 
do).


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/da321157-2268-4ea3-ad2f-1a8dac50965c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to