Foreman 1.5 Puppet Environments

Hi everyone,

I just updated my Foreman server to 1.5 and noticed the environment page is
always reporting zero hosts. If I click on the dev environment, for
example, it shows all the servers associated with that environment. I'm
fairly new to Foreman and Puppet so hopefully I'm just missing something
simple. Below is my puppet.conf:

[master]
autosign = $confdir/autosign.conf { mode = 664 }
reports = foreman
external_nodes = /etc/puppet/node.rb
node_terminus = exec
ca = true
ssldir = /var/lib/puppet/ssl
certname = pupperMaster
strict_variables = false
environment = dev

[dev]
modulepath =
/etc/puppet/environments/dev/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
config_version =
[prod]
modulepath =
/etc/puppet/environments/prod/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
config_version =
[sandbox]
modulepath =
/etc/puppet/environments/sandbox/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
config_version =
[sprint]
modulepath =
/etc/puppet/environments/sprint/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
config_version =

I'm also having an issue where a "production" environment is also being
created even though I don't have one specified in puppet.conf. Please see
the screenshot of both issues below.

<https://lh6.googleusercontent.com/-ZDywfHUY5us/U3GTne_7RgI/AAAAAAAAAA8/3DrU-p8Bw4k/s1600/environment.PNG>

Thanks,
Mike

I think you've found a bug - I tried switching a host to another
environment and the counter didn't update. Could you file a bug please?

http://projects.theforeman.org/projects/foreman/issues/new

··· On 13/05/14 04:40, Michael Beemer wrote: > Hi everyone, > > I just updated my Foreman server to 1.5 and noticed the environment page > is always reporting zero hosts. If I click on the dev environment, for > example, it shows all the servers associated with that environment. I'm > fairly new to Foreman and Puppet so hopefully I'm just missing something > simple.


Dominic Cleal
Red Hat Engineering

I've created a ticket for the issue.

http://projects.theforeman.org/issues/5692

Thanks,
Mike