Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-27 Thread Poil
Hi I use this solution (one certs) : https://gist.github.com/ahpook/1182243, I deploy the certificate via cfn-init and I've a pre-script for settings the hostname of the server via a reverse dns query on my AutoScale group. Best regards Le 24/05/2014 07:54, Bad Tux a écrit : So I'm using A

Re: [Puppet Users] Re: Puppet 3.6.0... and scaling?

2014-05-27 Thread Andy Parker
On Tuesday, May 27, 2014 5:53:29 AM UTC-7, Konrad Scherer wrote: > > On 14-05-22 03:21 PM, Daniele Sluijters wrote: > > The environment caching is already there, use the environment_timeout > > setting. Mine is set to unlimited and I reload at deploy time by > > touching tmp/restart.txt. This so

[Puppet Users] Problem with duplicate params

2014-05-27 Thread mike
Hello, I've create my user from Hiera but now wish configure secondary group (setting groups value) but i've problem when the secondary group not exists in the node and run puppet agent: [..] Error 400 on SERVER: Duplicate declaration: Group[test] is already declared in file /etc/

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-27 Thread Bad Tux
On Tuesday, May 27, 2014 10:00:43 AM UTC-7, Peter Romfeld wrote: > > hey, > > if you dont use cross aws/datacenter and only aws i would recommend to use > use ops-works.. its chef based but for aws only its quite nice > I trialed OpsWorks but it didn't handle some functionality that I needed. I

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-27 Thread Kylo Ginsberg
On Tue, May 27, 2014 at 7:16 AM, Chuck wrote: > The ability to turn off the deprecation messages would be great. The only > things these messages provide are a drain on logging resources, noise in > the logs, and confusion from end users. > > Seems like we have consensus on an ignore-deprecation

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] package resource on windows: ensure version doesn't work

2014-05-27 Thread Tomer Paz
oh I see now that the 'bug' was reported as redime of the 'feature' https://projects.puppetlabs.com/issues/21415 WAD (work as designed) :) And the status is still "Unresolved" hence that's definitely my issue! Thanks Ron, saved me lots of time... I will convince people to use a 'readonly' featur

Re: [Puppet Users] package resource on windows: ensure version doesn't work

2014-05-27 Thread Tomer Paz
Thank you Rob for the quick revert. I did check if the name is exactly what shows up with "puppet resource package" and then I found out that only the MS (and few other 3rd-party SW) were listed by the puppet command, while our in-house MSIs aren't listed, sorry I forgot to mention that in the

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-27 Thread Peter Romfeld
hey, if you dont use cross aws/datacenter and only aws i would recommend to use use ops-works.. its chef based but for aws only its quite nice > On Sunday, May 25, 2014 11:21:20 AM UTC-7, Jakov Sosic wrote: > > Can you somehow get list of active nodes from balancer? You could use > that l

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-27 Thread Bad Tux
On Sunday, May 25, 2014 11:21:20 AM UTC-7, Jakov Sosic wrote: > > Can you somehow get list of active nodes from balancer? You could use > that list in a daily cron to do a 'puppet cert clean' and remove all > other certificates? > > I can get a list of active nodes in the constellation, the inst

Re: [Puppet Users] package resource on windows: ensure version doesn't work

2014-05-27 Thread Rob Reynolds
Also this feature just came out with 3.4.0 - see https://tickets.puppetlabs.com/browse/PUP-272 Note that there is some upcoming work with the Windows Package Provider - https://tickets.puppetlabs.com/browse/PUP-393 , notably you may want to explore https://tickets.puppetlabs.com/browse/PUP-400 (an

Re: [Puppet Users] package resource on windows: ensure version doesn't work

2014-05-27 Thread Rob Reynolds
On Tue, May 27, 2014 at 5:55 AM, Tomer Paz wrote: > Hi. > I have an issue with puppet package resource not verifying Version well > for MSI packages on windows. > I tried both puppet 3.4 and latest 3.6, the matters remains the same. > When using > ensure => "installed" > it works fine and puppe

[Puppet Users] Re: Patterns for building configs using hashes & arrays

