yes i  have *.pp in my site.pp file but adding include foo1 fixed the
issue.

On Jul 1, 3:02 pm, brijesh <bridgepa...@gmail.com> wrote:
> thanks
> that  worked  i didn't realise i need to include it first.
>
> Brijesh
>
> On Jul 1, 1:18 pm, vagn scott <vagnsc...@gmail.com> wrote:
>
> > you also have to have a
>
> > include foo1
>
> > somewhere.
>
> > Note that your require is a dependency,
> > not an instantiation.  require just says
> > that foo1 has to be installed first,
> > before libreoffice package can be installed.
>
> > --
> > vagn
>
> > class libreoffice {
>
> >          case $hostname {
> >                  "foo": {
>
> >                          include foo1
>
> >                          package { "libreoffice":
> >                                  ensure => present,
> >                                  require => Class["foo1"]
> >                          }
> >                  }
> >          }
>
> > }

-- 
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.

Reply via email to