Ask Your Question
0

And how do i make sure that this package was installed through chocolatey??

asked 2018-03-08 05:49:15 -0600

Ansi gravatar image

updated 2018-03-09 09:07:50 -0600

DarylW gravatar image

I actually installed my chocolatey and mysql all that kind of stuff in master and is working well in agent. But the issue is actually i installed mysql version 3.0.1 but in agent it is like 5.7. And my install options was program files but it was installed in program data and is running in tools. I want to know what went wrong and how can i overcome it?? And how do i make sure that this package was installed through chocolatey??

My master is ubuntu 16.04

My agent is windows 8.1

My puppet version is 3.8.5

init.pp

class mysql{
    package {'mysql':
       ensure          => installed,
       provider        => 'chocolatey',
       install_options => ['-override', '-installArgs',     '"/INSTALLDIR=""C:\Program', 'Files"""'],
    }
    service { 'mysql':
        ensure  => true,
        enable  => true,
        require => Package['mysql'],
    }
}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-09 08:28:39 -0600

helge gravatar image

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,

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-08 05:49:15 -0600

Seen: 23 times

Last updated: Mar 09