Are both of the .pp files being imported in site.pp / init.pp? -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community
On Thu, Jun 30, 2011 at 5:19 PM, brijesh <bridgepa...@gmail.com> wrote: > Hi > > I have been trying to use class dependency and had no luck so far. > following are the two classes i am trying to use > > [root@puppet]#cat libreoffice.pp > > class libreoffice { > > case $hostname { > "foo": { package { "libreoffice": ensure => present, require => > Class["foo1"] } } > } > } > > [root@puppet]#cat foo.pp > > class foo1 { > package { "openoffice.org-core": > ensure => absent, > } > } > > When i run puppetd on client i get the error message > Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find class foo1 at /etc/puppet/manifests/classes/ > libreoffice.pp:18 on node > > Do i need to do anything else in order to use require => Class? > > Any help would be appreciated > > Thanks > > Brijesh > > > > Do i need > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.