[Puppet Users] puppet windows base older version 7zip

2017-04-10 Thread Ryan Vande
During our chocolatey install in our base_windows.pp it installs the latest version of 7-zip I believe it does this VIA the powershell script InstallChocolatey.ps1.erb " Write-Output "Download 7Zip commandline tool" $7zaExe = Join-Path $tempDir '7za.exe' Download-File 'https://chocolatey.or

Re: [Puppet Users] Puppet Windows Automation

2015-09-01 Thread Matthew Stone
do it do it do it do it! I put one together for windowsfeature and wanted to submit a PR, but I'm unseasoned at rspec and haven't been able to put together a solid block of tests. Any help or resources in that department is more than appreciated. :) On Monday, August 31, 2015 at 7:15:32 PM UT

Re: [Puppet Users] Puppet Windows Automation

2015-08-31 Thread Rob Reynolds
On Monday, August 31, 2015, Matthew Stone wrote: > For instances like this, I've usually smashed everything into a one-liner > using the powershell provider. So...something along the lines of: > > command => " \$thing = ; Write-Host \"Puppet > ${thingamajig} is a $\thing\"" > > As can be seen abo

Re: [Puppet Users] Puppet Windows Automation

2015-08-31 Thread Matthew Stone
For instances like this, I've usually smashed everything into a one-liner using the powershell provider. So...something along the lines of: command => " \$thing = ; Write-Host \"Puppet ${thingamajig} is a $\thing\"" As can be seen above, it can start looking pretty ugly, especially if the comm

Re: [Puppet Users] Puppet Windows Automation

2015-08-29 Thread Rob Reynolds
On Sat, Aug 29, 2015 at 9:22 AM, Rob Reynolds wrote: > > > On Thu, Aug 27, 2015 at 7:38 AM, Thomas Bartlett < > thomas.bartlett.1...@gmail.com> wrote: > >> Hi Guys, >> >> So I've been working with puppet on windows and I think my approach is >> all wrong. I've been using the puppetlabs/powershell

Re: [Puppet Users] Puppet Windows Automation

2015-08-29 Thread Rob Reynolds
On Thu, Aug 27, 2015 at 7:38 AM, Thomas Bartlett < thomas.bartlett.1...@gmail.com> wrote: > Hi Guys, > > So I've been working with puppet on windows and I think my approach is all > wrong. I've been using the puppetlabs/powershell module to run commands, > however I'm having difficulty with exit c

Re: [Puppet Users] Puppet Windows Automation

2015-08-29 Thread Rob Reynolds
On Thu, Aug 27, 2015 at 9:26 AM, Peter Kristolaitis wrote: > We solve this issue by doing (kind of ugly) stuff like this in our modules: > > unless => 'if ( ! ( Get-Service mcollectived ) ) { exit 1 }', > > If you don't like that syntax, you may be able to use the $? or > $LastExitCode variable

[Puppet Users] Puppet Windows Automation

2015-08-28 Thread Fraser Goffin
Whilst there are definitely some uses cases where executing scripts in either Powershell or via an Exec resource is the way to go, in my opinion you should really be thinking of using the higher level resource abstractions. That way you don't need to deal with the implementation details and you

Re: [Puppet Users] Puppet Windows Automation

2015-08-27 Thread Peter Kristolaitis
PowerShell is largely based on the syntax of the ksh shell, so most constructs that work in ksh will work in PS as well. In this case: $FOO=(hostname) That will interpolate anywhere, not just during variable assignment, so you can do stuff like: Some-CmdLet -Host (hostname) If you're famil

Re: [Puppet Users] Puppet Windows Automation

2015-08-27 Thread Thomas Bartlett
Nice one, I'll give that a go. You don't happen to know how I can set a variable to equal the result of a powershell command do you? I need to use the hostname of the machine as a parameter for another command. At the minute I'm using hard-coding which is obviously a cardinal sin. On Thursday,

Re: [Puppet Users] Puppet Windows Automation

