> I see, well thanks for the info. I was hoping there was an available
> solution, but as you point out, you've rolled your own and it's not
> difficult.
>
> So what are you doing to register the smart proxies? I was thinking it
> might be possible to extract the oauth details as parameters or something
> so that the smart proxy could be registered like it is with the
> foreman-installer…except automatically - since Foreman's doing the
> provisioning and Puppet's doing the config.
>
It's worth knowing that the installer modules are pure puppet and can be
imported into an existing master to continue to maintain the infra once the
installer has done it's job. I do this, using the puppet-puppet,
puppet-foreman, and puppet-foreman_proxy modules. Further, the proxy module
contains code to register the proxy in Foreman, so that should solve your
problem.
Anyway, one more question… I've noticed that it seems like Foreman can
> only import classes from one puppet system. I've not done this before, so
> maybe I'm off track. In my lab, I have
> foreman+proxy+puppet+puppetca+dhcp+dns+tftp on one host, and proxy+puppet
> on another. I've easily setup new hosts to be provisioned and use the 2nd
> puppet server. What I run into is that Foreman seems to be confused about
> which puppet server provides which environments, classes and smart class
> params. Does foreman not associate those puppet master details
> individually with the puppet master hosts across the smart proxies?
>
Correct, Foreman makes the assumption that all masters have access to the
same set of classes.
> For example, if I put class foo on both servers and class bar only on the
> Foreman server, then if I want to use class bar at all I have to import
> from Foreman. If I import from the other puppet, I'm asked to confirm
> removing class bar. Even more interesting is when I try to use smart class
> parameters, because these apparently are specific to each puppet master.
> On the smart class parameters page, if I search for class foo, then I see
> two links for each of foo's params. That seems pretty difficult to manage
> as the environment grows across the enterprise and many puppet masters are
> added.
>
> I am missing a piece of the puzzle here?
>
It's not proxy related, Foreman simply assumes the same puppet code is on
all masters. If you go to the effort of using different environments on
each master, then you should be ok as the class parameters are stored per
environment - there's a filter at the top of the tab.
···
On 28 January 2016 at 22:04, Sean A wrote: