Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-25 Thread Jeff McCune
On Thu, Jan 19, 2012 at 9:18 AM, Nigel Kersten wrote: > I'm looking for strong opinions on whether we should or shouldn't deprecate > the defined() function for Telly, the next major Puppet release this year. > > jcbollinger put it quite well in another thread: > > "Use of the "defined" function i

Re: [Puppet Users] Re: Mining hash field out of the /etc/shadow shadow file

2012-01-29 Thread Jeff McCune
filesystem permissions issue? /etc/shadow is locked down pretty hard and the Puppet Master usually runs with lower privileges using a service account. -- Jeff McCune -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gro

Re: [Puppet Users] intermodule dependency

2012-01-29 Thread Jeff McCune
elp shape the solution. 11832, 12243, 12246, 12249, 12250, 12251, 12253, 12255, 12256, 12257, 12258, 12259, 12260, [1] http://projects.puppetlabs.com/issues/11979 [2] http://projects.puppetlabs.com/projects/puppet/wiki/Anchor_Pattern -- Jeff McCune -- You received this message because you are sub

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-29 Thread Jeff McCune
On Fri, Jan 27, 2012 at 5:20 AM, Felix Frank wrote: > Jeff has made a strong point against using virtual resources in modules > at all, causing me to shift my own views as well. > If I understand him correctly, one of the chief problems is the high > probability of accidental collection/realisatio

Re: [Puppet Users] Re: Is puppet right for us?

2012-01-31 Thread Jeff McCune
loud. [1] http://forge.puppetlabs.com/puppetlabs/cloud_provisioner [2] https://github.com/puppetlabs/puppetlabs-cloud-provisioner -- Jeff McCune -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send em

Re: [Puppet Users] Re: Is puppet right for us?

2012-02-01 Thread Jeff McCune
ovisioner/tree/master/lib/puppet/cloudpack/scripts [2] https://github.com/puppetlabs/puppetlabs-cloud-provisioner/blob/master/lib/puppet/cloudpack/scripts/puppet-community.erb -- Jeff McCune -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] neatest way to determine a major version of centos/linux?

2012-02-03 Thread Jeff McCune
package provides utilities needed for LSB Compliant Applications. It also contains requirements that will ensure that all components required by the LSB that are provided by CentOS are installed on the system. -- Jeff McCune -- You received this message because you are subscribed to the Google Group

Re: [Puppet Users] Re: Puppet Agent / master configuration

2012-02-07 Thread Jeff McCune
et it to check in periodically when installing from a gem. -- Jeff McCune -- 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

Re: [Puppet Users] Creating user with random password (only once)

2012-02-08 Thread Jeff McCune
On Wed, Feb 8, 2012 at 11:30 AM, wernerbahlke wrote: > Hi, > > I want to create a user with a random password. Is there a way to only > execute the manifest once when the user does not exist but not once > the user is created? > For situations like this I use the puppet generate() function to cre

Re: [Puppet Users] Re: Puppet on Windows

2012-02-17 Thread Jeff McCune
On Thu, Feb 16, 2012 at 10:54 PM, Jay Ze wrote: > Sorry. Wanted to know what shortly means.. not soon ;-) > Shortly means by the end of March with that caveat there is a small chance it will not make it into the March release. Hope this helps, -Jeff -- You received this message because you are

Re: [Puppet Users] Installing Puppet/Facter without sudo/root access

2012-02-17 Thread Jeff McCune
On Feb 17, 2012, at 3:10 PM, Michael Stahnke wrote: > On Fri, Feb 17, 2012 at 1:43 PM, Jeff Sussna wrote: >> I want to use Puppet and Facter on a machine where I don't have sudo >> or root access privileges. I won't be using Puppet for anything that >> requires that level of access, so I should

Re: [Puppet Users] Puppet Agent on Windows

2012-02-27 Thread Jeff McCune
the service and the log fills up with: > Puppet (err): Could not run: fork() function is unimplemented on this > machine > > Igor, Are you running the Puppet agent as a windows service? If so, what is your configuration? Are you using a wrapper script? -Jeff McCune -- You r

Re: [Puppet Users] Re: Puppet Agent on Windows

2012-02-28 Thread Jeff McCune
d removing C:/Ruby187/lib/ruby/site_ruby/1.8/puppet and C:/Ruby187/lib/ruby/site_ruby/1.8/puppet.rb to avoid issues with dynamically loading code from a different version of Puppet. Hope this helps, -- Jeff McCune -- You received this message because you are subscribed to the Google Groups &quo

Re: [Puppet Users] puppet (ruby?) equivalent of defiend()

