Windows MSI Package With Multiple install_options

82 views
Skip to first unread message

Scott Vieth

unread,
Mar 7, 2014, 12:31:28 PM3/7/14
to puppet...@googlegroups.com
Hello all, 

I am looking to do an installation of Splunk Forwarder, which requires multiple install_options flags to be passed through. It's also required to be a quiet install using the /quiet flag, but I believe that is passed in automatically. The code I have crafted looks like this: 


package { 'splunkforwarder-6.0-182611-x64-release':
ensure => installed,
provider => 'windows',
source => 'C:\Installs\splunkforwarder-6.0-182611-x64-release.msi',
install_options => {'AGREETOLICENSE => 'YES'}, {'LOGIN_USERNAME' => 'cs\splunk'}, {'LOGIN_PASSWORD' => '5plunkU53r!'}, {'RECEIVING_INDEXER' => 'puppet.cs.mgmt:9997'}, {'WINEVENTLOG_SEC_ENABLE' => 1}, {'WINEVENTLOG_SYS_ENABLE' => 1},
}
}

There is a file process above this with copies the file locally, that is working ok. Just need to see where my syntax is wrong for having multiple install flags like we do above, I feel like this is off somewhere but I'm not sure where. 

Thanks!

Rob Reynolds

unread,
Mar 7, 2014, 2:36:35 PM3/7/14
to puppet...@googlegroups.com
What do you get when you run with --debug --trace --verbose? What version of puppet?


On Fri, Mar 7, 2014 at 9:31 AM, Scott Vieth <sav...@sav2880.net> wrote:
Hello all, 

I am looking to do an installation of Splunk Forwarder, which requires multiple install_options flags to be passed through. It's also required to be a quiet install using the /quiet flag, but I believe that is passed in automatically. The code I have crafted looks like this: 


package { 'splunkforwarder-6.0-182611-x64-release':
ensure => installed,
provider => 'windows',
source => 'C:\Installs\splunkforwarder-6.0-182611-x64-release.msi',
install_options => {'AGREETOLICENSE => 'YES'}, {'LOGIN_USERNAME' => 'cs\splunk'}, {'LOGIN_PASSWORD' => 'redacted!'}, {'RECEIVING_INDEXER' => 'puppet.cs.mgmt:9997'}, {'WINEVENTLOG_SEC_ENABLE' => 1}, {'WINEVENTLOG_SYS_ENABLE' => 1},
}
}

Perhaps the 1's should also be passed with single quotes.



There is a file process above this with copies the file locally, that is working ok. Just need to see where my syntax is wrong for having multiple install flags like we do above, I feel like this is off somewhere but I'm not sure where. 

Thanks!

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0a3c9f4b-cdd4-4c55-8202-233f48f1c016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco - http://bit.ly/pupconf14
Register now and save $350!

Reply all
Reply to author
Forward
0 new messages