Foreman ENC and site.pp in parallel

Dear Users,
probably one silly question.
Is it possible to use the classic puppet manifests site.pp and node.pp and
inside Foreman at the same time?
Even better is it possible to give to the users the possibility to chose
which kind of ENC to use?

Thank you.
Cheers.

Luca

Ok it was a silly question.
already solved.

Il giorno venerdì 20 febbraio 2015 09:07:19 UTC+1, Luca Mazzaferro ha
scritto:

··· > > Dear Users, > probably one silly question. > Is it possible to use the classic puppet manifests site.pp and node.pp and > inside Foreman at the same time? > Even better is it possible to give to the users the possibility to chose > which kind of ENC to use? > > Thank you. > Cheers. > > Luca >

Site.pp isn't an ENC, so the idea of choice doesn't really apply. The
data coming from the ENC will be merged with any existing site.pp
data, and there are specific things you need to know about that
scenario [1]. However, broadly speaking, it should work fine. Check
through the notes in that link, and then post back with more details
about your problem if you're still stuck :slight_smile:

Regards,
Greg

[1] https://docs.puppetlabs.com/guides/external_nodes.html#how-merging-works

··· On 20 February 2015 at 08:07, Luca Mazzaferro wrote: > Dear Users, > probably one silly question. > Is it possible to use the classic puppet manifests site.pp and node.pp and > inside Foreman at the same time? > Even better is it possible to give to the users the possibility to chose > which kind of ENC to use?

The puppet default "lookup order" to find classes for a node is:

  1. ENC if configured
  2. site.pp

The puppet master will treat the ENC as the authoritative source for
classification and fall back to site.pp. So yes you can have both.

··· On Friday, February 20, 2015 at 12:07:19 AM UTC-8, Luca Mazzaferro wrote: > > Dear Users, > probably one silly question. > Is it possible to use the classic puppet manifests site.pp and node.pp and > inside Foreman at the same time? > Even better is it possible to give to the users the possibility to chose > which kind of ENC to use? > > Thank you. > Cheers. > > Luca >

No sorry I did a mistake, it doesn't work.
Or site.pp or Foreman ENC is it correct?

Il giorno venerdì 20 febbraio 2015 09:21:32 UTC+1, Luca Mazzaferro ha
scritto:

··· > > Ok it was a silly question. > already solved. > > Il giorno venerdì 20 febbraio 2015 09:07:19 UTC+1, Luca Mazzaferro ha > scritto: >> >> Dear Users, >> probably one silly question. >> Is it possible to use the classic puppet manifests site.pp and node.pp >> and inside Foreman at the same time? >> Even better is it possible to give to the users the possibility to chose >> which kind of ENC to use? >> >> Thank you. >> Cheers. >> >> Luca >> >