2015-08-27 Thread Peter Kristolaitis
We solve this issue by doing (kind of ugly) stuff like this in our modules: unless => 'if ( ! ( Get-Service mcollectived ) ) { exit 1 }', If you don't like that syntax, you may be able to use the $? or $LastExitCode variables that get set by PowerShell (I haven't tested this, however). Both

[Puppet Users] Puppet Windows Automation

2015-08-27 Thread Thomas Bartlett
Hi Guys, So I've been working with puppet on windows and I think my approach is all wrong. I've been using the puppetlabs/powershell module to run commands, however I'm having difficulty with exit codes. Primarily puppet expects exit codes to denote success/failure, whereas powershell is return

Re: [Puppet Users] Puppet Windows ARR

2015-08-25 Thread Rob Reynolds
On Tue, Aug 25, 2015 at 11:30 AM, Sergiu Cornea < s.cor...@my.westminster.ac.uk> wrote: > Hello guys, > > I have been asked to use Puppet in order to set-up Windows ARR, however, I > have been searching all over Google but unfortunately, I couldn't find > anything. > For setting up the Web Server

[Puppet Users] Puppet Windows ARR

2015-08-25 Thread Sergiu Cornea
Hello guys, I have been asked to use Puppet in order to set-up Windows ARR, however, I have been searching all over Google but unfortunately, I couldn't find anything. Could someone please let me know where I can find more information about this as well as creating a Windows Server Cluster usi

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2014-05-27 Thread Josh Cooper
On Tue, May 27, 2014 at 10:43 AM, Tomer Paz wrote: > I know its quite late to respond on this (I have issued similar issue in > another group and got a good answer pointing among other links to this > thread) > having said that, are you sure there isn't a MS API for 'registered' MSI > installatio

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2014-05-27 Thread Tomer Paz
I know its quite late to respond on this (I have issued similar issue in another group and got a good answer pointing among other links to this thread) having said that, are you sure there isn't a MS API for 'registered' MSI installations? I used this script from MS online documentation: http:

Re: [Puppet Users] Puppet windows File permissions

2013-09-19 Thread Josh Cooper
On Thu, Mar 1, 2012 at 9:47 AM, Josh Cooper wrote: > Hi Marco, > > On Thu, Mar 1, 2012 at 6:17 AM, Marco Parra D. wrote: > >> Hi Josh, thank you for reply, >> >> On 29-02-2012 19:12, Josh Cooper wrote: >> >> Hi Marco, >> >> On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. > > wrote: >> >>> Hi J

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-24 Thread Josh Cooper
On Mon, Jun 17, 2013 at 11:53 AM, Adnan Chowdhury < adnanchowdhur...@gmail.com> wrote: > I don't foresee any bad side-effects. > > > On Sat, Jun 15, 2013 at 1:48 AM, Josh Cooper wrote: > >> >> >> On Thursday, June 13, 2013, Reginald Choudari wrote: >> >>> >>> >>> On Wednesday, June 12, 2013 5:23:

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-17 Thread Josh Cooper
On Mon, Jun 17, 2013 at 12:05 PM, Kevin D wrote: > Josh, > > You mentioned: > > Unfortunately, Windows does not have an API for retrieving installed >> packages. >> > > Does this include the WMI class > Win32_Product

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-17 Thread Kevin D
Josh, You mentioned: > Unfortunately, Windows does not have an API for retrieving installed > packages. > Does this include the WMI class Win32_Product? Win32_product provides a limited set of information ab

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-17 Thread Adnan Chowdhury
I don't foresee any bad side-effects. On Sat, Jun 15, 2013 at 1:48 AM, Josh Cooper wrote: > > > On Thursday, June 13, 2013, Reginald Choudari wrote: > >> >> >> On Wednesday, June 12, 2013 5:23:50 PM UTC-4, Josh Cooper wrote: >>> >>> >>> >>> >>> On Wed, Jun 12, 2013 at 12:51 PM, Reginald Choudar

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-14 Thread Josh Cooper
On Thursday, June 13, 2013, Reginald Choudari wrote: > > > On Wednesday, June 12, 2013 5:23:50 PM UTC-4, Josh Cooper wrote: >> >> >> >> >> On Wed, Jun 12, 2013 at 12:51 PM, Reginald Choudari < >> adnancho...@gmail.com> wrote: >> >>> Tried renaming the title of the resource to what the name attribu

