I think I was not able to present the question in right manner. I already had Puppet server running (Puppet 4). I did that with foreman-installer command. However, the foreman Puppet module was missing. It was my understanding that the Puppet module comes from foreman-installer itself. Apparently that is not the case.
I installed it with 'puppet module install theforeman-foreman' and then things started to work. The error was: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::foreman for <HOSTNAME> at /etc/puppetlabs/code/environments/production/custom/profiles/manifests/puppetserver.pp:2:3 on node <HOSTNAME> Thanks for the help everybody! On Wednesday, March 1, 2017 at 8:27:38 PM UTC+5:30, [email protected] wrote: > > > Hi all, > > With Puppet 3, the way I used to implement Puppet+foreman is to install > the foreman repository and using foreman-installer, which installed the > Puppet server. I am wondering what is the best practice of using foreman > and Puppet 4. Do you suggest installing foreman with foreman-installer or > using Puppet modules? > > Sorry if this is a vague question but I am trying to understand whether > there is any best practice recommendations on installing/maintaining > foreman with Puppet? > > Thanks, > -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