2014-05-27 Thread jcbollinger
On Sunday, May 25, 2014 6:16:28 PM UTC-5, Jesse Cotton wrote: > > I am new to puppet and decided to really get my feet wet by writing a > duplicity module (https://github.com/JCotton1123/puppet-duplicity.git). I > am struggling to deal with the fact that variables are immutable and cannot > be

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-27 Thread Ritesh Nanda
Thanks John, Thanks for help. Regards, Ritesh Nanda On Tue, May 27, 2014 at 7:54 AM, jcbollinger wrote: > > > On Friday, May 23, 2014 3:37:33 PM UTC-5, Ritesh Nanda wrote: >> >> Hi John, >> >> Thanks for reply again . >> >> *That totally does not make sense. I'm not sure exactly how you would

Re: [Puppet Users] Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

2014-05-27 Thread Atom Powers
I struggled with this for a while on Friday. The error doesn't occur until a few minutes after WebBrick is started. I found that if I don't define an environment for the host then the error doesn't occur. I wasn't able to get it working with an environment, even with directory environments setup co

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Felipe Salum
I have prod, qa, staging all using autoscaling and my master uses node regex based on the - hostnames to apply the right roles modules. I have been using it for a long time and no issue at all to use the full power of the cloud and autoscale :) On Tue, May 27, 2014 at 8:34 AM, Jeremy T. Bouse w

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Jeremy T. Bouse
On 27.05.2014 11:06, Felipe Salum wrote: I work around this by using a cloudinit script during the autoscale instance launch that gets the instance-id of the instance, rename the hostname and update /etc/hosts before running puppet. Cloud-init helps but there are limitations. I use cloud-init

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Felipe Salum
I work around this by using a cloudinit script during the autoscale instance launch that gets the instance-id of the instance, rename the hostname and update /etc/hosts before running puppet. On Friday, May 23, 2014 10:54:04 PM UTC-7, Bad Tux wrote: > > So I'm using Amazon's amazing EC2 autoscal

Re: [Puppet Users] template and scope

2014-05-27 Thread jcbollinger
On Tuesday, May 27, 2014 9:40:57 AM UTC-5, jcbollinger wrote: > > > [...] Puppet does not have nested scopes. > I confess that that's a bit of a simplification (see the docs I linked previously), but certainly the code presented does not create any scope nesting other than global / local. J

Re: [Puppet Users] template and scope

2014-05-27 Thread jcbollinger
On Tuesday, May 27, 2014 6:53:29 AM UTC-5, Felix.Frank wrote: > > On 05/26/2014 06:40 PM, Fabrice Bacchella wrote: > > Is that normal that params1 is part of the context in both case, but not > param2 ? > > Ugh. Scope semantics. It *does* seem a little weird. Here's my take: > I don't think

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-27 Thread Chuck
The ability to turn off the deprecation messages would be great. The only things these messages provide are a drain on logging resources, noise in the logs, and confusion from end users. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 2:37:16 PM UTC-5, Rob Reynolds wrote: > > > > > On Fri, May 23, 2014 at 12:00 PM, Kylo Ginsberg > > > wrote: > >> On Fri, May 23, 2014 at 2:58 AM, Paul Seymour >> > wrote: >> >>> +1 - let's file a bug report. >>> >>> https://tickets.puppetlabs.com/browse/PU

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 3:37:33 PM UTC-5, Ritesh Nanda wrote: > > Hi John, > > Thanks for reply again . > > *That totally does not make sense. I'm not sure exactly how you would > apply a pre-compiled catalog to a random machine.* > > This setup would leverage vmware appdirector and integrati

[Puppet Users] OpenNebula Techdays and Puppet

2014-05-27 Thread Jaime Melis
Hi, we are organizing two OpenNebula [1] Cloud Technology Days in the US in June: Boca Raton, Miami, FL (June 19th) http://opennebula.org/community/techdays/bocaraton2014/ Fremont, Bay Area, CA (June 24th) http://opennebula.org/community/techdays/bayarea2014/ They are two completely free event

Re: [Puppet Users] node name in certificates

