Ask Your Question

Revision history [back]

Hello,

try to pass the options directly, and in your case as a hash

package {'mysql': 
  ensure          => installed, 
  provider        => 'chocolatey', 
  install_options =>  {  '/INSTALLDIR' => 'C:\Program Files' },
} 

service { 'mysql': 
  ensure  => true, 
  enable  => true, 
  require => Package['mysql'], 
}

Hope this helps,