Skip to content

Commit

Permalink
Merge pull request #459 from monkey670/improvement/windows_paths
Browse files Browse the repository at this point in the history
Change allow for spaces in the path, Add extra_options to the win agent
  • Loading branch information
bastelfreak committed Jan 2, 2019
2 parents 357f113 + d871549 commit 09449a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/windows_service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$app_dir = regsubst($consul::bin_dir, '\/', '\\', 'G')
$app_exec = "${app_dir}\\consul.exe"
$agent_args = regsubst($consul::config_dir, '\/', '\\', 'G')
$app_args = "agent -config-dir=${agent_args}"
$app_args = "agent -config-dir='${agent_args}' ${consul::extra_options}"
$app_log_path = "${app_dir}\\logs"
$app_log_file = 'consul.log'
$app_log = "${app_log_path}//${app_log_file}"
Expand Down Expand Up @@ -45,7 +45,7 @@
}
-> exec { 'consul_service_set_parameters':
cwd => $consul::bin_dir,
command => "${consul::bin_dir}/set_service_parameters.ps1",
command => "& '${consul::bin_dir}/set_service_parameters.ps1'",
refreshonly => true,
logoutput => true,
provider => 'powershell',
Expand Down

0 comments on commit 09449a4

Please sign in to comment.