Hi,
I''m currently evaluating puppet to replace an existing cfengine
deployment we have at work. One of the aspects I am evaluating is
interface management. Interface management is one of the aspects of
cfengine which causes us grief - the built in one is too simplistic and
(so far) file-based has been difficult to do both correctly and simply.
I have tried a site.pp file with only this content:
node "dhcp-219" {
interface { "10.1.8.219":
ensure => present,
interface => "eth0",
interface_type => "normal",
netmask => "255.255.255.0",
onboot => true,
}
}
dhcp-219# puppetd --test
err: Could not retrieve catalog: Could not find resource type interface
at /etc/puppet/manifests/site.pp:8 on node dhcp-219
warning: Not using cache on failed catalog
I know that my puppetmasterd is working (the sudo example works, for
instance), but I have tried a variety of permutations on the interface
type and all result in that error. This is a CentOS 5.2 system with
puppet 0.24.5.
I have tried to grep through the source looking for the interface type
definition to see if I could figure out what that error meant, but I
can''t find anything that looks like it defines the interface type. Has
it been removed as a feature? If not, can someone point me to an
example which should work as a starting point or to the part of the code
where it is defined? I''m not (yet) familiar with Ruby, but I am not
shy
about poking around if needed.
If needed it looks like I could construct something sufficient with
templates and the file resource type, but if I can use the interface
type that seems more elegant.
Thanks!
Sean
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Hi> I''m currently evaluating puppet to replace an existing cfengine > deployment we have at work. One of the aspects I am evaluating is > interface management. Interface management is one of the aspects of > cfengine which causes us grief - the built in one is too simplistic and > (so far) file-based has been difficult to do both correctly and simply. > > I have tried a site.pp file with only this content: > > node "dhcp-219" { > interface { "10.1.8.219": > ensure => present, > interface => "eth0", > interface_type => "normal", > netmask => "255.255.255.0", > onboot => true, > } > } > > dhcp-219# puppetd --test > err: Could not retrieve catalog: Could not find resource type interface > at /etc/puppet/manifests/site.pp:8 on node dhcp-219 > warning: Not using cache on failed catalog > > I know that my puppetmasterd is working (the sudo example works, for > instance), but I have tried a variety of permutations on the interface > type and all result in that error. This is a CentOS 5.2 system with > puppet 0.24.5. > > I have tried to grep through the source looking for the interface type > definition to see if I could figure out what that error meant, but I > can''t find anything that looks like it defines the interface type. Has > it been removed as a feature? If not, can someone point me to an > example which should work as a starting point or to the part of the code > where it is defined? I''m not (yet) familiar with Ruby, but I am not shy > about poking around if needed. > > If needed it looks like I could construct something sufficient with > templates and the file resource type, but if I can use the interface > type that seems more elegant.which system are you using? unfortunately the interface type isn''t really working. see: http://reductivelabs.com/redmine/issues/show/1128 for more infos. feel free to fix ;) greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---