@@ -20,6 +20,11 @@ New-Variable -Name ca_certificate_file -Option Constant -Value `
2020New-Variable - Name enabled_plugins_file - Option Constant - Value `
2121 (Resolve-Path - LiteralPath (Join-Path - Path $ci_windows_dir - ChildPath ' enabled_plugins' ))
2222
23+ New-Variable - Name advanced_config_file - Option Constant - Value `
24+ (Resolve-Path - LiteralPath (Join-Path - Path $ci_windows_dir - ChildPath ' advanced.config' ))
25+
26+
27+
2328Write-Host " [INFO] importing CA cert from '$ca_certificate_file '"
2429Import-Certificate - Verbose - CertStoreLocation Cert:\LocalMachine\Root - FilePath $ca_certificate_file
2530
@@ -145,6 +150,7 @@ $rabbitmq_appdata_dir = Join-Path -Path $env:AppData -ChildPath 'RabbitMQ'
145150New-Item - Path $rabbitmq_appdata_dir - ItemType Directory
146151$rabbitmq_conf_file = Join-Path - Path $rabbitmq_appdata_dir - ChildPath ' rabbitmq.conf'
147152$rabbitmq_enabled_plugins_file = Join-Path - Path $rabbitmq_appdata_dir - ChildPath ' enabled_plugins'
153+ $rabbitmq_advanced_config_file = Join-Path - Path $rabbitmq_appdata_dir - ChildPath ' advanced.config'
148154
149155Write-Host " [INFO] Creating RabbitMQ configuration file in '$rabbitmq_appdata_dir '"
150156Get-Content $rabbitmq_conf_in_file | % { $_ -replace ' @@CERTS_DIR@@' , $certs_dir } | % { $_ -replace ' \\' , ' /' } | Set-Content - LiteralPath $rabbitmq_conf_file
@@ -153,6 +159,10 @@ Get-Content $rabbitmq_conf_file
153159Write-Host " [INFO] Copying '$enabled_plugins_file ' to '$rabbitmq_enabled_plugins_file '"
154160Copy-Item - Verbose - Force - LiteralPath $enabled_plugins_file - Destination $rabbitmq_enabled_plugins_file
155161
162+ Write-Host " [INFO] Copying '$advanced_config_file ' to '$rabbitmq_advanced_config_file '"
163+ Copy-Item - Verbose - Force - LiteralPath $advanced_config_file - Destination $rabbitmq_advanced_config_file
164+
165+
156166Write-Host ' [INFO] Creating Erlang cookie files...'
157167
158168function Set-ErlangCookie
0 commit comments