-
Notifications
You must be signed in to change notification settings - Fork 33
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
Groups entries not being created on first/automatic puppet run #66
Comments
Are you sure that the error actually relates to this module? Is your environment correctly configured on the node? Does automatic mode fetch Just to have complete information, which distribution and Puppet version do you use? I'm not sure that I'll be able to replicate such error. Automated tests are able to configure accounts in a single run on clean system (currently tested on Debian and CentOS). |
Hi, We use Puppet Enterprise 2016.5.1 and this issue I have been observing for at least 6 months on three different versions of puppet. The problem exist on many clients. Also, out of curiosity why is the module adding username to group that user has defined as default
|
Which OS do you use? How do you provision the OS? Is it possible that some settings are dependent on environment variables that are being initialized after login?
You're right, that shouldn't be necessary, I'm gonna look at that. |
Redhat 7.2 and 7.3. Latest PE agent. The behaviour is weird the group actions are never executed, doesn't matter how many times puppet agent run ( as a service/scheduled run ), other additions to manifest will be executed. The only thing that help to setup groups is run puppet agent manually. Re, the user setup, that be fantastic. Thanks! |
Hey,
but that didn't fix it. On debugging side of this, the run which fails never lists gpasswd, there's never any action around that ( i'm using the latest gpasswd ). In the manual run which is always succesful (using The scheme that appers to make the issue better is if i login to the box(attaching to the console helps?). Don't even have to execute puppet, enough I restart machine and on next agent run the policy will be applied correctly. If lets say I had restart in bootstrap script done after puppet execution that won't help, next boot and it still won't apply policy. I think this is weird problem with Redhat and puppet agent. |
Good, just one more thing. Do you have some special settings in PAM configuration is loaded upon login, so that might explain why is login needed. The configuration |
I was suspecting that maybe our CIS module is forcing something so I've created another testing box without it. Same result, the users are not added to groups. Also correction to the above, when puppet agent is run through bootstrap script, then restart of the box is executed as part of bootstrap, then on next agent run when machine is back users are added to the group ( and I didn't have to login ). So I guess that will be my workaround for now. |
Ok, it seems to me that the problem is related either to the OS or Puppet itself. Is it ok if we close this issue as it can't be fixed within this module? |
I think I've discovered what's happening here. Here were the steps I took:
9.a. First, The
9.b. But support for the
Conclusions:
As it stands, adding Note: I'm not sure if the supported |
@TheHob Thanks for your comments! Regarding the conclusion 1. it's quite similar issue as #71. I agree, the dependency should be mentioned. In order to address #67 I'm considering moving logic from Ad 2. I'm not aware that we could anyhow influence Puppet's cache. Behavior might differ between Puppet versions. Ad 3. Interesting proposal, I think it's worthy trying at least. It's quite problematic that no error or warning is shown when |
@deric Thanks for the quick response. I'll answer inline.
|
I opened a ticket for the puppet agent question. It should be publicly accessible. |
@TheHob Just a quick update, in 1.6 branch I've switched to
which AFAIK doesn't have equivalent in Regarding this issue, I'm closing it as there's not much we can do about it. |
Hi,
I'm using 1.5.1 version of the module found at forge. We've been using the module since version 1.3.3 and throughout the same problem has been present. The user details are not populated into listed groups. The only way for this to work is to logon to the box and manually run
puppet agent -t
, somehow standard interval runs will not execute correctly. The outcome is that users are not added to wheel group and whilst we disable standard admin users on box we loose admin access to the box.Our setup
In hiera:
First automatic puppet run, details found:
Then doesn't matter how many times the puppet agent run through standard interval nothing will change. Here's log of such run from PE server:
When I login to the box manually and run puppet I get correct action:
The text was updated successfully, but these errors were encountered: