Re: [Puppet Users] Help with provider inheritance of Josh Cooper's Exec PowerShell Provider

2015-01-23 Thread Jim Ficarra
and lets me remove all the extraneous extra parameters I don’t need. So in this case, provider inheritance wasn’t my friend. From: Jim Ficarra Sent: Thursday, January 22, 2015 6:26 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Help with provider inheritance of Josh Cooper's

Re: [Puppet Users] Help with provider inheritance of Josh Cooper's Exec PowerShell Provider

2015-01-22 Thread Jim Ficarra
the realm of sanity, please feel free. From: Jim Ficarra Sent: Thursday, January 22, 2015 2:24 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Help with provider inheritance of Josh Cooper's Exec PowerShell Provider I'm as newbie as they come to both Ruby and custom provider

[Puppet Users] Help with provider inheritance of Josh Cooper's Exec PowerShell Provider

2015-01-22 Thread Jim Ficarra
I'm as newbie as they come to both Ruby and custom provider development, so apologies if I'm missing the obvious up front. :) I want to write a custom type/provider to manage IIS Settings. I realize that there are at least 3 IIS modules in the forge already (and we are using one of them) but I

Re: [Puppet Users] Best way to deploy the Puppet client to a large set of Windows servers?

2014-10-02 Thread Jim Ficarra
In our organization, we created a chocolatey package for the puppet client hosted on our internal nuget server. We then created a powershell module that includes several tools for our environment, one of which remotely invokes the installation of chocolatey on windows systems in parallel, and

Re: [Puppet Users] windows mount points

2014-09-01 Thread Jim Ficarra
Have you declared the folder before the file resource? Something like this: file {'c:/srv': ensure = 'directory', } file {'c:/srv/newfile': ensure= 'file', source= 'puppet:///modules/mymodule/myfile.txt', require= File['c:/srv'], } It's not clear what the source of your

Re: [Puppet Users] windows mount points

2014-09-01 Thread Jim Ficarra
whoops - disregard - I re-read and missed that the latter case was a linked location. -Original Message- From: Jim Ficarra Sent: Monday, September 01, 2014 2:59 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] windows mount points Have you declared the folder before

Re: [Puppet Users] How can we satisfy goals of having all data in hiera and not modifying the module code?

2014-08-25 Thread Jim Ficarra
You could setup setup the host-specific yaml as: vhost:“first.example.com” port: “80” priority:“10” docroot:“/var/www/first” Then your module: $vhost = hiera(‘vhost’) $port = hiera(‘port’) $priority = hiera(‘priority’) $docroot: = hiera(‘docroot’)

Re: [Puppet Users] install windows package

2014-08-12 Thread Jim Ficarra
If you mean installing a windows package (such as an MSI or EXE) – you should review the package resource type documentation https://docs.puppetlabs.com/puppet/latest/reference/resources_package_windows.html https://docs.puppetlabs.com/references/latest/type.html#package This works really well

Re: [Puppet Users] installation of package to a different folder

2014-06-26 Thread Jim Ficarra
Try the install_options attribute of the package type. You need to know what the install option is for the JDK itself to go to another folder, then use the install_options attribute in puppet. http://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options From:

Re: [Puppet Users] installation of package to a different folder

2014-06-26 Thread Jim Ficarra
-7u25-linux-x64. rpm } source = /etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64 } Thanks, On Thursday, June 26, 2014 1:30:31 PM UTC-4, Jim Ficarra wrote: Try the install_options attribute of the package type. You need to know what the install option

Re: [Puppet Users] Chocolatey pre-fetch fails with Puppet - Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass

2014-06-23 Thread Jim Ficarra
a powershell prompt while the PSModulePath was messed up. This was a bit of a tough one to crack as the underlying powershell errors were masked behind the ruby. On Mon, Jun 23, 2014 at 1:10 PM, Rob Reynolds r...@puppetlabs.com wrote: On Tue, Jun 17, 2014 at 3:55 PM, Jim Ficarra jimfica