2012-03-02 Thread Jeff McCune
On Fri, Mar 2, 2012 at 10:37 AM, Peter Berghold wrote: > > In Perl we have the functionality of > > if ( defined($somevar) ) { > ... do something > } > if ( $somevar != undef) { ... } You can test this quickly using the --execute flag to puppet apply: % puppet apply -e 'if $foo == un

Re: [Puppet Users] ENC script always fails with exit status 1

2012-03-07 Thread Jeff McCune
On Tue, Mar 6, 2012 at 8:03 PM, Jack Harris Jr wrote: > Whenever I use puppet agent --test on a client I get the error "err: > Failed when searching for node sage.jack: Failed to find sage.jack via > exec: Execution of '/home/ldigitaldash/classifier sage.jack' returned 1:" > if i run the enc as a

Re: [Puppet Users] Mocking resources/classes in rspec-puppet

2012-03-07 Thread Jeff McCune
On Tue, Mar 6, 2012 at 10:53 PM, R. Tyler Croy wrote: > My module now depends on the puppetlabs/puppet-apt module for supporting > Debian/Ubuntu hosts, doing this however broke all my debian/ubuntu related > rspec-puppet tests. > > Is there a reasonable way to mock out resources (like apt::source

Re: [Puppet Users] Google Groups the best place?

2012-03-07 Thread Jeff McCune
On Wed, Mar 7, 2012 at 8:22 AM, jimbob palmer wrote: > A colleague of mine has pointed out that to post to Google Groups, he > must give his mobile phone number to Google to send an SMS or to call > him so that he can create a Google account. > > Are there any alternatives? Thanks. Has he or she

Re: [Puppet Users] Puppet Agent on Windows - High CPU Usage

2012-03-07 Thread Jeff McCune
On Wed, Mar 7, 2012 at 2:58 PM, Matt Mencel wrote: > I recently noticed that the Windows host where I installed the Puppet > agent for testing was thrashing the CPU. > > The culprit ended up being Ruby.exe *32 - "Ruby interpreter (CUI) > 1.8.7.334 [i386-mingw32]". This is actually being launched

Re: [Puppet Users] Puppet dns requests

2012-03-09 Thread Jeff McCune
On Fri, Mar 9, 2012 at 8:22 AM, Hugo Deprez wrote: > Dear community, > > I just saw that when I execute puppetd -vt I can have up to 80 DNS request > for the puppet server records. > I'm not entirely surprised we make so many requests, but this is slightly worrisome to me. Is this number of req

Re: [Puppet Users] How to fully remove a node from Puppet Dashboard (v1.2.4)

2012-03-09 Thread Jeff McCune
On Wed, Mar 7, 2012 at 8:22 PM, Romeo Theriault wrote: > I can delete a node in dashboard fine, but when I do a search with the > Inventory Search the node shows up again and also then shows up under > "Unreported". Any way to get rid of all references to the node? > Hi Romeo, I think this is a

[Puppet Users] Announcing stdlib module 2.3.0

2012-03-13 Thread Jeff McCune
ct on Windows - Jeff McCune * (#12357) Add puppet_vardir custom fact - Jeff McCune * (#12357) Make facter_dot_d look in Puppet[:confdir]/facts.d - Jeff McCune * (#12357) Add validate_absolute_path() function - Jeff McCune * (#12357) Add ability to display an error message from validate_re - Jeff M

Re: [Puppet Users] Load-Balancing puppetmaster

2012-03-14 Thread Jeff McCune
On Tue, Mar 13, 2012 at 10:30 PM, hai wu wrote: > I am following steps in 'Pro Puppet' book to setup load balancing for > puppetmaster. I am using passenger 3.0.11.9, ruby 1.8.7, puppet 2.7.12. > While things were fine when it is single node configuration, after following > the steps from 'Pro pup

Re: [Puppet Users] multi-line key/value pairs in Puppet Dashboard?

2012-03-19 Thread Jeff McCune
easily add multiple lines to > a Puppet-controlled file? Or should we not be using Dashboard for > that? > I'd really only use the Dashboard if I had to make the UI available through a browser. If you can get away with it, data in a YAML or JSON file on disk or in something like ext

Re: [Puppet Users] Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jeff McCune
This error message leads me to think the MSI isn't available on the Puppet Master: Could not evaluate: Could not retrieve information from environment deployment source(s) puppet:///modules/windows/FirefoxESR-10.0.2-de.msi at /var/lib/ environments/deployment/windows/manifests/init.pp:16 On the m

Re: [Puppet Users] Re: Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jeff McCune
On Thu, Mar 22, 2012 at 10:16 AM, Jay Ze wrote: > Ahh... OK Sorry.. My fault.. > No need to apologize I usually do this sort of thing once a week or so. =) > I forgot to commit the changes about the msi package to the git > repository... No wonder Puppet couldn't find it.. > > Thx ;-) > Anytim

Re: [Puppet Users] dsl check if port is open

2012-03-27 Thread Jeff McCune
On Tue, Mar 27, 2012 at 11:05 AM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > Can I check if a port is open for DSL? I need to check if the box has an > acl allowing the nagios server to connect via nrpe before writing nagios > config. If the port is closed I would like to defer the

Re: [Puppet Users] Re: dsl check if port is open

2012-03-27 Thread Jeff McCune
On Tue, Mar 27, 2012 at 2:24 PM, Krzysztof Wilczynski < krzysztof.wilczyn...@linux.com> wrote: > Ho David, > > > On Tuesday, 27 March 2012 19:05:09 UTC+1, David Garvey wrote: >> >> Can I check if a port is open for DSL? I need to check if the box has an >> acl allowing the nagios server to connect

Re: [Puppet Users] puppet with launchd - problem with hostname

2012-03-27 Thread Jeff McCune
On Tue, Mar 27, 2012 at 2:57 PM, David Alden wrote: > Hi, > > We're having a problem with our puppet install on our mac's. We've > setup a launchd plist following the instructions at: > > http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_With_Launchd > > The problem we're having is th

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Jeff McCune
On Thu, Mar 29, 2012 at 8:57 AM, Gary Larizza wrote: > > I tried to submit a bug report, but I just can list the open ones, can't >> make one myself. Is this intentional? How do I properly address this >> request? >> > > No problem. We've turned off Github Issues because we use our central > Red

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Jeff McCune
On Thu, Mar 29, 2012 at 8:48 AM, Pablo Fernandez wrote: > Dear stdlib'ers... > > I have just discovered the wonders of the parser functions, and got > impressed with the tens of functions that come with stdlib. First things > first... good work!!! Thanks!! > > And now the issue. It seems like the

Re: [Puppet Users] stdlib/range issue

2012-03-30 Thread Jeff McCune
On Thu, Mar 29, 2012 at 11:50 PM, Pablo Fernandez wrote: > Hi, > > It looks like range("host01", "host99") works fine, returning [ "host01", >> "host02", ..., "host98", "host99" ] >> >> Is this what you're looking for, or is it an issue only if the leading >> portion of the string is zero padded?

Re: [Puppet Users] How to execute a script from the server

2012-04-03 Thread Jeff McCune
On Apr 3, 2012, at 6:16 AM, mac01 wrote: > > Hi, > > How to only execute the script from the server instead of first copying the > file & then executing the script from puppet ? My answer depends on what you're trying accomplish. If you're trying to get some data to fill in a resource, then a

Re: [Puppet Users] Puppet Dashboard

2012-04-04 Thread Jeff McCune
On Wed, Apr 4, 2012 at 8:27 AM, niraj wrote: > Hi All, > I have somehow managed to configure the puppet dashboard, but it > is not displaying the nodes and the classes in the dashboard. It is > completely empty. Any one has any idea of configuring puppet dashboard > so that it displays all t

Re: [Puppet Users] node-specific resources outside of a general-purpose module

2012-04-08 Thread Jeff McCune
inside of a class within this module. The approach is pretty well documented in the pe_accounts section [1] of the PE manual. The pe_accounts module exposes defined resource types so I think the concepts apply to the scenario you've described. [1] http://docs.puppetlabs.com/pe/2.5/accou

Re: [Puppet Users] Re: using stdlib module

2012-04-09 Thread Jeff McCune
stdlib in the modulepath. Hope this helps, -Jeff McCune -- 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+u

Re: [Puppet Users] validate_re validation failures

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 4:45 PM, Shantanu wrote: > > I am using stdlib module's validate_re function to validate parameters > passed to a parameterized class as pasted here: > http://pastebin.com/7eYAeLEa > . > > The validation works fine however when I run this manifest locally > using 'puppet ap

Re: [Puppet Users] Puppet report with foreman

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 8:50 AM, niraj wrote: > Hi All, >I get a error message stating that > > Could not send report: Error 400 on server: Could not autoload > foreman: Function foreman already defined. > Sounds like Foreman is getting loaded twice for some reason. I don't think this is

Re: [Puppet Users] Taking github noise away from puppet-dev list

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 5:09 PM, Michael Stahnke wrote: > > We have a goal to foster development discussion from the community. > Because of that, I am proposing we move the github notifications to a > new list, puppet-commits. I realize this may have a consequence of > reducing patch/commit discu

Re: [Puppet Users] Re: validate_re validation failures

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 2:40 PM, Shantanu wrote: > > > On Apr 9, 4:06 pm, Jeff McCune wrote: > > On Mon, Apr 9, 2012 at 4:45 PM, Shantanu wrote: > > > > > I am using stdlib module's validate_re function to validate parameters > > > passed to a p

Re: [Puppet Users] Re: validate_re validation failures

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 3:23 PM, Shantanu wrote: > > > On Apr 9, 4:43 pm, Jeff McCune wrote: > > On Mon, Apr 9, 2012 at 2:40 PM, Shantanu wrote: > > > > > On Apr 9, 4:06 pm, Jeff McCune wrote: > > > > On Mon, Apr 9, 2012 at 4:45 PM, Shantanu > wr

Re: [Puppet Users] unable to validate clients.

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 2:52 PM, Brown, Rodrick wrote: > When trying to start clients I’m seeing the following error on the > client. > > ** ** > > pr 9 17:48:28 jc1lbuildtest puppet-agent[1779]: Could not retrieve > catalog from remote server: Error 403 on SERVER: Forbidden request: > jc1l

Re: [Puppet Users] Re: validate_re validation failures

2012-04-09 Thread Jeff McCune
On Mon, Apr 9, 2012 at 4:24 PM, Shantanu wrote: > This failure or rather input validation was intentional. I was testing > validate_re function usage to fail if a bad/unsupported parameter > value was passed. However initially I was seeing successful catalog > application even after getting Error

Re: [Puppet Users] puppetd locking up?

2012-04-10 Thread Jeff McCune
On Tue, Apr 10, 2012 at 2:35 PM, Jean Baptiste FAVRE wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > Seems to be the same as described here: > https://groups.google.com/forum/?fromgroups#!topic/puppet-users/N1XcMTth7mE > > Got the same issue with puppet 2.6.14 and various ker

Re: [Puppet Users] puppetd locking up?

2012-04-10 Thread Jeff McCune
On Tue, Apr 10, 2012 at 2:24 PM, David Alden wrote: > Hi, >  I've recently started to have a problem where some of my clients puppetd > processes are locking up (the puppetdlock file is several hours old). My > server is running puppet 2.7.12 on Centos 6.2 and my clients are running > puppet 2.

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-11 Thread Jeff McCune
On Tue, Apr 10, 2012 at 11:00 PM, Wil Cooley wrote: > I have been working on adding some predicate functions to puppetlabs-stdlib > that test things based on 'interfaces' and related facts. Sweet! > The functions themselves seem to work fine in my manifest-based smoketests, > but I am running in

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-11 Thread Jeff McCune
04262 seconds 4 examples, 0 failures Please feel free to reply here if you have any questions. We might also want to consider moving this thread to puppet-dev since it's developing a new function. Hope this helps, -Jeff On Wed, Apr 11, 2012 at 9:03 AM, Jeff McCune wrote: > On Tue, Apr 1

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-11 Thread Jeff McCune
On Wed, Apr 11, 2012 at 9:28 AM, Jeff McCune wrote: > Wil, > > I went ahead and re-worked the example specification. > > Please take a look at the commit message and the way I'm setting an > expectation that mocks the behavior of lookupvar for both Mac OS X and > Lin

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-12 Thread Jeff McCune
On Wed, Apr 11, 2012 at 9:59 PM, Wil Cooley wrote: > Unfortunately, I am unable to run any of the rspec tests--not just in > has_interface_with_spec.rb, but on any of the specs. They fail with: > >      Failure/Error: Unable to find matching line from backtrace >      NoMethodError: >        undef

Re: [Puppet Users] Supported Ruby Versions for Telly

2012-04-16 Thread Jeff McCune
On Mon, Apr 16, 2012 at 11:29 AM, Todd Zullinger wrote: > Gary Larizza wrote: >> >> Have you checked out the packages that Karanbir Singh has created?  They >> work fairly well --> http://centos.karan.org/el5/ruby187/ > > > They're also not updated for recent security vulnerabilities, which should

Re: [Puppet Users]

2012-04-16 Thread Jeff McCune
On Mon, Apr 16, 2012 at 4:14 AM, Afroz Hussain wrote: > Hi, > > I updated the Puppet Enterprise 2.0 to 2.5.1 and tried to restart the httpd > and getting following error in /var/log/pe-httpd/puppetdashboard.error.log > > [warn] RSA server certificate CommonName (CN) `pe-internal-dashboard' does >

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-16 Thread Jeff McCune
On Sat, Apr 14, 2012 at 8:34 PM, Wil Cooley wrote: > On Thursday, April 12, 2012 10:06:25 AM UTC-7, Jeff McCune wrote: >> >> The problem is that modules like stdlib need Puppet to be initialized >> in a manner suitable for testing.  Setting things like confdir and >

Re: [Puppet Users]

2012-04-17 Thread Jeff McCune
On Tue, Apr 17, 2012 at 3:52 AM, Afroz Hussain wrote: > Thanks a lot Jeff, > > yes, It is an warning but still I am not able to access the dashboard, > Pasted the error: > I'm unable to decode this message in a timely manner. =) Could you please paste the details of the error, perhaps with scre

Re: [Puppet Users] Re: Custom facts question on windows 2008 R2

2012-05-10 Thread Jeff McCune
On Thu, May 10, 2012 at 1:08 PM, mparrad wrote: > Hi guys, I realized that If I make the file udp_status.rb and I put on > D:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter, that's where I > installed puppet from the MSI file, and I use the Powershell script that I > made, I got the val

Re: [Puppet Users] Re: forcing user resource provider to be local files only?

2012-05-10 Thread Jeff McCune
On Thu, May 10, 2012 at 4:57 PM, Philip Brown wrote: > > Ah, thank you Gary. I did actually look at http://projects.** > puppetlabs.com/projects , but I > somehow missed the link to the stdlib project :-/ > > Nice to know that's in the works at least. >

Re: [Puppet Users] Puppet / scalability

2012-05-14 Thread Jeff McCune
x27;re simply ignorant and not willingly lying. Cheers, -- Jeff McCune -- 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 p

Re: [Puppet Users] Re: Puppet Sites. Your thoughts?

2012-05-14 Thread Jeff McCune
On Mon, May 14, 2012 at 1:14 PM, Trevor Vaughan wrote: > I have no issue with the PSK technique BUT, I do have a couple > questions/concerns: > > 1) Please keep the old syntax in place so that users don't have to run > about modifying scripts everywhere. Internal command aliases should > work fine

Re: [Puppet Users] Site module with Puppet Enterprise

2012-05-16 Thread Jeff McCune
On Wed, May 16, 2012 at 6:11 AM, Rufus McDufus wrote: > In the Puppet Enterprise docs below, they mention using a 'Site > Module' > > http://docs.puppetlabs.com/pe/2.5/quick_writing.html#using-a-site-module > > However I can't find any examples of people using such a method. I'm > interested in th

Re: [Puppet Users] Site module with Puppet Enterprise

2012-05-17 Thread Jeff McCune
On Thu, May 17, 2012 at 11:30 AM, Rufus McDufus wrote: > I had a bit of a play with this today and couldn't get anything working... Hrm, I'm sure we'll be able to sort it out. > Are you actually trying to overload the real motd module? No, the module named site and the module named motd can exi

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-21 Thread Jeff McCune
On Mon, May 21, 2012 at 1:24 AM, Luke Bigum wrote: > I agree with Gary, Dan, it's probably the lack of data in the > 'v_ingroups' key in your YAML that create_resources() is complaining about. > If it truly can't pass an empty key/val pair you could do something hacky > like use the string "unde

Re: [Puppet Users] Puppet First Run after Install failing in module pe_mcollective

2012-05-22 Thread Jeff McCune
What version of PE and RHEL? I've seen this problem a couple of times and I believe we have a fix already. I'll just need to track it down and make sure it's the same issue. -Jeff On Tuesday, May 22, 2012, Shiva wrote: > I am installing puppet enterprise manager (master) on a RHEL box. > Though

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-22 Thread Jeff McCune
nto the office. -Jeff > I was able to more forward past this problem after figuring that out. > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > &g

Re: [Puppet Users] could not retrieve information from environment

2012-05-23 Thread Jeff McCune
On Wed, May 23, 2012 at 9:14 AM, Matt F wrote: > Greetings. I am trying to set up a test puppet server in my > environment to evaluate windows clients. On the server side, I am > using puppet 2.7.14 (from the repos). I'm using the 2.7.14 windows 64 > bit on the client (windows 2008 R2). I have an

Re: [Puppet Users] Re: could not retrieve information from environment

2012-05-23 Thread Jeff McCune
On Wed, May 23, 2012 at 9:56 AM, Matt F wrote: > Sure: > > puppet master --configprint certname > myserver01.example.com > > > C:\Windows\system32>puppet agent --trace > How about puppet agent --configprint server ? And sorry for being unclear, could you instead please try puppet agent --test

Re: [Puppet Users] Re: could not retrieve information from environment

2012-05-23 Thread Jeff McCune
On Wed, May 23, 2012 at 11:04 AM, Matt F wrote: > Thanks Jeff. Sorry, my security people block github... > > C:\Windows\system32>puppet agent --configprint server > myserver01.example.com Good, this matches up with the certname configured on the puppet master. > err: /File[C:/ProgramData/Pupp

Re: [Puppet Users] Announcing Windows registry module initial release

2012-05-23 Thread Jeff McCune
On Wed, May 16, 2012 at 4:53 PM, Josh Cooper wrote: > Hello, > > We're pleased to announce the first release of the Windows registry > module, version 0.1.0. > The 0.1.0 release contained a bug that prevented default values from being managed correctly. We've just released 0.1.1 to the forge wh

Re: [Puppet Users] Re: could not retrieve information from environment

2012-05-23 Thread Jeff McCune
On Wed, May 23, 2012 at 12:30 PM, Matt F wrote: > Yeah, looks like the puppetmasterd stopped at some point. There is no > firewall. Here's the new client outout. Per the errors below, I just > verified that the times are in sync between the client and the server. I'm not exactly sure what the r

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-23 Thread Jeff McCune
On Tue, May 22, 2012 at 8:50 AM, Jeff McCune wrote: > On Tuesday, May 22, 2012, Dan White wrote: > >> I found an answer to this particular issue. Thanks for the reminder so I >> can share the answer: >> >> I found the hiera/yaml way to indicate an empty array ! &g

Re: [Puppet Users] Re: could not retrieve information from environment

2012-05-24 Thread Jeff McCune
On Thu, May 24, 2012 at 10:02 AM, Matt F wrote: > I ended up installing yet another puppetmaster, and I think that resolved > my cert issues. However, my client still cannot get a test file from the > puppetmaster. There is NO firewall or selinux running on the server (both > disabled). > > files

Re: [Puppet Users] Re: could not retrieve information from environment

2012-05-24 Thread Jeff McCune
On Thu, May 24, 2012 at 12:35 PM, Matt F wrote: > Do I _have_ to use a module? I'm starting out with the very basics. All I > want to do is copy a single file. would this work with a class instead of a > module? I'm starting to read your "Pro Puppet" book... and on pg 20 modules > are described a

Re: [Puppet Users] Re: Puppet First Run after Install failing in module pe_mcollective

2012-05-24 Thread Jeff McCune
On Thu, May 24, 2012 at 7:41 AM, Shiva wrote: > Jeff > > Have you been able to identify the fix.. I am kinda stuck and havent > been able to move forward with this.. > I haven't yet. I'll be in IRC today and will look at this right now. I'm jmccune on freenode, please ping me there and we can w

Re: [Puppet Users] Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-24 Thread Jeff McCune
On Thu, May 24, 2012 at 6:06 AM, tiochan wrote: > Hi all! > > I'm new on puppet, and I making my firsts classes. > Welcome! > I have defined an example class to install 7Zip on Windows servers, it > runs right, but I would like to improve it. > The problem is that each time that I execute the

Re: [Puppet Users] Puppet First Run after Install failing in module pe_mcollective

2012-05-24 Thread Jeff McCune
On Tue, May 22, 2012 at 6:58 AM, Shiva wrote: > I am installing puppet enterprise manager (master) on a RHEL box. > Though the install itself succeeds without any issues, the first run > of puppet when it tries to deploy the pe_mcollective module fails with > the following error. > > Message: > ch

Re: [Puppet Users] question about Cusctom Facts

2012-05-24 Thread Jeff McCune
On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. wrote: > But my question was can I change the path where puppet copi the custom > facts? > Yes, this is the plugindest puppet agent option. What is it currently set to? You can check using puppet agent --configprint plugindest > because when I r

Re: [Puppet Users] question about Cusctom Facts

2012-05-25 Thread Jeff McCune
On Fri, May 25, 2012 at 6:17 AM, mparrad wrote: > Hi Jeff > > > On Thursday, May 24, 2012 5:50:03 PM UTC-4, Jeff McCune wrote: >> >> On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. >> wrote: >> >>> But my question was can I change the path where pu

Re: [Puppet Users] Re: Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-25 Thread Jeff McCune
On Fri, May 25, 2012 at 5:43 AM, jcbollinger wrote: > > On May 25, 3:58 am, tiochan wrote: > > This stanza: > > > file { 'C:\\SOFTWARE\\7z920.msi': > > source => 'puppet://puppet.upc.edu/modules/windows/7z920.msi', > > } > > tells Puppet that there is supposed to be a file C:\\SO

Re: [Puppet Users] Re: Puppet First Run after Install failing in module pe_mcollective

2012-05-29 Thread Jeff McCune
On Tue, May 29, 2012 at 6:19 AM, Shiva wrote: > Jeff > > This is where the keytool is > > lrwxrwxrwx. 1 root root 49 Apr 27 08:18 keytool -> /usr/lib/jvm/ > jre-1.6.0-openjdk.x86_64/bin/keytool > That looks correct. What version of the package do you have installed? You can check using: rpm -qf

Re: [Puppet Users] SSL emailAddress interpreted as part of the CN when using puppet with an external PKI

2012-05-31 Thread Jeff McCune
There's also a whole section on auth.conf at docs.puppetlabs.com. -- Jeff McCune On Thursday, May 31, 2012 at 5:27 AM, Andrew Wasilczuk wrote: > Hello, > > I'm currently integrating puppet with an external openssl based PKI and > I stumbled across a problem which

Re: [Puppet Users] Parameterizing params?

2012-06-01 Thread Jeff McCune
On Thu, May 31, 2012 at 4:39 PM, Wil Cooley wrote: > I'm probably trying to solve a problem that I don't really need to > solve, but I'm hard-headed enough that I'm going ahead anyway... > > I am using foo::params to centralize things like file paths, package > names, etc. that vary by $::osfamil

Re: [Puppet Users] SSL emailAddress interpreted as part of the CN when using puppet with an external PKI

2012-06-01 Thread Jeff McCune
On Fri, Jun 1, 2012 at 5:23 AM, Andrew Wasilczuk wrote: > Hi Jeff > > On Thu, May 31, 2012 at 08:55:29AM -0700, Jeff McCune wrote: > >There are two identities in Puppet that relate to the security model. > The > >first identity is the certname and the

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-01 Thread Jeff McCune
On Fri, Jun 1, 2012 at 1:39 AM, Brian Gupta wrote: > To be clear, unique hostnames are not a must. Unique certnames are, > which by default are based on hostnames, but they don't have to be. > You can programmatically generate those using something like UUID > (Which is what Foreman uses for cloud

Re: [Puppet Users] How do puppet transform group with username in /etc/sudoers file

2012-06-02 Thread Jeff McCune
On Thursday, May 31, 2012 at 6:52 AM, mac01 wrote: > > Hi, > > How can I transform group in sudoers file where users are added as "%admin > ALL=(ALL) ALL" with individual user name which should fetch username from my > database ? I'm not quite clear on the question you're asking. The most com

Re: [Puppet Users] Appending to facts through REST api

2012-06-04 Thread Jeff McCune
You are correct. The REST API for facts does not have the ability to merge a new fact and value into the existing set. You could retrieve the current set, update it and replace it. Coukd you let me know what you're trying to accomplish? Maybe there is another approach. -Jeff On Jun 4, 2012, at

Re: [Puppet Users] rspec spec_helper

2012-06-04 Thread Jeff McCune
On Sun, Jun 3, 2012 at 8:06 AM, Markus Falb wrote: > Hi, > I was playing with rspec and every time I find a possible improvement > that could be made in spec_helper or rakefile I have to change it in > every module that is using rspec tests. So maybe these things could be > centralized, I thought

Re: [Puppet Users] Re: node yaml files on master

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 3:48 AM, denmat wrote: > Think I might be already answering my own question but it appears that > this is a change in v3 - have downgraded to v2.7 and it appears. In Puppet 2.7 this is handled by the save method called on the node instance of Puppet::Node::Yaml which is a s

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-04 Thread Jeff McCune
008C3-708C-460B-80F5-38C221F7A479 # allow nodes to retrieve their own catalog (ie their configuration) path ~ ^/catalog/([^/]+)$ method find allow $1 > > On Fri, Jun 1, 2012 at 10:01 PM, Jeff McCune wrote: >> On Fri, Jun 1, 2012 at 1:39 AM, Brian Gupta >> wrote: >>> &

Re: [Puppet Users] How do I get a PE 2.5.1 agent to run as a non-root user in Solaris?

2012-06-04 Thread Jeff McCune
On Wed, May 30, 2012 at 10:45 AM, Berry Sizemore wrote: > Hi, > > Some months ago I got PE 1.5.6 agent running as a non-root user on Solaris > 10.  I upgraded my agents to PE 2.5.1 and now I cannot successfully start > them as non-root user.  I get no error message or logs. Berry, Would you mind

Re: [Puppet Users] Re: Autoscaling with Puppet

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 1:01 PM, Matthew wrote: > I'm in the same boat here. I have a puppet master server that provides > config to a few different classes of machines. I'm struggling with a way to > have instances from one autoscale group come up, and attach to a > "webgroup-a" or "webgroup-b" pu

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 10:17 PM, ankush grover wrote: > On Mon, Jun 4, 2012 at 10:56 PM, Jeff McCune wrote: >> On Sun, Jun 3, 2012 at 11:48 PM, ankush grover >> wrote: >>> My approach will be like this >>> >>> generate uuid through uuid

Re: [Puppet Users] Puppet First Run after Install failing in module pe_mcollective

2012-06-05 Thread Jeff McCune
On Tue, May 22, 2012 at 6:58 AM, Shiva wrote: > I am installing puppet enterprise manager (master) on a RHEL box. > Though the install itself succeeds without any issues, the first run > of puppet when it tries to deploy the pe_mcollective module fails with > the following error. > > Message: > ch

Re: [Puppet Users] file path problems

2012-06-06 Thread Jeff McCune
The $path_logs variable doesn't hold the value you expect. You might try printing the variable with notice() or a notify resource. -Jeff On Jun 6, 2012, at 7:57 AM, "llow...@oreillyauto.com" < llow...@oreillyauto.com> wrote: In my code, I have the following snippet: file { 'es_conf':

Re: [Puppet Users] Not using expired node for targethost from cache; expired

2012-06-06 Thread Jeff McCune
On Wed, Jun 6, 2012 at 10:00 AM, Ryan Coleman wrote: > On Wed, Jun 6, 2012 at 8:39 AM, Berry Sizemore > wrote: >> Does it matter that it is a core class that comes with Puppet Enterprise? > > Nope. That's a just a module that comes pre-deployed to a portion of > the modulepath. Try `puppet modul

Re: [Puppet Users] SSL emailAddress interpreted as part of the CN when using puppet with an external PKI

2012-06-06 Thread Jeff McCune
On Sat, Jun 2, 2012 at 7:59 AM, Andrew Wasilczuk wrote: > Hi Jeff, > >>    You may be running into a bug in Puppet but I'm not entirely sure yet... >>    What web server are you using to terminate the SSL connection from the >>    agent to the master?  Is it simply the built in one provided by `pu

Re: [Puppet Users] Not using expired node for targethost from cache; expired

2012-06-06 Thread Jeff McCune
On Wed, Jun 6, 2012 at 11:49 AM, Berry Sizemore wrote: > On the puppet master /opt/puppet/share/puppet/modules/pe_accounts does > exist, but not on the either node (one that works and one that gets the > error message). The module not being there is the problem. =) -Jeff -- You received this

