-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Question: URL method downloads the zip file every run? #270
Comments
It should not be downloading every time. Add --debug to the run output and pipe to |
Great Tip! i was thinking in preappending timestamp to debug.. thankks! Here are some of the outpuut Jul 04 15:46:30 Debug: /Stage[main]/Consul::Install/File[/usr/local/bin/consul]: Adding autorequire relationship with File[/opt/puppet-archive/consul-0.6.4/consul] Takes 15 seconds there. Then here i added a notify previouus to the include of consul Jul 04 15:46:46 Debug: /Stage[main]/Pbis/Exec[join_domain]/unless: NetBIOS Domain Name: I will continue debugging as i dont clearly see whatactions are taking this extra time Thanks! |
Here i just commented the include that calls consul and it took much less time Jul 04 16:25:15 Debug: Executing: '/usr/bin/yum check-update' Still looking.. |
I removed the notify... how can i look deeper here? Jul 04 18:12:46 Debug: Cleanup archive /opt/puppet-archive/consul-0.6.4.zip It always stays there the longest. In the server logs, no long request. all normal times. heres the culprit but its strange Info: /Stage[main]/Consul::Install/User[consul]: Starting to evaluate the resource Will see if this is related to the thing that i am using pam with ldap.. |
Yeps. Thats the bug. I would say in User resource. It does the check for the entire ldap so it takes almost 60 seconds to eval. |
Really dunno how to avoid this. If you have any idea i really appreciate. Cheers! |
If you know you want puppet to be using an attribute in a particular way, you can set a global resource default: User {
forcelocal => true
} https://docs.puppet.com/puppet/latest/reference/lang_defaults.html Or you could tell the module to not manage the user: And make the user manually in ldap? |
Thanks for the answer! I already did thhe default in the main site.pp but as i mentioned, there is a bug in puppet that doesnt honour it. So, the user is created and its working all ok. But the catalog now takes 70seconds instead of 5s. Whats weird is that, i manage local users in other modules and doesnt seem to be affected. I was thinking in managing it ouutside consul as you suggest. Will see if in my users moduule a create the consul user and see what happens. Thanks! You can close this if you want or wait till i test this and post it here so it appears the solution. |
Well, as a workaorund i set a resource user {'consul': ensure => present} in one of my profiles and set manage_user to false in consul module. This makes the catalog to apply in 5 seconds, instead of 70. |
That sounds like an OK solution. The only possible issue I could think of is parse-ordering issue where the resource defaults are not taking precedence before |
Hi guys!
Every run of consul module makes the total run of puppet increase by 60 seconds. I assume that it it becasue it downloads the zip every time. Could this be? Thanks!
The text was updated successfully, but these errors were encountered: