Jonathon Anderson
04/28/2022, 5:50 PMcmd
window I'm using is running as administratornatemccurdy
04/28/2022, 5:50 PMpowershell
module?
https://forge.puppet.com/modules/puppetlabs/powershellJonathon Anderson
04/28/2022, 5:50 PMSlackbot
04/28/2022, 5:51 PMnatemccurdy
04/28/2022, 5:51 PMexec
a Powershell script.
You use it by installing that module then setting provider => 'powershell'
in the exec.Jonathon Anderson
04/28/2022, 5:52 PMnatemccurdy
04/28/2022, 6:02 PMcommand => "& C:\path\to\script.ps1",
natemccurdy
04/28/2022, 6:24 PMSlackbot
04/28/2022, 6:33 PMbastelfreak
04/28/2022, 6:35 PMnwops
04/28/2022, 6:38 PMbinford2k
04/28/2022, 7:04 PMbinford2k
04/28/2022, 7:12 PMSlackbot
04/28/2022, 8:05 PMop-ct
04/28/2022, 8:08 PMbolt-project.yaml
Slackbot
04/28/2022, 8:20 PMAllahshukur Ahmadzada
04/28/2022, 8:42 PMJonathon Anderson
04/28/2022, 8:49 PMnginx;"--params: '\/installLocation:C:\Program;Files\NGINX\'"
this is my code for the install
package { 'NGINX':
ensure => '1.21.6',
name => 'nginx',
provider => 'chocolatey',
install_options => '--params "/installLocation:C:\\Program Files\\NGINX"',
}
op-ct
04/28/2022, 8:50 PMJonathon Anderson
04/28/2022, 8:51 PMSlackbot
04/28/2022, 8:51 PMJonathon Anderson
04/28/2022, 8:51 PMnatemccurdy
04/28/2022, 8:51 PMinstall_options
an array.
install_options => ['--params', '/installLocation:C:\Program Files\NGINX'],
Jonathon Anderson
04/28/2022, 8:52 PM'"/INSTALLDIR=""C:\Program', 'Files\somewhere"""'
Slackbot
04/28/2022, 8:53 PMJonathon Anderson
04/28/2022, 8:56 PMbinford2k
04/28/2022, 8:57 PMJonathon Anderson
04/28/2022, 9:03 PMJonathon Anderson
04/28/2022, 9:03 PMYorokobi
04/28/2022, 9:04 PM