nodes set to environment 'none'

74 views
Skip to first unread message

Tim Dunphy

unread,
Sep 20, 2014, 5:56:43 PM9/20/14
to puppet...@googlegroups.com
Hey all,


 For some reason my client nodes are being set to an environment called 'none'. This causes an error in puppet runs becuase the pupet server doesn't recognize an environment called 'none'. The environment I want them to use is called 'Production'.

This is the error that I'm getting on puppet runs

Error: /Stage[main]/Php::Configure/File[/etc/php.ini]: Could not evaluate: Could not retrieve information from environment none source(s) puppet:///modules/php/php.ini
Error: /Stage[main]/Lumberjack::Config/File[/etc/logstash/lumberjack.conf]: Could not evaluate: Could not retrieve information from environment none source(s) puppet:///modules/lumberjack/lumberjack.conf

 I'm on puppet 3.7 on client and server

[root@ops:~] #puppet --version
3.7.0

My puppet conf:

[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
    privatekeydir = $ssldir/private_keys { group = service }
    hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
    autosign       = $confdir/autosign.conf { mode = 664 }

[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    default_schedules = false
    report        = true
    pluginsync    = false
    masterport    = 8140
    environment   = production
    certname      = puppet.mydomain.com
    server        = puppet.mydomain.com
    listen        = false
    splay         = false
    runinterval   = 1800
    noop          = false
    show_diff     = false
    configtimeout = 120

[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       = puppet.mydomain.com
[development]
    modulepath     = /etc/puppet/environments/development/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
    config_version =
[production]
    modulepath     = /etc/puppet/environments/production/modules
    config_version =

Could some one please let me know how I can get the client nodes to register under the correct environment? 

Thanks
Tim

Romain P

unread,
Mar 30, 2015, 2:06:57 PM3/30/15
to puppet...@googlegroups.com
Hello Tim,

Do you find a solution ?
I have the same problem.

Cheers
Romain

Felix Frank

unread,
Apr 1, 2015, 1:20:01 AM4/1/15
to puppet...@googlegroups.com
On 03/30/2015 02:15 PM, Romain P wrote:
> Hello Tim,
>
> Do you find a solution ?
> I have the same problem.
>
> Cheers
> Romain

Hi,

looks like Tim is using the Foreman. Are you?

In Tim's case, I suspect that this is a Foreman issue, or at least
related to its integration with Puppet.

HTH,
Felix

Tim Dunphy

unread,
Apr 1, 2015, 1:57:28 AM4/1/15
to puppet...@googlegroups.com
Hey guys,

Yeah, that's correct. I'm using the Foreman in my setup. I actually did a reinstall of the foreman and that got rid of this issue. So I'm sorry if that's not very informative. But that's how I solved it.

Thanks,
Tim

Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/551B47AE.80603%40Alumni.TU-Berlin.de.
> For more options, visit https://groups.google.com/d/optout.

Romain

unread,
Apr 1, 2015, 12:18:48 PM4/1/15
to puppet...@googlegroups.com
Ok thank you!

You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/U-ksEPTROcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/B85979C1-AF1B-49D2-BDED-600A58E65467%40gmail.com.
Reply all
Reply to author
Forward
0 new messages