2014-05-27 Thread Jeremy T. Bouse
On 26.05.2014 12:48, Sri Krishna G wrote: hi all, i am using VM clones for testing puppet. when i try to add a new node, though i change the host name definition, the certificates generated still show the old node name. [root@puppet-razor ssl]# ls [root@puppet-razor ssl]# pwd /etc/puppetlabs/

Re: [Puppet Users] Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

2014-05-27 Thread Anton Lindstrom
There's a ticket open for that issue at https://tickets.puppetlabs.com/browse/PUP-2659 // Anton On Mon, May 26, 2014 at 7:21 PM, wrote: > After upgrading to Puppet 3.6.1 I get this error: > > Warning: Error 400 on SERVER: no 'environments' in > {:root_environment=># @config_version=nil, @manif

[Puppet Users] Re: Puppet and Dpkg Locks ...

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 9:01:26 PM UTC-5, Matt W wrote: > > When you have hundreds of hosts and run Puppet every 30 mins (splayed > across the hour), it seems that you end up running into various 'dpkg' > locks fairly randomly and at a surprisingly high occurrence (once or twice > a day at lea

Re: [Puppet Users] Re: Puppet 3.6.0... and scaling?

2014-05-27 Thread Konrad Scherer
On 14-05-22 03:21 PM, Daniele Sluijters wrote: The environment caching is already there, use the environment_timeout setting. Mine is set to unlimited and I reload at deploy time by touching tmp/restart.txt. This so far seems to work really well. Thanks for the suggestion. I have also been deal

[Puppet Users] Re: starting hiera + ntp module

2014-05-27 Thread Matthew Herzog
I'm following the instructions on http://docs.puppetlabs.com/hiera/1/complete_example.htm too and they do not work. Boos to puppetlabs. Fix that page. On Wednesday, October 9, 2013 11:11:46 AM UTC-4, TimV wrote: > > Hello, > > I am trying to extend my puppet installation by utilising hiera for

[Puppet Users] package resource on windows: ensure version doesn't work

2014-05-27 Thread Tomer Paz
Hi. I have an issue with puppet package resource not verifying Version well for MSI packages on windows. I tried both puppet 3.4 and latest 3.6, the matters remains the same. When using ensure => "installed" it works fine and puppet skip running the msiexec /i... I made sure I am using MSI Dis

[Puppet Users] node name in certificates

2014-05-27 Thread Sri Krishna G
hi all, i am using VM clones for testing puppet. when i try to add a new node, though i change the host name definition, the certificates generated still show the old node name. [root@puppet-razor ssl]# ls [root@puppet-razor ssl]# pwd /etc/puppetlabs/puppet/ssl [root@puppet-razor ssl]# hostname

[Puppet Users] Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

2014-05-27 Thread joe
After upgrading to Puppet 3.6.1 I get this error: Warning: Error 400 on SERVER: no 'environments' in {:root_environment=>#, :current_environment=>#} at top of [[0, nil, nil]] Any ideas? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Jeremy T. Bouse
On 27.05.2014 08:00, Hugh Cole-Baker wrote: On Tuesday, 27 May 2014 12:56:05 UTC+1, Jeremy wrote: This actually sounds like a useful tool. Is this something you're (or would) consider releasing as OSS for others to make use of? I've put my autosign script up on a GitHub gist and at least one o

Re: [Puppet Users] PostgreSQL INSERT

2014-05-27 Thread Felix Frank
On 05/27/2014 01:54 PM, Dirk Heinrichs wrote: > I wonder what's wrong with exec? The general module design goal is to implement types/providers for most tasks, which has some benefits: - bulk prefetching (of table data in this case) may be an option - single properties of system entities can be m

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Hugh Cole-Baker
On Tuesday, 27 May 2014 12:56:05 UTC+1, Jeremy wrote: > > This actually sounds like a useful tool. Is this something you're (or > would) consider releasing as OSS for others to make use of? > > I've put my autosign script up on a GitHub gist and at least one other > has considered it useful so

Re: [Puppet Users] Re: Patterns for building configs using hashes & arrays

2014-05-27 Thread Felix Frank
Hi, On 05/26/2014 03:43 PM, Jesse Cotton wrote: > if $gpg_key_id == undef { > $flags += ['--no-encryption'] > } adding to arrays may actually work. > else { > $options['--encrypt-id'] = $gpg_key_id > } Yeah, I guess that's an issue. You may find that such logic will indeed have to move to your

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Jeremy T. Bouse
On 27.05.2014 07:23, Hugh Cole-Baker wrote: Am I missing a configuration option in the manual to somehow disable SSL certificate validation? Does everybody add a cron job to their puppet master to stop the puppetmaster daemon and blow away its SSL directory then restart it at exactly 12:00AM ever

Re: [Puppet Users] PostgreSQL INSERT

2014-05-27 Thread Dirk Heinrichs
Am 27.05.2014 13:42, schrieb zerozerouno...@gmail.com: > Of course I could manage it through an Exec resource, but isn't there > a more "elegant" solution? > I would also need to be sure the line isn't already there, before > inserting it... I wonder what's wrong with exec? I use for example:

Re: [Puppet Users] template and scope

2014-05-27 Thread Felix Frank
On 05/26/2014 06:40 PM, Fabrice Bacchella wrote: > Is that normal that params1 is part of the context in both case, but not > param2 ? Ugh. Scope semantics. It *does* seem a little weird. Here's my take: 1. $param1 is a local variable (a parameter) of myclass 2. Mytpe[mytype] is scoped into mycl

[Puppet Users] PostgreSQL INSERT

2014-05-27 Thread zerozerounouno
Hi, how can I use Puppet to insert a row in a table inside a PostgreSQL database? Of course I could manage it through an Exec resource, but isn't there a more "elegant" solution? I would also need to be sure the line isn't already there, before inserting it... I'm looking at the supported modu

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-27 Thread Hugh Cole-Baker
> Am I missing a configuration option in the manual to somehow disable SSL > certificate validation? Does everybody add a cron job to their puppet > master to stop the puppetmaster daemon and blow away its SSL directory then > restart it at exactly 12:00AM every day, and the same on the instan

Re: [Puppet Users] puppet certificate expiry time period

2014-05-27 Thread Felix Frank
Hi, took me some digging as well, but apparently this is handled by the somewhat obscure option 'ca_ttl': http://docs.puppetlabs.com/references/latest/configuration.html#cattl HTH, Felix On 05/24/2014 05:22 PM, Ankit Mittal wrote: > Dear All, > > I am using puppet on around 70 nodes , but afte

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-27 Thread Felix Frank
On 05/23/2014 07:00 PM, Kylo Ginsberg wrote: > The downside to (2) is it's Yet Another Setting and as such it might not > be used as much (i.e. puppet 4 might take more people by surprise). Sure enough, but looking at all the breaking changes looming on the Puppet 4 horizon, the release notes will

[Puppet Users] Re: Puppet Dashboard installation on Debian Wheezy

2014-05-27 Thread Walter Heck
I realise it's slightly off-topic, but please be aware the puppet dashboard is deprecated and won't be developed further. In case you are just starting now, it might be better to look for something else. I have created an overview here: http://www.olindata.com/blog/2014/01/puppet-management-gui

Re: [Puppet Users] Hiera lookup bug?

2014-05-27 Thread Denmat
Stick it in quotes? > On 27 May 2014, at 16:01, Dirk Heinrichs wrote: > > Hi, > > I'm facing a strange problem with Hiera, where a trailing 0 (zero) is cut off > a value, for example: > > myclass::version: 1.10 > > resolves to 1.1 when the class is applied on an agent. > > The agent runs Pu

Re: [Puppet Users] Hiera lookup bug?

2014-05-27 Thread Dirk Heinrichs
Am 27.05.2014 10:15, schrieb R.I.Pienaar: > Quote the number, 1.10 is a string Ah, OK. Thought that everything is a string in hiera. Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 1

Re: [Puppet Users] Hiera lookup bug?

2014-05-27 Thread R.I.Pienaar
- Original Message - > From: "Dirk Heinrichs" > To: puppet-users@googlegroups.com > Sent: Tuesday, May 27, 2014 7:01:20 AM > Subject: [Puppet Users] Hiera lookup bug? > > Hi, > > I'm facing a strange problem with Hiera, where a trailing 0 (zero) is > cut off a value, for example: > >