Re: [Puppet Users] Error with service: invalid byte sequence in US-ASCII

2013-09-03 Thread William Van Hevelingen
I get the same error when running puppet-lint puppet 3.1.x regression? rake aborted! invalid byte sequence in US-ASCII /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in `[]'

Re: [Puppet Users] Error with service: invalid byte sequence in US-ASCII

2013-09-03 Thread William Van Hevelingen
Found the bug that Jeff created http://projects.puppetlabs.com/issues/11303 On Mon, Sep 2, 2013 at 11:42 PM, William Van Hevelingen wva...@gmail.comwrote: I get the same error when running puppet-lint puppet 3.1.x regression? rake aborted! invalid byte sequence in US-ASCII

Re: [Puppet Users] Error with service: invalid byte sequence in US-ASCII

2013-09-03 Thread William Van Hevelingen
Actually the umbrella bug is now. http://projects.puppetlabs.com/issues/20522 On Mon, Sep 2, 2013 at 11:47 PM, William Van Hevelingen wva...@gmail.comwrote: Found the bug that Jeff created http://projects.puppetlabs.com/issues/11303 On Mon, Sep 2, 2013 at 11:42 PM, William Van Hevelingen

Re: [Puppet Users] Puppet under HA Environment

2013-09-03 Thread Matthew Burgess
On 2 September 2013 17:01, Stuart Cracraft smcracr...@me.com wrote: How can this be randomized within a range? I don't think it can; it suffers from the same issue as splay does, which I explained in some detail last week. My fear is that all the boxes will request at a similar some day,

[Puppet Users] Re: Incorrect return code for failed exec

2013-09-03 Thread Igor Berger
As I mentioned, I'm running into this issue when the service fails to start. sc start returns a failure, Puppet mentions it in the log file. The problem is that puppet apply returns 0 (success) to the shell when sc start fails. However, puppet apply --detailed-exitcodes returns a failure to the

Re: [Puppet Users] Puppet for Managing Windows Nodes??

2013-09-03 Thread Rob Reynolds
Jason, We have the built in Windows Package provider that you can use to install an MSI from the network share. This looks something like this (from http://docs.puppetlabs.com/windows/writing.html#packagepackage): package { 'Name in Programs and Features': ensure = installed,

Re: [Puppet Users] Puppet for Managing Windows Nodes??

2013-09-03 Thread Rob Reynolds
Because you are trying out a proof of concept, there is also a chocolatey provider that I want to mention that will handle packaging on Windows. There is a hands on lab that you can check out - https://github.com/chocolatey/puppet-chocolatey-handsonlab On Tue, Sep 3, 2013 at 9:29 AM, Rob

Re: [Puppet Users] Re: Incorrect return code for failed exec

2013-09-03 Thread Rob Reynolds
What does cmd /c sc start MyService return? On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger codewiz...@gmail.com wrote: As I mentioned, I'm running into this issue when the service fails to start. sc start returns a failure, Puppet mentions it in the log file. The problem is that puppet apply

Re: [Puppet Users] Re: Incorrect return code for failed exec

2013-09-03 Thread Igor Berger
It returns 1053. The sc start command prints: [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. You can easily reproduce it by registering a service with a non-existing executable: sc create MyService binPath=

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Worker Bee
I am pretty sure I still have something wrong with my set up but, I just cannot seem to see what it is... Notice if I attempt to decrypt vi the command line and do not indicate env=live, it fails.. [root@me puppet]# hiera -c /etc/puppet/hiera.yaml rootpwd calling_module=motd nil [root@me

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Luke Bigum
I just started a big reply to your last email and it looks like you've figured most of it out. At least your not still thinking manifests your problem is in hiera.yaml ;-) On Tuesday, September 3, 2013 5:04:19 PM UTC+1, Worker Bee wrote: I am pretty sure I still have something wrong with my

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Worker Bee
Hi Guys; I really appreciate your help and apologize for the continued questions... however, apaprently, I am missing something here. I cannot get this working. I have set hiera-gpg up as per the docs I can find but, I still cannot seem to get my manifests correct. If someone would kindly

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Luke Bigum
... That's not explained very well but I can't think of a better way to phrase it yet. Does that help so far? Perhaps I can show you what I mean. Run these commands and look at the debug output in what files Hiera is trying to open, see how it's interpreting each variable you add on the

[Puppet Users] Module team update: 2013-08-09 - 2013-09-03

2013-09-03 Thread Ashley Penney
Going forward I'm going to aim for this twice a month as weekly is too frequent and I forget to write them every week. This update is dedicated to blkperl who keeps me writing them by reminding me every time I forget. It's been a busy month and with Puppetconf falling in the middle of the month

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Frederiko Costa
Excellent.. thanks! And now sorry for the long email... hopefully I'm clear enough. I'd also to expose one example that I have here in my company. I'm not too confident of how we setup roles and profiles, specially when it comes to add hiera into the game. Say we have a module called

Re: [Puppet Users] Puppet under HA Environment

2013-09-03 Thread Brad
Stuart, If I'm understanding your needs correctly, this may be what you're looking for: http://www.devco.net/archives/2010/03/17/scheduling_puppet_with_mcollective.php On Monday, September 2, 2013 11:01:46 AM UTC-5, Stuart Cracraft wrote: How can this be randomized within a range? I

[Puppet Users] failed to install pkg on Solaris node

2013-09-03 Thread Jan Walczuk
Hi everyone. I've recently started testing puppet enteprise. Puppet master is on RHEL 6.4, my node connected for test purposes is Solaris 10u10. Puppet master is 3.0.1, fresh installation. Using Advanced tasks I'm trying to install PKG from CSW. I'm selecting node for installation, in field

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-03 Thread Ken Barber
Is it acceptable to do the search based on 'certname'? ie: curl -G 'http://localhost:8080/v2/facts' --data-urlencode 'query=[and,[~,certname,puppetdb?],[or,[=,name,ipaddress],[=,name,hostname]]]' ken. On Mon, Sep 2, 2013 at 7:00 AM, Klavs Klavsen kl...@enableit.dk wrote: This gives me the

[Puppet Users] Re: How to override $::operatingsystem fact

2013-09-03 Thread SM
Just for the record, this is the code I'm using: Facter.add(:operatingsystem) do confine :kernel = [ 'Linux' ] has_weight 100 setcode do if FileTest.exists?(/usr/bin/pveversion) then Proxmox end end end Facter.add(:operatingsystemrelease) do confine :kernel =

[Puppet Users] Re: Random Yum errors during provisioning

2013-09-03 Thread Glenn Poston
Any ideas??? On Friday, June 28, 2013 9:38:29 AM UTC-4, Glenn Poston wrote: Running Amazon Linux (which is essentially Centos5.5). Anyone seen random yum errors like this one? I don't think it's necessarily related to Puppet, but it randomly fails my puppet runs and I don't know how to

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Worker Bee
Hi Luke; So, what you said does make sense and, I did make the changes you explained to my manifest and it worked! :) I am confused though and I am so sorry to be so ignorant but, what does %{location} refer to? Thank you VERY, VERY much! bee On Tue, Sep 3, 2013 at 12:18 PM, Luke

Re: [Puppet Users] Hiera and hiera-gpg

2013-09-03 Thread Worker Bee
Ughh; and I spoke too soon for some reason, it is not decrypting when running via puppet run/manifest (I had mistakenly left the unencrypted in the directory and it was failing back to reading the yaml_ Thanks! On Tue, Sep 3, 2013 at 4:03 PM, Worker Bee beeworke...@gmail.com wrote:

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Chad Huneycutt
LIke this: class profile::zabbix20::server ( bind_ip, ... ) { class { '::zabbix20::server': bind_ip = $bind_ip, ... } } Then your hieradata would set in a.b.c.d.yaml: profile::zabbix20::server::bind_ip: 1.2.2.3 in x.y.z.w.yaml: profile::zabbix20::server::bind_ip: 1.2.3.4 That

[Puppet Users] hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-03 Thread Worker Bee
Has anyone been able to get this working? For some reason, I am unable to get values decrypted via a puppet run, despite being able to decrpyt via command line I am starting to wonder if there is a bug or something I am missing?? I SO appreciate ANY help!

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Frederiko Costa
Thanks Chad ... I understand it from the syntax point of view, but my point is more of a conceptual question in how to apply Craig's concepts using hiera with parasitized classes ... in that case, the node definition using hiera declares one (and only one role). The profile would define the

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Ramin K
Without hiera you have all those extra classes you posted below including this very specific one. I think your classes are too complicated to begin with regardless of where the data is, but the lack of data separation probably sent you down that path. class role::zabbix20::server::dc1 {

Re: [Puppet Users] hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-03 Thread Mike Newton
We're still using Puppet 2.7, but looking at our puppet-gpg config the only major difference I see is we use :key_dir for the gpg key's instead of the puppet users home directory. So our hiera.yaml file looks like: # Hiera configuration file --- :backends: - yaml - gpg :yaml: :datadir: