Actually hold on.. am not sure what you are asking me to do.

Using this Exec works fine for me:

$splunk_home = "C:\\Splunk"
$splunk_pkg_source = "C:\\TEMP\\splunkforwarder-4.2.4-110225-x86-release.msi"
$splunk_install_log = "C:\\TEMP\\splunk_install.log"

exec { "install_splunk":
            command => "msiexec.exe /i $splunk_pkg_source
LAUNCHSPLUNK=0 AGREETOLICENSE=Yes INSTALLDIR=$splunk_home
LOGON_USERNAME=$splunk_home /lv $splunk_install_log /quiet",
        timeout => 120,
        creates => "$splunk_home\\bin\\splunk.exe",
        notify => Exec["reset_password"],
    }

The Package resource indeed just says it does not like
"install_options" parameter!

Thanks,
Mohamed.
On Fri, Nov 18, 2011 at 6:33 PM, Josh Cooper <j...@puppetlabs.com> wrote:
> Hi Mohamed,
> On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi <lrh...@gmail.com> wrote:
>>
>> C:\Users\ml623>puppet --version
>> 2.7.7
>>
>>
>> Puppet complains about a package resource I am trying to use saying:
>>
>>  Invalid parameter install_options
>>
>> The resource is defined as:
>>
>> package { "splunk":
>>     name => $gu_splunk::client::splunk_package,
>>     provider => 'msi',
>>     ensure => installed,
>>     source => 'C:\\TEMP\\splunk-4.2.4-110225-x86-release.msi',
>>     install_options => { 'INSTALLDIR' => 'C:\\splunk' },
>>     notify => Exec["enable_autostart"],
>> }
>
> I was able to install the same version of splunk on Windows 2003 (x64):
> <pre>
> C:\> puppet apply z:\work\demo\splunk.pp --debug --verbose --trace
> ...
> debug: Package[splunk](provider=msi): Executing 'msiexec.exe /qn /norestart
> /i C:\\TEST\\splunk-4.2.4-110225-x64-release.msi INSTALLDIR=C:\\splunk'
> notice: /Stage[main]//Package[splunk]/ensure: created
> ...
> </pre>
> Can you use the same command above when installing and let me know what the
> error is?
> What's strange is that puppet is reporting install_options is an invalid
> parameter. It is almost as though you have an older
> lib/puppet/type/package.rb and/or lib/puppet/provider/package/msi.rb.
> Josh
> --
> Josh Cooper
> Developer, Puppet Labs
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to