-
Notifications
You must be signed in to change notification settings - Fork 193
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
Remove classfile puppet.conf setting, update for PE windows #56
Remove classfile puppet.conf setting, update for PE windows #56
Conversation
This commit adds the puppet.conf classfile setting to the list of settings to be reset during agent ugprade. This is needed primarily for PE users as the path to that file was set to a different directory at install time. With the new AIO agent, that file location has changed. To bring things closer to parity and to continue configuring PE users mcollective with mco inventory support, `classfile` is no longer being managed at install time in PE. This commit brings it full circle by essentially undoing PE's previous one-time configuration of the `classfile` setting.
Previous to this commit, the windows agent upgrade code would always use the latest agent version available. In PE, the agent version should be tied to the master's. However Windows does not have a curl like function in powershell v2 that supports self signed certificates. This commit overrides the source url if not specified and the user is in a PE environment to use the PE download url, specifing the agent version, sourced from the compiling master.
Ping @cyberious @jpartlow |
👍 |
@@ -12,8 +12,17 @@ | |||
default => $::puppet_agent::arch | |||
} | |||
|
|||
if $::puppet_agent::is_pe { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So crazy question, once someone is on the AIO agent and uses this for the next upgrade...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ferventcoder I think this line is handling that, albeit in a somewhat roundabout way: https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/params.pp#L13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not explicitly supported, we'll have to verify when we enable running on Puppet 4 agents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Remove classfile puppet.conf setting, update for PE windows
This PR contains two fixes for PE users:
The first is reseting the
classfile
puppet.conf setting for mco inventory. The second is specifying the agent version to that of the compiling master instead of latest.