Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment defined in hostgroup is not used by Puppet node #235

Open
Dan33l opened this issue Dec 9, 2021 · 8 comments
Open

environment defined in hostgroup is not used by Puppet node #235

Dan33l opened this issue Dec 9, 2021 · 8 comments
Assignees

Comments

@Dan33l
Copy link

Dan33l commented Dec 9, 2021

Components versions

  • Foreman version used : 3.0.1
  • OS version used on Foreman host: Ubuntu 20.04
  • OS version used on Puppet node: Ubuntu 20.04
  • Puppet version used : Pupperserver and Puppet agent (AIO package) are both 7.12

What is observed

Node does not inherit its environment from its hostgroup.

How to reproduce

  • Create a hostgroup with a defined environment different from production like customenv
  • Modify a node for using this hostgroup and click Inherit about Environement
  • use puppet agent --test on the node

What is expected

During the Puppet run the environement should be customenv and not production

Note

This was working with Foreman 2.x

@nadjaheitmann
Copy link
Collaborator

@Dan33l This should already be fixed in #220 . Which version of foreman_puppet are you using?

@ezr-ondrej
Copy link
Member

It seems it is not, because it was included in 3.0.1, right?

@Dan33l
Copy link
Author

Dan33l commented Dec 10, 2021

How can i find the version of foreman_puppet on my host ?

@Dan33l
Copy link
Author

Dan33l commented Dec 10, 2021

It looks this version is on the host:
ii ruby-foreman-puppet 1.0.5-1 all Foreman Puppet Plugin

@Dan33l
Copy link
Author

Dan33l commented Dec 10, 2021

The #220 is talking about UI. The UI permits to set an environment in HG. But the environment is not used by the agent run.

@nadjaheitmann
Copy link
Collaborator

Yeah, sorry, I initially missed the agent run part.

@ezr-ondrej
Copy link
Member

Might be related and fixed by #252, probably needs retest if the problem is still there.

@nadjaheitmann
Copy link
Collaborator

The discussion is still active: https://projects.theforeman.org/issues/36207

@Ron-Lavi Ron-Lavi self-assigned this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants