[Puppet Users] Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread Bruno Bieth
I'd like to do something like this define mytype() {} define delete_mytype() {} mytype { 'a': } mytype { 'b': } mytype { 'c': } $existing_mytypes = # something from facter # but this doesn't work $wanted_mytypes = Mytype <||> Mytype<||> -> Delete_mytype<||> delete_mytype { diff( $existin

[Puppet Users] Re: Puppet 3.6.0 'issues'

2014-05-20 Thread Stefan Heijmans
Hi Josh, Thanks for your email. >>but isn't the facts loaded from both modulepath and var lib dir just a consequence of having pluginsync'd on the master? I mentioned it, as this behaviour didn't happen with 3.4.3. I'll wait for the 3.6.1 release before testing any further. Stefan -- Y

[Puppet Users] Yumrepo resource flapping

2014-05-20 Thread DjE
Hi all, We find that the yumrepo resource is flapping on RedHat 6 Enterprise with the redhat.repo file since Puppet 3.4.x version (due to a change about attribute content control) We have updated with the latest Puppet 3.6 server and agent, because we saw this commit : https://github.com/pu

[Puppet Users] ${name} returns class name instead of resource namevar

2014-05-20 Thread Francis Pereira
When using a custom resource to deploy java $name is not the name of the resource but the name of the class in the below mentioned example java::setup { "${myapplication::params::app_username}-jdk_7u51": ... cachedir => "/var/lib/puppet/file_cache/${name}-working", } Shouldn't $n

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread Boyan Tabakov
Hi, On Mon May 19 16:39:25 2014, jcbollinger wrote: > > > On Monday, May 19, 2014 6:06:45 AM UTC-5, Boyan Tabakov wrote: > > Hi, > > The variable I want to access is not defined in a module/class. > It's the > globally defined $::environment. Since facts are also exposed as > g

Re: [Puppet Users] Service stuck after updating puppet on Windows Server 2003

2014-05-20 Thread cko
Any idea? On Saturday, May 10, 2014 12:22:46 PM UTC+2, cko wrote: > > After the puppet run the agent service is basically stopped. > > Although when i run "sc queryex puppet" the output is "STOP_PENDING" (not > stopped but not running either). > > So i have to run "taskkill /f /pid 1234" and then

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-20 Thread Sergey Arlashin
Here is described http://www.eclipse.org/jetty/documentation/current/configuring-connectors.html how idle timeout for jetty cat be configured . But I don't know how to apply this for puppetdb :( Does anybody have any ideas ? On May 20, 2014, at 9:43 AM, Sergey Arlashin wrote: > 2014-05-

Re: [Puppet Users] ${name} returns class name instead of resource namevar

2014-05-20 Thread José Luis Ledesma
No, it is the current $name, not the resource one. Regards, El 20/05/2014 12:36, "Francis Pereira" escribió: > When using a custom resource to deploy java $name is not the name of the > resource but the name of the class in the below mentioned example > > java::setup { "${myapplication::params:

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread José Luis Ledesma
But, who can run puppet? I mean, most puppet configurations needs root, so if someone malicious is a root which is the point of being able to cheat the environment? He can do whatever wants. Regards, Hi, On Mon May 19 16:39:25 2014, jcbollinger wrote: > > > On Monday, May 19, 2014 6:06:45 AM UTC

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread Henrik Lindberg
On 2014-20-05 13:02, Boyan Tabakov wrote: Hi, On Mon May 19 16:39:25 2014, jcbollinger wrote: On Monday, May 19, 2014 6:06:45 AM UTC-5, Boyan Tabakov wrote: Hi, The variable I want to access is not defined in a module/class. It's the globally defined $::environment. Sinc

Re: [Puppet Users] Re: Apply class fail from hiera

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 9:18:37 AM UTC-5, mike wrote: > > Hi, > I try configure the NTP Hiera class ( > http://docs.puppetlabs.com/hiera/1/complete_example.html) and run ok and > i dont have any errors in my node client. I believe that my error is a some > problem with the MySQL configuration H

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-20 Thread Ken Barber
We don't expose the idle timeout parameter for users to modify. I am curious though, what happens when you increase max-threads in your jetty.ini to something like 200? ken. On Tue, May 20, 2014 at 12:41 PM, Sergey Arlashin wrote: > Here is described > http://www.eclipse.org/jetty/documentation

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-20 Thread Ken Barber
Also ... I'd be curious to know what exact version of the JVM you are running. I'm cautious this is a jetty bug of some kind, perhaps we can ship a new Jar with a later version of Jetty to you and see if that helps. ken. On Tue, May 20, 2014 at 2:03 PM, Ken Barber wrote: > We don't expose the i

[Puppet Users] puppetlabs/java_ks modules and puppet:// uri paths

2014-05-20 Thread Juan Sierra Pons
Hi, I am recently using the puppetlabs/java_ks module. The documentation claims that the module supports puppet:// uri path for certificates: from https://forge.puppetlabs.com/puppetlabs/java_ks: " certificate An already-signed certificate to place in the keystore. Accepts local file paths or pu

[Puppet Users] Re: Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 2:41:41 AM UTC-5, Bruno Bieth wrote: > > > I'd like to do something like this > > > define mytype() {} > > define delete_mytype() {} > > mytype { 'a': } > mytype { 'b': } > mytype { 'c': } > > $existing_mytypes = # something from facter > > # but this doesn't work > $want

[Puppet Users] Re: Yumrepo resource flapping

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 3:38:51 AM UTC-5, DjE wrote: > > Hi all, > > We find that the yumrepo resource is flapping on RedHat 6 Enterprise with > the redhat.repo file since Puppet 3.4.x version (due to a change about > attribute content control) > > We have updated with the latest Puppet 3.6

[Puppet Users] Re: ${name} returns class name instead of resource namevar

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 5:36:40 AM UTC-5, Francis Pereira wrote: > > When using a custom resource to deploy java $name is not the name of the > resource but the name of the class in the below mentioned example > > java::setup { "${myapplication::params::app_username}-jdk_7u51": > ... >

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 6:02:17 AM UTC-5, Boyan Tabakov wrote: > > Hi, > > On Mon May 19 16:39:25 2014, jcbollinger wrote: > > > > > > On Monday, May 19, 2014 6:06:45 AM UTC-5, Boyan Tabakov wrote: > > > > Hi, > > > > The variable I want to access is not defined in a module/class

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 7:36:31 AM UTC-5, Henrik Lindberg wrote: > > This suggests a design that is somewhat inside-out, the idea is that > what is *in* the environment defines what you want, not that you inside > the environment make decisions based on the name of the environment. > Agreed

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 6:55:31 AM UTC-5, Jose Luis Ledesma wrote: > > But, who can run puppet? > > I mean, most puppet configurations needs root, so if someone malicious is > a root which is the point of being able to cheat the environment? He can do > whatever wants. > Yes, generally speaki

[Puppet Users] Problem using Vagrant + Puppet

2014-05-20 Thread Rafaella Keury
Hello, I'm using Vagrant and i'm trying to use Puppet as a tool for provisioning one of my virtual machines. I created a folder named 'manifests' in the same directory of my VagrantFile. Inside the 'manifests' folder I created a file named db.pp with the following content: "exec { "apt-update":

[Puppet Users] Re: Creating a config file dynamically based on the group membership of a node

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 2:39:47 AM UTC-5, Grant Street wrote: > > Hi > > First time poster to this forum. I'm in the process of doing a pilot to > convert a cfengine v2 install to puppet. > > I was wondering if any one had any ideas on the following. > > I have machines that can be in any comb

Re: [Puppet Users] puppet class require fails depending on declaration order

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 6:48:36 AM UTC-5, David Portabella wrote: > > > > >> so, one specific example, >>> someone (not me) implemented a class tomcat with parameters port and >>> ssl_port. >>> I want to use that class, >>> and I want that the ssl_port is always port + 1 (I don't want this

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-20 Thread Sergey Arlashin
Unfortunately setting max-threads to 200 did not help. # java -version java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) # dpkg -l |grep -i java ii ca-certificates-java 20110912ub

Re: [Puppet Users] Using existing resource type via hiera without a class/module manifest.

2014-05-20 Thread David Schmitt
Hi, On 19.05.2014 23:34, Kashyap Bhatt wrote: I'm wondering if there is a third option that allows me to get the best of both options: * No hardcoding in site.pp for my node name, catalog is decided via hiera yaml config files. * No separate module/class manifest containing just a 'sing

Re: [Puppet Users] What is wrong with this? Could not match ${variablehere}

2014-05-20 Thread David Schmitt
On 19.05.2014 23:50, Zan Thorn wrote: So I am just trying to create a file based off a template. I've done this many times but am stumped. Maybe some silly syntax error I'm not seeing? I define the variable: $local_server_root = 'E:\LocalServer' Then use it in the file type: file { 'L

[Puppet Users] Re: Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread Bruno Bieth
John, thanks for your detailed answer! So you are trying to remove unmanaged resources of the specified type? > Puppet has built-in support for that for plugin resource types that meet a > couple of fairly simple criteria. You would even dispense with any need > for facter to be involved if y

[Puppet Users] Re: Problem using Vagrant + Puppet

2014-05-20 Thread Felix Massem
HeyRafaella, try this in your Vagrant File # provisioning with puppet server.vm.provision "puppet" do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "db.pp" puppet.module_path = "modules" end cheers feli

[Puppet Users] Re: Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 1:42:08 PM UTC-5, Jesse Cotton wrote: > > On Monday, May 19, 2014 10:18:11 AM UTC-4, jcbollinger wrote: >> >> >> >> On Friday, May 16, 2014 10:55:35 AM UTC-5, Jesse Cotton wrote: >>> >>> I work with Matt and am filling in for him since I posed this question >>> to him ori

[Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 6:45:56 PM UTC-5, Brian Mathis wrote: > > I'm seeing this issue with the current version of stdlib. When getting > numeric data from hiera, or performing math on a variable, validate_re() > fails when using the following regex: > '[0-9]+' > > Fascinating. > Her

[Puppet Users] Re: Problem using Vagrant + Puppet

2014-05-20 Thread Rafaella Keury
Hi Felix! Thanks a lot for your answer, but it still doesn't work and I get the same error. Em terça-feira, 20 de maio de 2014 08h26min49s UTC-7, Felix Massem escreveu: > > HeyRafaella, > > try this in your Vagrant File > > # provisioning with puppet > server.vm.provision "puppet"

Re: [Puppet Users] Service stuck after updating puppet on Windows Server 2003

2014-05-20 Thread Rob Reynolds
Using puppet to manage puppet upgrades to the agent has been an interesting dilemma that sometimes has issues. OpenTable came out with this module: https://forge.puppetlabs.com/opentable/puppetversion to help handle upgrades. On Windows they set a scheduled task to manage the upgrade just after the

Re: [Puppet Users] Re: Problem using Vagrant + Puppet

2014-05-20 Thread Rob Reynolds
Here is a working example, try to see what you can pull from it - https://github.com/ferventcoder/dayofdevops/tree/master/lab02-firehose Also, unless you are using multi-machine configuration, there is no reason to do config.vm.define. Note this line to provide you more information: config.vm.p

Re: [Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-20 Thread Brian Mathis
On Tue, May 20, 2014 at 11:59 AM, jcbollinger wrote: > > > On Monday, May 19, 2014 6:45:56 PM UTC-5, Brian Mathis wrote: >> >> I'm seeing this issue with the current version of stdlib. When getting >> numeric data from hiera, or performing math on a variable, validate_re() >> fails when using the

Re: [Puppet Users] Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-20 Thread Christopher Wood
On Fri, May 16, 2014 at 11:12:15AM -0700, Ramin K wrote: > On 5/15/2014 12:14 PM, Christopher Wood wrote: > >(inline) > > > >On Thu, May 15, 2014 at 11:45:21AM -0700, Ramin K wrote: > >> > >>I'd also like to disagree slightly with Christopher who also > >>posted in this thread. Your profile:: class

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-20 Thread DjE
Le 20/05/2014 15:47, jcbollinger a écrit : On Tuesday, May 20, 2014 3:38:51 AM UTC-5, DjE wrote: Hi all, We find that the yumrepo resource is flapping on RedHat 6 Enterprise with the redhat.repo file since Puppet 3.4.x version (due to a change about attribute content control)

[Puppet Users] Re: Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-20 Thread Jesse Cotton
> > >>> We're aware of most of this and agree with most of this. However when >> you always call include, you lose the ability to say a particular hiera >> variable is attached to the profile. For example >> >> If you define: >> >> class profile::apache_phpfpm { >> include ::apache >> } >> >>

Re: [Puppet Users] Re: Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-20 Thread Christopher Wood
On Tue, May 20, 2014 at 10:54:15AM -0700, Jesse Cotton wrote: >We're aware of most of this and agree with most of this. However when >you always call include, you lose the ability to say a particular >hiera variable is attached to the profile. For example >If you def

[Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Peter Berghold
Hi folks, Attempting to install puppetdb on Debian 6 and have run into a bit of a roadblock. It's complaining that java7 is not on the system and yet: :/usr/lib/jvm# java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (buil

Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Christopher Wood
What's the error message? On Tue, May 20, 2014 at 03:22:24PM -0400, Peter Berghold wrote: >Hi folks, >Attempting to install puppetdb on Debian 6 and have run into a bit of a >roadblock. >It's complaining that java7 is not on the system and yet: >:/usr/lib/jvm# java -version >

Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Peter Berghold
The following information may help to resolve the situation: The following packages have unmet dependencies: puppetdb : Depends: java7-runtime-headless but it is not installable or j2re1.7 but it is not installable E: Broken packages On Tue, May 20, 2014 at 3:41 PM, Christ

[Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Jason Knudsen
Hey team, Testing the waters with the new Future Parser functionality. I've enabled it in [main] and [master] with parser = future, in my puppet.conf, and am running puppet v3.5.1. Earlier versions of puppet (namely, 3.4.2) worked fine with this setting enabled and the exact same modules. I k

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Christopher Wood
If you run your puppetmaster in the foreground with debug enabled it might tell you more. (You'll have to stop the usual daemon first, and run it as the usual user not root.) puppet master --debug --no-daemonize 2>&1 | tee /var/tmp/pm1.log Also use --config in there if you need it, of course.

Re: [Puppet Users] ${name} returns class name instead of resource namevar

2014-05-20 Thread Johan De Wit
Hi, I think you are mixing the 'define' a resource and 'use' resource type. $name is an automatic variable that is set by puppet, and will be in the case of a defined resource, the resource title you give it when 'using' that defined resource You can use the $name in the define { } , and

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Jason Knudsen
Thanks for the tip, worked like a charm. Turns out I had some variables with an uppercase first letter. Got past that, but now I'm also dealing with something else unexpected. Info: Retrieving pluginfacts Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on

Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Christopher Wood
In your situation, I'd file a bug with puppetlabs about this, at least because this makes puppetdb not trivially installable in squeeze. From the control files for the last two puppetdb packages: Package: puppetdb Version: 2.0.0-1puppetlabs1 Architecture: all Maintainer: Puppet Labs Installed-S

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Christopher Wood
Sorry, I've stayed at 3.4.3 so that the exciting things can happen to other people for a while. Were I debugging this, I'd check my data to make sure that everything was the same as from 3.4.2 and then try to reproduce using the simplest pp file I could (then maybe file a bug). On Tue, May 20,

Re: [Puppet Users] puppetlabs/java_ks modules and puppet:// uri paths

2014-05-20 Thread Morgan Haskel
Juan, Are you exporting extra_files as a mountpoint in fileserver.conf? If not and extra_files is in a module then the path should be puppet:///modules//extra_files/certificates/mycert.org.crt The documentation at http://docs.puppetlabs.com/guides/file_serving.htmlmight help. Morgan On Tue, M

Re: [Puppet Users] Debugging manifests with Future Parser

2014-05-20 Thread Jason Knudsen
Hah, indeed. 3.5.0 has introduced some fun changes ;-) Thanks for your help! On Tuesday, May 20, 2014 4:42:04 PM UTC-4, Christopher Wood wrote: > > Sorry, I've stayed at 3.4.3 so that the exciting things can happen to > other people for a while. > > Were I debugging this, I'd check my data to ma

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-20 Thread Johan De Wit
the yumrepo resource creates a *.repo file for every resource. The redhat thing just puts all repos in one big file. and if you remove the redhat.repo, on a subscribed system, this file will be recreated depending on the subscribed channel. I did not test it in puppet3.x, but maybe it could wo

[Puppet Users] Raring has been removed from apt.puppetlabs.com

2014-05-20 Thread Matthaus Owens
As previously announced[1], Raring has now been removed from our public apt repositories, as it had reached end of life. [1] - https://groups.google.com/forum/#!msg/puppet-users/YEG0C3OtWfE/Nq6AUGCv5kQJ -- Matthaus Owens Puppet Labs Join us at PuppetConf 2014, September 22-24 in San Francisco

[Puppet Users] Profiling catalog compilation

2014-05-20 Thread Wolf Noble
Hey guys, I wrote a post on how to profile your puppet catalog compilations (3.4+) to find resource hogs Hope this helps someone http://www.wolfspyre.com/2014/05/profiling-puppet-catalog-compilations/ -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] installing puppetdb on Debian 6 [wheezy]

2014-05-20 Thread Ken Barber
The control file was modified in particular to be compatible with the make-jpkg created packages to work around older releases like Debian 6 squeeze: https://wiki.debian.org/JavaPackage Unfortunately this was the closest we could find to a standard way of supporting a dependency against a Debian

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-20 Thread Jakov Sosic
On 05/16/2014 12:34 PM, Ugo Bellavance wrote: Do I need the puppet concat module to do that? I am on puppet version 2.6 (using EPEL repo, "upgrading" to 2.7 soon. I know it is not what this group recommends, but it's the best for me right now). Yes, you do if you use the code I provided. -

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-20 Thread Ugo Bellavance
On Tuesday, May 20, 2014 8:47:58 PM UTC-4, Jakov Sosic wrote: > > On 05/16/2014 12:34 PM, Ugo Bellavance wrote: > > > Do I need the puppet concat module to do that? I am on puppet version > > 2.6 (using EPEL repo, "upgrading" to 2.7 soon. I know it is not what > > this group recommends, but

[Puppet Users] Re: Creating a config file dynamically based on the group membership of a node

2014-05-20 Thread Grant Street
On Wednesday, May 21, 2014 12:31:59 AM UTC+10, jcbollinger wrote: > > > > On Monday, May 19, 2014 2:39:47 AM UTC-5, Grant Street wrote: >> >> Hi >> >> First time poster to this forum. I'm in the process of doing a pilot to >> convert a cfengine v2 install to puppet. >> >> I was wondering if any

Re: [Puppet Users] Re: Creating a config file dynamically based on the group membership of a node

2014-05-20 Thread Garrett Honeycutt
On 5/21/14, 12:40 AM, Grant Street wrote: > > > On Wednesday, May 21, 2014 12:31:59 AM UTC+10, jcbollinger wrote: > > > > On Monday, May 19, 2014 2:39:47 AM UTC-5, Grant Street wrote: > > Hi > > First time poster to this forum. I'm in the process of doing a > pilo

[Puppet Users] Re: Profiling catalog compilation

2014-05-20 Thread William Leese
Great stuff, thanks for this. Would be nice to get this kind of troubleshooting in the official docs somewhere. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Puppet Users] puppetlabs/java_ks modules and puppet:// uri paths

2014-05-20 Thread Juan Sierra Pons
Hi Morgan, Yes, I have configured [extra_files] and it is working ok with other module. The isue here is that instead of downloading the file mycert.org.crt and using it while running the local command it references it as if the certificate were already on the client and using the [extra_files] ac