Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
puppet-agent 6.21.0
-
None
-
Night's Watch
-
3
-
NW - 2021-04-28
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
The newly added PUPPET_SERVER MSI install property doesn't seem to work:
C:\> cmd /c start /w msiexec /qn /i http://downloads.puppetlabs.com/windows/puppet6/puppet-agent-6.21.1-x64.msi PUPPET_SERVER=brisk-pop.delivery.puppetlabs.net
|
C:\> type C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf
|
type C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf
|
[main]
|
server=puppet
|
autoflush=true
|
manage_internal_file_permissions=false
|
Using PUPPET_MASTER_SERVER does work. In looking at the wix files it seems some of the custom actions and sequencing for the new property is missing some steps:
$ git --no-pager grep -e PUPPET_SERVER | grep -v PUPPET_SERVER_PORT
|
resources/windows/wix/customactions.wxs.erb: <!-- PUPPET_SERVER -->
|
resources/windows/wix/customactions.wxs.erb: Property="CMDLINE_PUPPET_SERVER"
|
resources/windows/wix/customactions.wxs.erb: Value="[PUPPET_SERVER]"
|
resources/windows/wix/customactions.wxs.erb: Value="[CMDLINE_PUPPET_SERVER]"
|
resources/windows/wix/sequences.wxs.erb: CMDLINE_PUPPET_SERVER
|
The old setting has many more:
$ git --no-pager grep PUPPET_MASTER_SERVER
|
resources/windows/wix/appdatafiles.wxs: Key="server" Value="[PUPPET_MASTER_SERVER]"
|
resources/windows/wix/customactions.wxs.erb: SetPropertyFromIni "server", "INI_PUPPET_MASTER_SERVER", iniFileText
|
resources/windows/wix/customactions.wxs.erb: Property="PUPPET_MASTER_SERVER"
|
resources/windows/wix/customactions.wxs.erb: <!-- PUPPET_MASTER_SERVER -->
|
resources/windows/wix/customactions.wxs.erb: Property="PUPPET_MASTER_SERVER"
|
resources/windows/wix/customactions.wxs.erb: Value="[INI_PUPPET_MASTER_SERVER]"
|
resources/windows/wix/customactions.wxs.erb: Property="CMDLINE_PUPPET_MASTER_SERVER"
|
resources/windows/wix/customactions.wxs.erb: Value="[PUPPET_MASTER_SERVER]"
|
resources/windows/wix/customactions.wxs.erb: Property="PUPPET_MASTER_SERVER"
|
resources/windows/wix/customactions.wxs.erb: Value="[CMDLINE_PUPPET_MASTER_SERVER]"
|
resources/windows/wix/customactions.wxs.erb: Property="PUPPET_MASTER_SERVER"
|
resources/windows/wix/properties.wxs.erb: <Property Id="PUPPET_MASTER_SERVER">
|
resources/windows/wix/registryEntries.wxs.erb: Value="[PUPPET_MASTER_SERVER]" />
|
resources/windows/wix/sequences.wxs.erb: <!-- PUPPET_MASTER_SERVER -->
|
resources/windows/wix/sequences.wxs.erb: INI_PUPPET_MASTER_SERVER
|
resources/windows/wix/sequences.wxs.erb: CMDLINE_PUPPET_MASTER_SERVER
|
resources/windows/wix/sequences.wxs.erb: PUPPET_MASTER_SERVER=""
|
resources/windows/wix/sequences.wxs.erb: <!-- PUPPET_MASTER_SERVER -->
|
resources/windows/wix/sequences.wxs.erb: INI_PUPPET_MASTER_SERVER
|
resources/windows/wix/sequences.wxs.erb: CMDLINE_PUPPET_MASTER_SERVER
|
resources/windows/wix/sequences.wxs.erb: PUPPET_MASTER_SERVER=""
|
resources/windows/wix/ui/PuppetInstallDirDlg.wxs: Text="[PUPPET_MASTER_SERVER]"
|
resources/windows/wix/ui/PuppetInstallDirDlg.wxs: Property="PUPPET_MASTER_SERVER" />
|