[Puppet Users] Chocolatey pre-fetch fails with Puppet - Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass

2014-06-17 Thread Jim Ficarra
Chocolatey is installed as a shared module on the puppet master. Below is the specific part of the puppet code that uses the chocolatey provider to install a custom package. class install_carbon { package {'carbon': ensure = '1.7', provider = 'chocolatey', } } This class is part of a

Re: [Puppet Users] Chocolatey pre-fetch fails with Puppet - Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass

2014-06-17 Thread Jim Ficarra
the chain to the provider, let's execute puppet agent -td --verbose --trace This should really get us to what might be causing the error. On Tue, Jun 17, 2014 at 12:51 PM, Jim Ficarra jimfica...@gmail.com wrote: Chocolatey is installed as a shared module on the puppet master. Below

Re: [Puppet Users] Chocolatey pre-fetch fails with Puppet - Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass

2014-06-17 Thread Jim Ficarra
us to what might be causing the error. On Tue, Jun 17, 2014 at 12:51 PM, Jim Ficarra jimfica...@gmail.com wrote: Chocolatey is installed as a shared module on the puppet master. Below is the specific part of the puppet code that uses the chocolatey provider to install a custom package

Re: [Puppet Users] Chocolatey pre-fetch fails with Puppet - Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass

2014-06-17 Thread Jim Ficarra
? (choco /?) Moving up the chain to the provider, let's execute puppet agent -td --verbose --trace This should really get us to what might be causing the error. On Tue, Jun 17, 2014 at 12:51 PM, Jim Ficarra jimfica...@gmail.com wrote: Chocolatey is installed as a shared module

Re: [Puppet Users] Ability to wait for dotnet to complete installation

2014-06-04 Thread Jim Ficarra
Did you try using the package resource over the exec resource? I install .NET 4.0 using the package resource and it works just fine on Windows 2008 R2 Enterprise Standard, though I haven’t tried on Data Center but I’m not sure how different it would be. I’ve done something similar with .net

Re: [Puppet Users] Windows exe fork

2014-06-01 Thread Jim Ficarra
I’m not familiar with how the Reimann monitoring client runs – but if you run it at the command line and it runs within the shell and requires the command shell to run perpetually, you could try “start.exe reimannclient.exe” or whatever the name of the exe is. There are a # of command line

Re: [Puppet Users] Puppet for Windows - Problems with Oracle 11g client install

2014-05-24 Thread Jim Ficarra
On Mon, May 19, 2014 at 6:46 PM, Jim Ficarra jimfica...@gmail.com wrote: Thanks for replying, Josh. I just tried your suggestion but the same thing happens. install_options = ['-silent', '-waitforcompletion', '-noconsole'. '-responseFile', 'D:\Build\Ora11gclient.rsp'], It spawns several

Re: [Puppet Users] Puppet for Windows - Problems with Oracle 11g client install

2014-05-24 Thread Jim Ficarra
– that has saved me more than you can imagine! If you have any additional thoughts, please feel free. -Jim From: Jim Ficarra Sent: Saturday, May 24, 2014 10:01 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Puppet for Windows - Problems with Oracle 11g client install

Re: [Puppet Users] Puppet for Windows - Problems with Oracle 11g client install

2014-05-19 Thread Jim Ficarra
To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Puppet for Windows - Problems with Oracle 11g client install On Sun, May 18, 2014 at 10:57 AM, Jim Ficarra jimfica...@gmail.com wrote: Trying the following in both package and exec providers D:\Build\Oracle11gclient\setup.exe

[Puppet Users] Puppet for Windows - Problems with Oracle 11g client install

2014-05-18 Thread Jim Ficarra
Trying the following in both package and exec providers D:\Build\Oracle11gclient\setup.exe -silent -waitforcompletion -noconsole -responseFile D:\Build\Ora11gclient.rsp I can run this at the command line and install Oracle 11g client silently.Once I put it in a package or try to exec it, I get