You an just put a if statement directly in the top scope of the site.pp
that does this, like:

# site.pp
if $::infra == 'newinfra' {
  include newinfra_baseclass
}


On 19 June 2014 09:02, kaustubh chaudhari <kaustu...@gmail.com> wrote:

> Hi All,
>
>
> I have a existing infrastructure with win and linux systems, i am creating
> a new infrastructure with same version of win and linux systems.
>
> In this i want to do.
>
> all the server from new infrastructure should get specific set of classes
> automatically soon their certificate is accepted.
>
> I was wondering to create custom fact say infra = newinfra
>
> if this fact exist apply all the classes mentioned else do nothing.
>
> This will make sure my existing setup is not affected by configuring
> site.pp and new infra will get the class required.
>
> Is this possible, if yes, can some one refer or share an example regarding
> this ?
>
> Thanks
> -Kaustubh
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/50103f6f-30c8-4404-9627-cb622d51c89e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/50103f6f-30c8-4404-9627-cb622d51c89e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Erik Dalén

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAAzDLcMJcKnrcXAE8PjMSzgKfdgDx15tEkRB6PwxY395hwsow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to