I'm running katello 2.2 and I have a host that everytime that the agent is
run, it changes the environment from the one I defined to production.
I've searched where it may have "harcoded" the environment, but I can't
find it. It's not in /etc/puppet/puppet.conf as suggested in some sites.
I tried unregistering the host and registering it back without success.
If I run the agent specifying the environment, it works fine.
Regards,
I have seen this reported before where the hostname being reported by the
agent was not the same as the Foreman host record.
···
On Thu, Sep 3, 2015 at 8:52 PM, Juan Pablo Lorier wrote:
Hi,
I’m running katello 2.2 and I have a host that everytime that the agent is
run, it changes the environment from the one I defined to production.
I’ve searched where it may have “harcoded” the environment, but I can’t
find it. It’s not in /etc/puppet/puppet.conf as suggested in some sites.
I tried unregistering the host and registering it back without success.
If I run the agent specifying the environment, it works fine.
Regards,
I found how to solve it. I had to set update_environment_from_facts to
false in order to avoid Katello from updating the host environment
definition.
It should be better that the puppet agent could set the local environment
to the one reported by the puppet server, but it doesn't, at least not with
the default config.
Regards.
···
El viernes, 4 de septiembre de 2015, 11:50:34 (UTC-3), Eric Helms escribió:
>
> I have seen this reported before where the hostname being reported by the
> agent was not the same as the Foreman host record.
>
> On Thu, Sep 3, 2015 at 8:52 PM, Juan Pablo Lorier > wrote:
>
>> Hi,
>>
>> I'm running katello 2.2 and I have a host that everytime that the agent
>> is run, it changes the environment from the one I defined to production.
>> I've searched where it may have "harcoded" the environment, but I can't
>> find it. It's not in /etc/puppet/puppet.conf as suggested in some sites.
>> I tried unregistering the host and registering it back without success.
>> If I run the agent specifying the environment, it works fine.
>> Regards,
>>
>> --
>> 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-user...@googlegroups.com .
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/foreman-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Eric D. Helms
> Red Hat Engineering
> Ph.D. Student - North Carolina State University
>