Project

General

Profile

Actions

Feature #21391

open

Client's puppet.conf environment variable should be updated if the Web Interface changes the puppet environment for the Host Group

Added by Ondřej Pražák almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Initially while provisioning a system, it has an environment set based on the host group.

If we change the puppet environment, we get the following warning:

Local environment: "xxxxxxx" doesn't match server specified node environment "yyyyyyyyy", switching agent to "yyyyyyyyy".

It's expected that it's because there is a mismatch between what was originally set in /etc/puppet/puppet.conf on the client and what is currently in Foreman under the host details.
Puppet honors the new environment and applies changes accordingly, but users want the puppet.conf to reflect changes made in Foreman so there is no confusion about what environment is to be used.
If the settings are inconsistent, you don't know if you can trust the settings depending which way you check the information. It also causes confusion when validating configurations.
Suggested resolution is to use Puppet to manage puppet.conf.

Steps to reproduce:
1) provision a host with Puppet environment
2) change Puppet environment for the host in Foreman, run Puppet


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #7277: Changing environment on UI does not change puppet.confRejected08/27/2014Actions
Actions #1

Updated by Ondřej Pražák almost 7 years ago

  • Subject changed from Client's puppet.conf environment variable should be updated if the Web Interface changes the puppet environment for the Host Group to Client's puppet.conf environment variable should be updated if the Web Interface changes the puppet environment for the Host Group
  • Category changed from PuppetCA to Puppet integration
Actions #2

Updated by Marek Hulán almost 7 years ago

  • Related to Bug #7277: Changing environment on UI does not change puppet.conf added
Actions #3

Updated by Marek Hulán almost 7 years ago

Ondra, note that the same request was rejected in the past.

Actions

Also available in: Atom PDF