Re: [Puppet Users] Windows Reboot

2013-03-20 Thread ad
ource that requires a reboot. I'll check out your reboot provider, thanks. I just use an exec currently. Regards, Adam On Tuesday, March 19, 2013 11:42:19 PM UTC-5, Josh Cooper wrote: > > > > On Monday, March 11, 2013, ad wrote: > >> James, >> >> Not yet

[Puppet Users] Re: Windows Reboot

2013-03-11 Thread ad
James, Not yet, see http://projects.puppetlabs.com/issues/19162. My (ugly) approach for this now is a refreshonly exec with a delayed shutdown. I'd like to see a reboot => true or such for all resources that tell the agent to reboot after a run is complete when that resource is applied. Adam

[Puppet Users] Re: Windows Fact for architecture !!!

2013-03-10 Thread ad
You may have better luck using the os_architecture fact from winfacts. https://forge.puppetlabs.com/adenning/winfacts hth, Adam On Sunday, March 10, 2013 1:22:13 AM UTC-6, Rakesh K wrote: > > Hi, > > I am trying to write a manifests for windows and need to do a sequence of > things based on ar

[Puppet Users] Re: Puppet in EC2

2013-03-09 Thread ad
I use the same small script to bootstrap puppet on any server whether it's EC2 or not. It 1) sets the hostname 2) installs puppet 3) sets the puppet master in puppet.conf 4) runs puppet I sign the cert and from that point on use an ENC (I like Foreman) to add classes, set environments, parameters

[Puppet Users] Re: Windows Firewall Question

2013-03-07 Thread ad
mote Assistance\fAllowToGetHelp': ensure => present, type=> 'dword', data=> '0', } hth, Adam On Tuesday, March 5, 2013 8:36:15 AM UTC-6, david@struq.com wrote: > > Hi Adam, > > I would be interested in seeing an example of

[Puppet Users] Re: Windows Firewall Question

2013-02-14 Thread ad
Hey Jim, As someone who generally hates using execs unless I absolutely have to, I would recommend using the Puppet Labs registry module. I can dig out some examples tomorrow if you like. Adam On Thursday, February 14, 2013 9:29:52 AM UTC-6, jim wrote: > > Hello all, > > I'm currently running

Re: [Puppet Users] Applying a resource only if not within a schedule

2013-02-08 Thread ad
y that also receives the same trigger with an > opposite schedule. > > On Feb 7, 2013, at 2:40 PM, ad wrote: > > I have a custom resource type that upgrades a MSI and kicks off a reboot. > It uses a schedule parameter (configurable through an ENC) so we can > control when the nod

Re: [Puppet Users] I can't get a custom fact to work in Windows

2013-02-07 Thread ad
Note that you can also use Puppet.notice to help debug and such. Adam On Thursday, February 7, 2013 4:39:42 PM UTC-6, Dan McManus wrote: > > Hah, yet, just removing the "puts" worked. Many thanks. > > On Thu, Feb 7, 2013 at 3:28 PM, Justin Stoller > > > wrote: > >> >> >> >> On Thu, Feb 7, 2013

[Puppet Users] Applying a resource only if not within a schedule

2013-02-07 Thread ad
I have a custom resource type that upgrades a MSI and kicks off a reboot. It uses a schedule parameter (configurable through an ENC) so we can control when the node is allowed to reboot. I'd like to add a notify (or call warn()) if not within the schedule, e.g. "Skipping ensure version of MSI

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-12-06 Thread ad
Hey Oliver, I finally got around to working on this today, and discovered I fixed it long ago and completely forgot to push the change to github. oops :) Looks like I took a different approach. https://github.com/adenning/winfacts/blob/master/lib/facter/os_architecture.rb I only run Puppet on

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-30 Thread ad
Hi Oliver, Nice catch! Thanks for posting your patch. Cheers, Adam On Friday, November 30, 2012 9:27:05 AM UTC-6, r0k5t4r wrote: > > Hi Adam, > > The class > Win32_OperatingSystemexists > on Vista and above. For older systems y

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-27 Thread ad
Hey Oliver, You can use my winfacts module, or just strip out the os_archtecture fact from it: https://github.com/adenning/winfacts/blob/master/lib/facter/os_architecture.rb That will correctly handle 32-bit OS on 64-bit hardware. Adam On Tuesday, November 27, 2012 5:04:47 AM UTC-6, r0k5t4r w

[Puppet Users] Re: PuppetConf Videos Are Available Now

2012-10-10 Thread ad
A huge thanks to Puppet Labs for these videos. It was so hard to decide which presentations to go to at times. The conference kicked so much ass! Adam On Wednesday, October 10, 2012 1:33:08 PM UTC-5, Dawn Foster wrote: > > I wanted to let everyone know that the videos from PuppetConf are > avai

[Puppet Users] Re: Scalability and performance

2012-10-10 Thread ad
Hi, I've never used CFEngine and don't have input on those benchmarks other than they seem silly. But, fwiw... - scaling Puppet masters seems to be straighforward and well documented (there are chapters in books on it) - Performance in Puppet 3 is much better. Check out this presentation from

[Puppet Users] Re: Installing Java software on Windows using Puppet

2012-08-17 Thread ad
> > Hey Josh, > > On Friday, August 17, 2012 11:38:08 AM UTC-5, Josh Cooper wrote: > > >> I have a standardlib type module with generic functions for things like > >> download, md5, etc. that are used in other custom types. Lacking a > robust > >> shell, tools, and package management on Windows

