Foreman Environment

Hi,
I was wondering if i create a new environment in foreman, will this setup
the environment in puppet (puppet.conf & /etc/puppet/environments).

If so my current setup does not do this? Any advice on how to fix?

Thanks,
Alan

For me worked it, to define and create the new env under
/etc/puppet/enviroment/XXXX.
Than import into foreman and presto, there was the new env and all the
classes which I have in their. Quite nice to build new env's.

Greetings Andreas

No, Foreman itself doesn't modify machines, it only provides data to Puppet
and Kickstart/Preseed for making such changes.

You would need to create the new environment yourself, either by hand, or
through Puppet (our "puppet-puppet"[1] module has a class parameter for
this, for example)

Once the new enviornment exists you can import it into Foreman as normal
with the Import button on the Puppet Classes page.

HTH,
Greg

[1]GitHub - theforeman/puppet-puppet: Puppet module for Puppet client and server

··· On 25 September 2013 08:29, Alan Sergeant wrote:

Hi,
I was wondering if i create a new environment in foreman, will this setup
the environment in puppet (puppet.conf & /etc/puppet/environments).

If so my current setup does not do this? Any advice on how to fix?

If I recall correctly, creating the /etc/puppet/environment/XXXX directory
is not sufficient by itself. You must add the environment to the puppet
master config and it also must have at least one module in it's module
path. Smart-Proxy will not import an environment that has no classes.

··· On Wed, Sep 25, 2013 at 9:09 AM, Uhltak Therestismysecret < uhltak@googlemail.com> wrote:

For me worked it, to define and create the new env under
/etc/puppet/enviroment/XXXX.
Than import into foreman and presto, there was the new env and all the
classes which I have in their. Quite nice to build new env’s.

Greetings Andreas


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton
300 College Park
Dayton, Ohio 45469-1530
(937) 229-5088
salderman1@udayton.edu

“We are not some casual and meaningless product of evolution. Each of us
is the result of a thought of God. Each of us is willed. Each of us is
loved. Each of us is necessary.”
- BXVI