Aaron Grewell
2011-May-17 00:04 UTC
[Puppet Users] Plugins don''t work the way I think they do?
Hi all,
I''m trying to configure a set of network interfaces, so I downloaded
the
puppet-network module from the module forge. I enabled plugin sync per
http://docs.puppetlabs.com/guides/plugins_in_modules.htm and added the
module to my module path, but I''m getting an ''invalid resource
type'' error
indicating that the custom type included in the module isn''t found.
Can you
help me figure out what I''ve missed?
Puppet:
puppet --version
2.6.6
The error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid
resource type network_config at
/usr/share/puppet/environments/testing/modules/cluster/manifests/testcluster1.pp:35
The call:
class cluster::testcluster1 ($system_ip, $cluster_ip) {
include network
network_config { "bond0":
type => "Bonding",
bonding_module_opts => "mode=6 miimon=100",
bootproto => "none",
onboot => "yes",
netmask => "255.255.255.0",
ipaddr => $system_ip,
}
network_config { "eth0": master => "bond0", slave
=> "yes" }
network_config { "eth1": master => "bond0", slave
=> "yes" }
} # class cluster::testcluster1
The module:
tree -fi network
network
network/COPYING
network/README.markdown
network/files
network/files/network-restart.rb
network/lib
network/lib/puppet
network/lib/puppet/provider
network/lib/puppet/provider/network_config
network/lib/puppet/provider/network_config/interfaces.rb
network/lib/puppet/provider/network_config/network_scripts.rb
network/lib/puppet/provider/network_interface
network/lib/puppet/provider/network_interface/ip.rb
network/lib/puppet/type
network/lib/puppet/type/network_config.rb
network/lib/puppet/type/network_interface.rb
network/manifests
network/manifests/init.pp
network/manifests/init.pp.example
network/spec
network/spec/unit
network/spec/unit/puppet
network/spec/unit/puppet/provider
network/spec/unit/puppet/provider/network_config
network/spec/unit/puppet/provider/network_config/network_scripts.rb
network/spec/unit/puppet/provider/network_interface
network/spec/unit/puppet/provider/network_interface/ip.rb
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Patrick Mohr
2011-May-17 07:53 UTC
Re: [Puppet Users] Plugins don''t work the way I think they do?
On Mon, May 16, 2011 at 5:04 PM, Aaron Grewell <aaron.grewell@gmail.com>wrote:> Hi all, > I''m trying to configure a set of network interfaces, so I downloaded the > puppet-network module from the module forge. I enabled plugin sync per > http://docs.puppetlabs.com/guides/plugins_in_modules.htm and added the > module to my module path, but I''m getting an ''invalid resource type'' error > indicating that the custom type included in the module isn''t found. Can you > help me figure out what I''ve missed? > > Puppet: > puppet --version > 2.6.6 > > The error: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type network_config at > /usr/share/puppet/environments/testing/modules/cluster/manifests/testcluster1.pp:35 > > >Basically, Puppet has two parts. The Type, which must be used during catalog compiliation (usually done on the server), and on the client. The provider uses your type to do all the useful stuff on the client. You''re probably getting this error because the server can''t find the type when it tries to compile the catalog. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Aaron Grewell
2011-May-17 15:39 UTC
Re: [Puppet Users] Plugins don''t work the way I think they do?
The Type and Provider are both in the network module, which is in my module
path. I''ve performed an ''include network'' from the
cluster class which is
where I''m trying to use them. Just for grins, I also tried copying the
entire lib/puppet structure from the network module to the cluster module so
the custom type & provider information would be local to the cluster
module. This didn''t work either. What else should I check?
### From Server puppet.conf
# cat /etc/puppet/puppet.conf
[main]
pluginsync = true
### From Client puppet.conf
# cat /etc/puppet/puppet.conf
[main]
pluginsync = true
### The directory structure containing the custom type & provider
/usr/share/puppet/environments/testing/modules/network/lib/puppet
# tree -fi
.
./provider
./provider/network_config
./provider/network_config/interfaces.rb
./provider/network_config/network_scripts.rb
./provider/network_interface
./provider/network_interface/ip.rb
./type
./type/network_config.rb
./type/network_interface.rb
On Tue, May 17, 2011 at 12:53 AM, Patrick Mohr <kc7zzv@gmail.com> wrote:
>
>
> On Mon, May 16, 2011 at 5:04 PM, Aaron Grewell
<aaron.grewell@gmail.com>wrote:
>
>> Hi all,
>> I''m trying to configure a set of network interfaces, so I
downloaded the
>> puppet-network module from the module forge. I enabled plugin sync per
>> http://docs.puppetlabs.com/guides/plugins_in_modules.htm and added the
>> module to my module path, but I''m getting an ''invalid
resource type'' error
>> indicating that the custom type included in the module isn''t
found. Can you
>> help me figure out what I''ve missed?
>>
>> Puppet:
>> puppet --version
>> 2.6.6
>>
>> The error:
>> err: Could not retrieve catalog from remote server: Error 400 on
SERVER:
>> Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid
>> resource type network_config at
>>
/usr/share/puppet/environments/testing/modules/cluster/manifests/testcluster1.pp:35
>>
>>
>>
> Basically, Puppet has two parts. The Type, which must be used during
> catalog compiliation (usually done on the server), and on the client. The
> provider uses your type to do all the useful stuff on the client.
You''re
> probably getting this error because the server can''t find the type
when it
> tries to compile the catalog.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.