Mohamed Lrhazi
2011-Nov-18 04:10 UTC
[Puppet Users] msi package provider: Invalid parameter install_options
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"],
}
Thanks a lot,
Mohamed.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Josh Cooper
2011-Nov-18 23:33 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
Hi Mohamed, On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi <lrhazi@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 00:20 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
I''ll try the msi args you have... my puppet and facter both directly from github! On Fri, Nov 18, 2011 at 6:33 PM, Josh Cooper <josh@puppetlabs.com> wrote:> Hi Mohamed, > On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi <lrhazi@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 00:24 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
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 <josh@puppetlabs.com>
wrote:> Hi Mohamed,
> On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi <lrhazi@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Josh Cooper
2011-Nov-19 00:30 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
Hi Mohamed, On Fri, Nov 18, 2011 at 4:24 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> Actually hold on.. am not sure what you are asking me to do. > >Can you run this command and sent the output back: C:\> puppet apply <manifest> --debug --verbose --trace Thanks, 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 01:05 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
Sorry I have not used apply before... I tried this, but does seem to be right: http://paste.ubuntu.com/742820/ On Fri, Nov 18, 2011 at 7:30 PM, Josh Cooper <josh@puppetlabs.com> wrote:> Hi Mohamed, > On Fri, Nov 18, 2011 at 4:24 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >> >> Actually hold on.. am not sure what you are asking me to do. >> > > Can you run this command and sent the output back: > C:\> puppet apply <manifest> --debug --verbose --trace > Thanks, > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 01:29 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
OK. I figured how to use "apply", but it would not reproduce the problem. the msiexec actually executes! This module though, http://paste.ubuntu.com/742840/, causes the error: http://paste.ubuntu.com/742841/ Thanks a lot, Mohamed. On Fri, Nov 18, 2011 at 8:05 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> Sorry I have not used apply before... I tried this, but does seem to > be right: http://paste.ubuntu.com/742820/ > > > > On Fri, Nov 18, 2011 at 7:30 PM, Josh Cooper <josh@puppetlabs.com> wrote: >> Hi Mohamed, >> On Fri, Nov 18, 2011 at 4:24 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >>> >>> Actually hold on.. am not sure what you are asking me to do. >>> >> >> Can you run this command and sent the output back: >> C:\> puppet apply <manifest> --debug --verbose --trace >> Thanks, >> 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2011-Nov-19 02:03 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
On Fri, Nov 18, 2011 at 8:29 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> OK. I figured how to use "apply", but it would not reproduce the > problem. the msiexec actually executes! > > This module though, http://paste.ubuntu.com/742840/, causes the error: > http://paste.ubuntu.com/742841/What''s the version of Puppet on your master? Nan -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 02:05 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
I just thought about that... It is: 2.7.1 On Fri, Nov 18, 2011 at 9:03 PM, Nan Liu <nan@puppetlabs.com> wrote:> On Fri, Nov 18, 2011 at 8:29 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >> OK. I figured how to use "apply", but it would not reproduce the >> problem. the msiexec actually executes! >> >> This module though, http://paste.ubuntu.com/742840/, causes the error: >> http://paste.ubuntu.com/742841/ > > What''s the version of Puppet on your master? > > Nan > > -- > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2011-Nov-19 02:18 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
MSI wasn''t added until 2.7.4, so error occurs during compilation on master, and you want the master version >= agent version. Nan On Fri, Nov 18, 2011 at 9:05 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> I just thought about that... It is: 2.7.1 > > > On Fri, Nov 18, 2011 at 9:03 PM, Nan Liu <nan@puppetlabs.com> wrote: >> On Fri, Nov 18, 2011 at 8:29 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >>> OK. I figured how to use "apply", but it would not reproduce the >>> problem. the msiexec actually executes! >>> >>> This module though, http://paste.ubuntu.com/742840/, causes the error: >>> http://paste.ubuntu.com/742841/ >> >> What''s the version of Puppet on your master? >> >> Nan >> >> -- >> 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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Nov-19 02:21 UTC
Re: [Puppet Users] msi package provider: Invalid parameter install_options
Cool. Thanks guys. On Fri, Nov 18, 2011 at 9:18 PM, Nan Liu <nan@puppetlabs.com> wrote:> MSI wasn''t added until 2.7.4, so error occurs during compilation on > master, and you want the master version >= agent version. > > Nan > > On Fri, Nov 18, 2011 at 9:05 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >> I just thought about that... It is: 2.7.1 >> >> >> On Fri, Nov 18, 2011 at 9:03 PM, Nan Liu <nan@puppetlabs.com> wrote: >>> On Fri, Nov 18, 2011 at 8:29 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >>>> OK. I figured how to use "apply", but it would not reproduce the >>>> problem. the msiexec actually executes! >>>> >>>> This module though, http://paste.ubuntu.com/742840/, causes the error: >>>> http://paste.ubuntu.com/742841/ >>> >>> What''s the version of Puppet on your master? >>> >>> Nan >>> >>> -- >>> 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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.