Re: [Puppet Users] Problem with Virtual Resource

2012-06-06 Thread Jeff McCune
On Wed, Jun 6, 2012 at 4:26 PM, Worker Bee wrote: > Hello Everyone; > > I am stuck... > > I am testing creating virtual resources and having no luck at all.  I am not > getting any errors when I execute puppet agent --test but, the user account > is never getting created.  I would be so grateful i

Re: [Puppet Users] rubycas-server login fail

2012-06-08 Thread Jeff McCune
Could you post the trace of the error and some entries from the logs? How did you track it down to here? -Jeff On Friday, June 8, 2012, Pavel Drobushevich wrote: > Hi all, > > I've installed Puppet Enterprise 2.5 on Ubuntu 10.04.4 ("minimal" version > on our new hosting provider, previous on am

Re: [Puppet Users] file_line type issue, possible bug

2012-06-10 Thread Jeff McCune
On Sun, Jun 10, 2012 at 3:56 AM, Ryan Bowlby wrote: > Hi All, > > I am using the file_line type included in stdlib to add a line to > /etc/sudoers. On each run the sudo module replaces /etc/sudoers, then > file_line resource adds the line back. It's happening on each run and I > can't seem to figu

Re: [Puppet Users] file_line type issue, possible bug

2012-06-10 Thread Jeff McCune
On Sun, Jun 10, 2012 at 12:43 PM, Ryan Bowlby wrote: > Thanks Jeff, I'll heed that advice. Wouldn't it make sense though to have > the file resource "respect" changes made by file_line. Behind the scenes, if > the file resource were able to know about the file_line additions and could > remove the

Re: [Puppet Users] file_line type issue, possible bug

2012-06-10 Thread Jeff McCune
On Sun, Jun 10, 2012 at 1:04 PM, Nan Liu wrote: > If you are fully managing the file use RI puppet-concat module instead of > file and file_line. I see it as > > file: fully managed file or erb template. > file_line: partially managed file. > concat: fully managed file requiring per line resource

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-11 Thread Jeff McCune
On Mon, Jun 11, 2012 at 4:15 AM, Denmat wrote: > Hi, > > Do you actually have an apache vhost configured for the puppet master? Yeah, could you paste the apache configuration that's setting up the virtual host (vhost) and opening the socket on port 8140? Something like this (This is the Puppet E

Re: [Puppet Users] "decryption failed or bad record mac" errors

2012-06-11 Thread Jeff McCune
On Mon, Jun 11, 2012 at 11:34 AM, wrote: > I inherited an old installation (0.24) that's been trouble-free until > recently, when I started getting these error messages from a single > machine: > > Failed to retrieve current state of resource: Certificates were not > trusted: SSL_read:: decryptio

  1   2   3   4   5   >