Hi All
I've just seen a really wierd error.
I was on a host and ran
puppet agent -t
to check the puppet installs and saw
Local environment: "KT_MyOrg_qa_puppet_6" doesn't match server specified
node environment "KT_MyOrg_Infrastructure_puppet_6", switching agent to
"KT_MyOrg_Infrastructure_puppet_6".
Which is very wierd as the environment "KT_MyOrg_qa_puppet_6" was only just
added to this box's puppet.conf as part of the Finish script used for
provisioning.
Checking the properties on the host in foreman I see
Puppet Environment KT_MyOrg_qa_puppet_6
On checking the YAML against the host I see
foreman_env: KT_MyOrg_Infrastructure_puppet_6
Has anyone any ideas about this? I don't have a clue how this could even happen.
I do have ENV Environment set to true.
Regards
Martyn
Oh …
I was working with provisioning templates and somehow it ran against my
foreman server and overwrote my puppetmaster puppet.conf.
A run of foreman-installer later and we're back to normal…
I am visibly relieved.
Thanks anyway all
···
On Friday, February 24, 2017 at 4:41:27 PM UTC, Martyn Smith wrote:
>
>
> Hi All
>
> I've just seen a really wierd error.
>
> I was on a host and ran
> puppet agent -t
> to check the puppet installs and saw
>
> Local environment: "KT_MyOrg_qa_puppet_6" doesn't match server specified
> node environment "KT_MyOrg_Infrastructure_puppet_6", switching agent to
> "KT_MyOrg_Infrastructure_puppet_6".
>
> Which is very wierd as the environment "KT_MyOrg_qa_puppet_6" was only
> just added to this box's puppet.conf as part of the Finish script used for
> provisioning.
>
> Checking the properties on the host in foreman I see
> Puppet Environment KT_MyOrg_qa_puppet_6
>
> On checking the YAML against the host I see
>
> foreman_env: KT_MyOrg_Infrastructure_puppet_6
>
> Has anyone any ideas about this? I don't have a clue how this could even happen.
>
> I do have ENV Environment set to true.
>
> Regards
> Martyn
>
>