[Puppet Users] Re: Installing puppet agent on Windows XP

2012-08-16 Thread ad
Windows support better in newer versions of Puppet. I run 2.7.18 on XP nodes with no issues. It's not officially supported though. hth, Adam On Monday, November 21, 2011 2:50:37 PM UTC-6, Jeff Sussna wrote: > > Trying to get Puppet 2.7.6/Facter 1.6.2 running on Windows XP SP3. > Followed the in

[Puppet Users] Re: Installing Java software on Windows using Puppet

2012-08-16 Thread ad
Jeff, Just to give you more ideas, and as someone who tends to reinvint wheels, what I do for this sort of thing on Windows is make custom types and use Ruby to handle download, unzip, md5, etc. Here's how a couple custom types I use look in a Puppet manifest: media_player_msi { 'ensure_ms

[Puppet Users] Re: High CPU load / queued passenger requests

2012-08-02 Thread ad
On Thursday, August 2, 2012 8:34:55 AM UTC-5, Jake - USPS wrote: > > If that seemed to help maybe you need to tune your mysql server(s)? I've > tuned mine quite a bit from default OS distro settings using > http://mysqltuner.pl/mysqltuner.pl as I myself am not a mysql expert. Check out Sheeri

[Puppet Users] Re: Custom ruby modules/classes, standard namespacing, pluginsync, etc.

2012-07-09 Thread ad
how bout a basic 2 modules one which calls a function in the other example? On Jul 9, 5:23 pm, ad wrote: > still pretty new to Ruby, please bare with me :) Say I have a module > with a custom type, structured like so: > > [modules]/mymodule/manifests/init.pp > [modules]/mymo

[Puppet Users] Custom ruby modules/classes, standard namespacing, pluginsync, etc.

2012-07-09 Thread ad
still pretty new to Ruby, please bare with me :) Say I have a module with a custom type, structured like so: [modules]/mymodule/manifests/init.pp [modules]/mymodule/lib/puppet/provider/mytype/foo.rb [modules]/mymodule/lib/puppet/type/mytype.rb In foo.rb, I'd like to call some custom ruby function

[Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread ad
Hey Matt, I'm not exactly sure how you have things setup now, but the operating system fact is baked into factor and will be available on the first run. Rather than having the ENC supply your default classes, you could do so in your site.pp. Here's how I do it: stage { 'first': before => Stage['m

[Puppet Users] Re: Using onlyif

2012-07-05 Thread ad
fwiw, I put this at the top of my global site.pp (one of 3 lines in the file). # Globally set exec path so we don't have to specify it each time we use exec. Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] } hth, Adam -- You received this message because you are subscribed to

[Puppet Users] Re: can´t call custom fact

2012-06-29 Thread ad
Do you have pluginsync enabled in pupppet.conf? [main] pluginsync = true Regards, Adam On Jun 29, 8:46 am, Spter wrote: > Hi, > > i like to use some custom facts. > My clients are connectet to 1 puppetmaster with mod_passenger and all works > fine. > > Both on puppetmaster and my node: > puppe

Re: [Puppet Users] Re: Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
:24 PM UTC-5, Josh Cooper wrote: > > > > On Fri, Jun 22, 2012 at 9:13 AM, ad wrote: > >> I just tested this on CentOS/Puppet 2.7.12 with the same result. >> >> - Adam >> >> >> On Friday, June 22, 2012 10:20:52 AM UTC-5, ad wrote: >>> &g

[Puppet Users] Re: Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
I just tested this on CentOS/Puppet 2.7.12 with the same result. - Adam On Friday, June 22, 2012 10:20:52 AM UTC-5, ad wrote: > > This is on Windows running 2.7.16. I haven't tested on Linux or other > versions. I'm still relatively new to Puppet and haven't used custom

[Puppet Users] Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
This is on Windows running 2.7.16. I haven't tested on Linux or other versions. I'm still relatively new to Puppet and haven't used custom functions before, so wanted to run this by the list before filing a bug. When calling custom functions from functions, arguments are being converted to deci

[Puppet Users] Geppetto and Ruby DSL

2012-06-19 Thread ad
Is there any trick to getting Geppetto to work with Ruby DSL defined types? The code validates and works, but Geppetto highlights uses of the resource as an error. Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this dis

[Puppet Users] Re: Puppet staging server

2012-03-07 Thread ad
Just wanted to add that if you decide to use environments, and you use an external node classifier, you have to set the environment in each node's puppet.conf for everything to work. I use foreman and set the environment using a puppet.conf template with the undocumented (I think) foreman_env varia

[Puppet Users] Re: Issues with Puppet 2.7.10: recommendation to stop using it

2012-02-20 Thread ad
Not to sound impatient (grin), but any idea of a rough eta for 2.7.11? I'm close to deploying puppet and have done all testing on 2.7.10, need to make a decision on whether to wait or start testing with 2.7.9 in the next few days. Thanks, Adam On Feb 19, 4:15 pm, Michael Stahnke wrote: > We ar

[Puppet Users] Re: Question about reusing classes/modules

2012-02-11 Thread ad
I'd recommend looking into using an external node classifier. I like Foreman, though it doesn't support parameterized classes yet (there is an easy workaround though). Adam On Feb 11, 3:24 pm, Tony C wrote: > Hello Everyone, > > I'm still pretty new with puppet so please bare with me. I tried >