Re: [Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-10 Thread Josh Cooper
Hi Reginald, On Fri, Jun 7, 2013 at 7:54 AM, Reginald Choudari < adnanchowdhur...@gmail.com> wrote: > Hello, > > I've got Package resource on my Windows machine that keeps creating itself > even though the package has been properly installed. > > I've got the name attribute set to the DisplayNam

[Puppet Users] Puppet Windows package not seeing DisplayName in Registry?

2013-06-07 Thread Reginald Choudari
Hello, I've got Package resource on my Windows machine that keeps creating itself even though the package has been properly installed. I've got the name attribute set to the DisplayName found in the Registry for the package. Every time the agent polls, I see in the Event Logs: /Stage[main]/Ms

[Puppet Users] Puppet Windows - Mapped Network Drive and Service Account

2013-04-29 Thread Kevin D
On Windows 2008 R2 SP1, after joining to the domain, there is an issue with a mapped network drive when Puppet agent runs by the "LOCAL SYSTEM" service account. Using dependency chaining, a near the beginning module is "map-networkdrivez". The module execs a batch file that if Z:\ does not exi

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread Josh Cooper
On Fri, Feb 8, 2013 at 9:08 AM, jcbollinger wrote: > > > On Friday, February 8, 2013 3:20:33 AM UTC-6, jim wrote: >> >> Hello Josh >> >> Thanks for reply so quickly, here is my manifest, thinking about it, I >> assume it because i'm installing the agent every time, do I need to do >> something lik

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread jcbollinger
On Friday, February 8, 2013 3:20:33 AM UTC-6, jim wrote: > > Hello Josh > > Thanks for reply so quickly, here is my manifest, thinking about it, I > assume it because i'm installing the agent every time, do I need to do > something like if service doesn't exist install else ignore ? > > regards

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread jim
Hello Josh Thanks for reply so quickly, here is my manifest, thinking about it, I assume it because i'm installing the agent every time, do I need to do something like if service doesn't exist install else ignore ? regards James file { 'C:/Installs/check-mk-agent-1.2.1i5.exe': source

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-07 Thread Josh Cooper
Hi Jim, On Thu, Feb 7, 2013 at 7:15 AM, jim wrote: > Hello all, > > Can anyone please help, every time I push a config to my hosts, the windows > service I have just defined keeps stopping and starting, and logging in the > eventlog, > > I only want the service to stop and start, if something has

[Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-07 Thread jim
Hello all, Can anyone please help, every time I push a config to my hosts, the windows service I have just defined keeps stopping and starting, and logging in the eventlog, I only want the service to stop and start, if something has changed, and to my knowledge nothing has changed ? so it sho

Re: [Puppet Users] puppet windows importing manifests twice when using puppet apply

2012-10-16 Thread Josh Cooper
Hi Corey, On Tue, Oct 16, 2012 at 1:34 PM, Corey Osman wrote: > I am trying to create a masterless local windows installer and I have run > into an issue where puppet is importing my manfiests multiple times creating > multiple declaration errors. > > You may notice the importing occurs twice but

[Puppet Users] puppet windows importing manifests twice when using puppet apply

2012-10-16 Thread Corey Osman
I am trying to create a masterless local windows installer and I have run into an issue where puppet is importing my manfiests multiple times creating multiple declaration errors. You may notice the importing occurs twice but with different directory layouts. One import is via puppet while th

Re: [Puppet Users] Puppet windows -

2012-10-01 Thread Pavel Drobushevich
Hi Josh, Thanks that you remember my case. Unfortunately I couldn't wait and restart server on weekend and now puppet works fine. Before it I started ruby -e "require 'digest/sha1' And It completed ok. I didn't change Path (and never add ruby to path, as I understand puppet use environment.bat)

Re: [Puppet Users] Puppet windows -

2012-10-01 Thread Josh Cooper
Hi Pavel, Can you try the following: ruby -e "require 'digest/sha1'; puts Digest::SHA1.hexdigest('foo')" If that works, try: ruby -e "require 'digest/sha1'; puts Digest::SHA1.hexdigest('C:/puppet/sys/ruby/lib/ruby/1.8/i386-mingw32/digest/sha1.so')" You should get: 7479672868457859

Re: [Puppet Users] Puppet windows -

2012-09-26 Thread Pavel Drobushevich
Hi Josh, I've installed puppet from official msi puppet-enterprise-2.5.0.msi. There are no any other ruby installation on this machine. Ruby version returns following info: 1.8.7 (2011-12-28 patchlevel 357) [i386-mingw32] It've been working about 2 months, but suddenly yesterday stopped. Thanks

Re: [Puppet Users] Puppet windows -

2012-09-25 Thread Josh Cooper
Hi Pavel, On Tue, Sep 25, 2012 at 2:28 PM, Pavel Drobushevich wrote: > Hi all, > > We use puppet on many windows machines (Windows Server2008R2 x64). It works > fine, but on one of them it was fail down and couldn't start work again. I > try to reinstall, but it didn't help. May be you have any i

[Puppet Users] Puppet windows -

2012-09-25 Thread Pavel Drobushevich
Hi all, We use puppet on many windows machines (Windows Server2008R2 x64). It works fine, but on one of them it was fail down and couldn't start work again. I try to reinstall, but it didn't help. May be you have any idea. Thanks in advance. *Error message from puppet* C:/puppet/puppet/lib/pup

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-07-05 Thread Greg Swift
the manifest is now attached to the ticket On Friday, June 22, 2012 2:23:31 PM UTC-5, Josh Cooper wrote: > > Thanks Greg. Can you attach the manifest you are using (with the > arguments) to the ticket? > > On Fri, Jun 22, 2012 at 12:20 PM, Greg Swift wrote: > > attached to the ticket. I won't

Re: [Puppet Users] Puppet windows newbie: command runs but ends with failure

2012-06-28 Thread Josh Cooper
Hi Anoop, On Thu, Jun 28, 2012 at 2:26 PM, Anoop Gopalakrishnan wrote: > > Hi , >   I am new to Puppet and I just started testing it out in my windows machine > to do a set of tasks which I do manually currently and once I get the hang of > it would like to use it for provisioning later. My cur

[Puppet Users] Puppet windows newbie: command runs but ends with failure

2012-06-28 Thread Anoop Gopalakrishnan
Hi , I am new to Puppet and I just started testing it out in my windows machine to do a set of tasks which I do manually currently and once I get the hang of it would like to use it for provisioning later. My current task is pretty simple: 1. Run an svn update command on a folder 2. Run maven

Re: [Puppet Users] puppet windows exec successful but not really

2012-06-22 Thread Michael Baydoun
yes , that's a typo. Working now, thanks! Too bad it returns 0 all the time. On Fri, Jun 22, 2012 at 3:05 PM, Josh Cooper wrote: > Hi Michael, > > On Fri, Jun 22, 2012 at 11:00 AM, Josh Cooper wrote: > > > > Hi Michael > > > > On Fri, Jun 22, 2012 at 10:33 AM, Michael Baydoun < > indymicha...@

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-22 Thread Josh Cooper
Thanks Greg. Can you attach the manifest you are using (with the arguments) to the ticket? On Fri, Jun 22, 2012 at 12:20 PM, Greg Swift wrote: > attached to the ticket.  I won't be able to work on this for about a week > though.. other priority just came up.  But let me know and when I can get >

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-22 Thread Greg Swift
attached to the ticket. I won't be able to work on this for about a week though.. other priority just came up. But let me know and when I can get back on it I will. On Thursday, June 21, 2012 3:02:38 PM UTC-5, Greg Swift wrote: > > first thing in the morning. > > On Thursday, June 21, 2012 1:1

Re: [Puppet Users] puppet windows exec successful but not really

2012-06-22 Thread Josh Cooper
Hi Michael, On Fri, Jun 22, 2012 at 11:00 AM, Josh Cooper wrote: > > Hi Michael > > On Fri, Jun 22, 2012 at 10:33 AM, Michael Baydoun > wrote: >> >> My windows client is running Windows 2003 Server 32 bit >> >> >> On Wed, Jun 20, 2012 at 3:38 PM, Josh Cooper wrote: >>> >>> Hi Michael, >>> >>>

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Greg Swift
first thing in the morning. On Thursday, June 21, 2012 1:15:09 PM UTC-5, Josh Cooper wrote: > > Can you try running with --trace and --debug, and adding the stack trace > to the ticket? > > On Jun 21, 2012, at 10:57 AM, Greg Swift wrote: > > So.. now I'm getting your error instead of mine. > > O

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Josh Cooper
Can you try running with --trace and --debug, and adding the stack trace to the ticket? On Jun 21, 2012, at 10:57 AM, Greg Swift wrote: > So.. now I'm getting your error instead of mine. > > On Thursday, June 21, 2012 12:46:08 PM UTC-5, Greg Swift wrote: > I believe you are correct. I removed

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Greg Swift
So.. now I'm getting your error instead of mine. On Thursday, June 21, 2012 12:46:08 PM UTC-5, Greg Swift wrote: > > I believe you are correct. I removed the arguments key/value pair and it > ran fine. I'm patching in your changes to try it with the arguments option. > > thank you very much > >

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Greg Swift
I believe you are correct. I removed the arguments key/value pair and it ran fine. I'm patching in your changes to try it with the arguments option. thank you very much On Thursday, June 21, 2012 11:53:40 AM UTC-5, Josh Cooper wrote: > > Hi Greg, > > I believe this is issue https://projects.pu

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Josh Cooper
Hi Greg, I believe this is issue https://projects.puppetlabs.com/issues/13008, which I have fixed in my topic branch and is awaiting to be merged into 2.7.x. It would be great if you could try it out and let me know how it goes. Josh On Thu, Jun 21, 2012 at 9:00 AM, Greg Swift wrote: > Mohamed

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-21 Thread Greg Swift
Mohamed, Did you get anywhere with this? I'm running into the exact same issue. -greg On Wednesday, November 23, 2011 7:29:34 PM UTC-6, Jacob Helwig wrote: > > On 2011-11-23 15:53 , Mohamed Lrhazi wrote: > > Thanks JacobDid that answer my TypeError as well? > > No, a stack trace would help

[Puppet Users] Puppet Windows exec

2012-03-23 Thread Jay Ze
Hi, Is it correct that it's not possible to excecute Windows Commands directly with the puppet run? For example: exec { 'ExecCreatedFolder': command => "mkdir C:\PuppetOrdner\ExecCreatedFolder", } I allways have to bind it with a .bat file right? file { 'c:/PuppetFolder/puppettest

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, by the way, this is the link that I found to solve my trouble, works perfect on Windows 2008 R2 64 bits. http://www.ghisler.ch/wiki/index.php/On_64-bit_Windows_versions,_some_files_and_folders_shown_by_Windows_Explorer_are_not_shown_by_Total_Commander!#Affected_files_and_folders Regard

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, Looking in the web, I found the solution that you mentioned, c:\windows\Sysnative, and works perfect to me! thank you for your help C:\Users\Administrator>puppet agent --test notice: Ignoring --listen on onetime run info: Retrieving plugin info: Caching catalog for cscltest01.office

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Josh Cooper
Hi Marco, On Thu, Mar 1, 2012 at 6:17 AM, Marco Parra D. wrote: > Hi Josh, thank you for reply, > > On 29-02-2012 19:12, Josh Cooper wrote: > > Hi Marco, > > On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. > wrote: > >> Hi Josh, >> I'm runnig from cmd.exe, I'm using Administrator account on t

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, thank you for reply, On 29-02-2012 19:12, Josh Cooper wrote: Hi Marco, On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. mailto:marco.parr...@gmail.com>> wrote: Hi Josh, I'm runnig from cmd.exe, I'm using Administrator account on the windows box, this is the output for th

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Josh Cooper
Hi Marco, On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. wrote: > Hi Josh, > I'm runnig from cmd.exe, I'm using Administrator account on the windows > box, this is the output for the command that you asked: > > C:\Users\Administrator>whoami /groups > > GROUP INFORMATION > - > >

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Marco Parra D.
Hi Josh, I'm runnig from cmd.exe, I'm using Administrator account on the windows box, this is the output for the command that you asked: C:\Users\Administrator>whoami /groups GROUP INFORMATION - Group Name Type SID Attributes ===

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Josh Cooper
Hi Marco, On Wed, Feb 29, 2012 at 5:46 AM, mparrad wrote: > Hi Guys, I'm recently start working with puppet and mostly puppet for > windows, On linux works perfect, but on windows works fine!, but I got a > issue working on c:\windows\system32\inetsrv\config folder, I need modify > the file appl

[Puppet Users] Puppet windows File permissions

2012-02-29 Thread mparrad
Hi Guys, I'm recently start working with puppet and mostly puppet for windows, On linux works perfect, but on windows works fine!, but I got a issue working on c:\windows\system32\inetsrv\config folder, I need modify the file applicationHost.config using puppet, to keep centralized the config f

[Puppet Users] Puppet Windows: Spaces in file paths a problem?

2011-11-28 Thread Mohamed Lrhazi
I thought I read somewhere in Puppet docs/wiki... that it is "recommended" to avoid spaces in file paths, or some similar verbiage, but now I cant find it. Does Puppet have any known issues with spaces in file paths? It would of course scare Windows admins away... So I hope I am wrong in thinking

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Jacob Helwig
On 2011-11-23 15:53 , Mohamed Lrhazi wrote: > Thanks JacobDid that answer my TypeError as well? No, a stack trace would help for that. -- Jacob Helwig http://about.me/jhelwig > > Mohamed. > > On Wed, Nov 23, 2011 at 5:28 PM, Jacob Helwig wrote: >> On 2011-11-23 13:02 , Mohamed Lrhazi wr

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Mohamed Lrhazi
Thanks JacobDid that answer my TypeError as well? Mohamed. On Wed, Nov 23, 2011 at 5:28 PM, Jacob Helwig wrote: > On 2011-11-23 13:02 , Mohamed Lrhazi wrote: >> am trying this: >> >>     scheduled_task { 'Puppet Run': >>         ensure    => present, >>         enabled   => true, >>        

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Jacob Helwig
On 2011-11-23 13:02 , Mohamed Lrhazi wrote: > am trying this: > > scheduled_task { 'Puppet Run': > ensure=> present, > enabled => true, > command => 'C:\\ruby187\\bin\\puppet.bat', > arguments => 'agent --verbose --logdest C:\\Temp\puppet.log', >

[Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Mohamed Lrhazi
am trying this: scheduled_task { 'Puppet Run': ensure=> present, enabled => true, command => 'C:\\ruby187\\bin\\puppet.bat', arguments => 'agent --verbose --logdest C:\\Temp\puppet.log', trigger => { schedule => daily,

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
and then, indeed, maybe the provider could take a helper hint about how to go about detecting the presence of a package, kind of like Service takes hints about how to detect a service is running or not... Then maybe: detect_with_file => "C:\\Program Files\\Splunk\\bin\\splunk.exe" Thanks, Mohamed

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
I think the documentation about package providers should include something about this... Right now a provider has these features: holdableinstall_options installable purgeable uninstallable upgradeable versionable Maybe something like: detectable Meaning the provider can

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Jacob Helwig
On 2011-11-22 07:10 , Mohamed Lrhazi wrote: > I noticed that is if I uninstall an MSI that was installed by Puppet, > Puppet does not notice. > > Looking at the source I see it might be checking for a state file to > know whether a package is installed or not: > C:\ProgramData\PuppetLabs\puppet\va

[Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
I noticed that is if I uninstall an MSI that was installed by Puppet, Puppet does not notice. Looking at the source I see it might be checking for a state file to know whether a package is installed or not: C:\ProgramData\PuppetLabs\puppet\var\db\package\msi\SplunkForwarder.yml So one has to reme

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Aaron Grewell
I wouldn't expect a lot of class overlap, so it might be simpler to do it that way, but it also means a completely different directory tree. It's going to come down to the personal taste of the admins I expect. On Mon, Nov 21, 2011 at 11:31 AM, Mohamed Lrhazi wrote: > Thanks guys. We do use envir

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Mohamed Lrhazi
Thanks guys. We do use environments already, and we also do use this pattern for separating operating system specific details to sub classes... but we only had to deal with Red Hat/CentOS/Oracle Enterprise Linux, and Solaris I guess I was thinking that "windows" is so different that it should

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Aaron Grewell
Another way to handle this is to have class-level logic: class something { if ( $operatingsystem == "windows" ) { include something::windows } if ( $operatingsystem == "redhat" ) { include something::redhat } } Then put your resources in something::windows, something::redhat, etc. You m

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Evan Hisey
On Sun, Nov 20, 2011 at 8:05 PM, Mohamed Lrhazi wrote: > I stated tweaking my puppet modules and site.pp to support the new > OS.. things like: > > if ( $operatingsystem == "windows" ) { >    Exec { path => > "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\Win

[Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-20 Thread Mohamed Lrhazi
I stated tweaking my puppet modules and site.pp to support the new OS.. things like: if ( $operatingsystem == "windows" ) { Exec { path => "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Ruby187\\bin" } } else { And now am th

Re: [Puppet Users] Puppet Windows: test if non-MSI package already installed

2011-11-18 Thread Andrew Ring
Thank you. On 11/11/2011 10:30 AM, Josh Cooper wrote: Hi Andrew, On Fri, Nov 11, 2011 at 9:19 AM, mailto:ar...@berkeley.edu>> wrote: Hello Puppet Cohorts, I wish to install programs on Windows that do not use the MSI installer. After finding a guide on-line for silencing most in

Re: [Puppet Users] Puppet Windows: test if non-MSI package already installed

2011-11-11 Thread Josh Cooper
Hi Andrew, On Fri, Nov 11, 2011 at 9:19 AM, wrote: > Hello Puppet Cohorts, > > I wish to install programs on Windows that do not use the MSI installer. > > After finding a guide on-line for silencing most installers > (http://unattended.sourceforge.net/installers.php) I feel confident I can > wr

[Puppet Users] Puppet Windows: test if non-MSI package already installed

2011-11-11 Thread aring
Hello Puppet Cohorts, I wish to install programs on Windows that do not use the MSI installer. After finding a guide on-line for silencing most installers (http://unattended.sourceforge.net/installers.php) I feel confident I can write a short script for Puppet to "exec" on my hosts to silently in

Re: [Puppet Users] Puppet Windows support

2011-08-10 Thread Josh Cooper
Yeah, Windows users! The 2.6 release introduced preliminary support for Windows (limited to just managing files). http://www.puppetlabs.com/2dot6/ The ticket you found provides a good view of the work we have completed and are targeting for the release. http://projects.puppetlabs.com/issues

Re: [Puppet Users] Puppet Windows support

2011-08-10 Thread Craig White
I think if you look through the mail list for the past 6 weeks, you'll see several postings about the progress that they have made towards a Windows client. I gather that this is on the high priority agenda. Craig On Aug 10, 2011, at 12:37 PM, Maven User wrote: > Hi all - > > I'm pretty new t

[Puppet Users] Puppet Windows support

2011-08-10 Thread Maven User
Hi all - I'm pretty new to puppet and have started diving into the deep end - very excited to ditch crappy scripts for the manifest concept! I have a couple of questions around windows support. I followed the windows support wiki entry to the bitter end and then realized there's no agent support