RE: [Puppet Users] Re: exceptions, error, traces

2013-01-22 Thread GRANIER Bernard (MORPHO)
Hi, A great thanks for your answer and for the apache link. Sincerly, Bernard Granier CE Plateforme Système bernard.gran...@morpho.com 01 58 11 32 51 From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Ellison Marks Sent: M

[Puppet Users] Performance really bad when executing agents

2013-01-22 Thread Jesús Oliván
Hi, i've got a performance problem when running my puppet agents. I need to apply tons of files included in my website module and i assume that executing time would be long, but i can't understand why every time when a File is evaluated, it takes about 2-3 secs to do it. In my case i've got tonf o

[Puppet Users] facter : Bug #10261

2013-01-22 Thread GRANIER Bernard (MORPHO)
Hi, On a VM Windows 7 32bits, I have the bug describe here : http://projects.puppetlabs.com/issues/10261 . Reading the bug history, I understood that the bug has been accepted, corrected, and merged. Did I miss understand ? I have almost the last version of facter, I installed it middle of De

RE: [Puppet Users] node_openstack dependency

2013-01-22 Thread haynes.davis
That was a bug and fixed partially. Now installation happens but puppet commands are broken and I see no manifests files in the new module directories. # puppet module install puppetlabs/node_openstack Preparing to install into /etc/puppetlabs/puppet/modules ... Downloading from http://forge.pupp

[Puppet Users] PuppetDB HA

2013-01-22 Thread ak0ska
Hello, I would like to ask what to pay attention to, when someone wants to set up multiple PuppetDB instances (and point them to the same DB), and put them behind a proxy/load balancer, as mentioned in the documentation

[Puppet Users] Re: Terrible exported resources performance

2013-01-22 Thread Daniel
On Monday, January 21, 2013 1:05:26 PM UTC, Daniel wrote: > > In the larger env it takes about 70 minutes, if it manages to finish at >> all. Initially, as a "quick" test, I was running puppetdb without postgres >> and had to give it 5GB to get it to finish at all (70 mins). With postgres >> 8.4

[Puppet Users] Re: Custom Error/Exception Handler

2013-01-22 Thread llowder
On Monday, January 21, 2013 5:42:41 PM UTC-6, James Birchfield wrote: > > I have looked over the documentation, but I did not see anything > pertaining to this subject. If there is documentation of such sort, could > someone please point me to it? > > Is it possible to register some sort of cu

Re: [Puppet Users] node_openstack dependency

2013-01-22 Thread Nan Liu
On Tue, Jan 22, 2013 at 6:59 AM, wrote: > That was a bug and fixed partially. Now installation happens but puppet > commands are broken and I see no manifests files in the new module > directories. > > # puppet module install puppetlabs/node_openstack > Preparing to install into /etc/puppetlabs/p

Re: [Puppet Users] PuppetDB HA

2013-01-22 Thread Ken Barber
> I would like to ask what to pay attention to, when someone wants to set up > multiple PuppetDB instances (and point them to the same DB), and put them > behind a proxy/load balancer, as mentioned in the documentation. > Can this cause some concurrency issues with the message queues? What do you

Re: [Puppet Users] Re: Terrible exported resources performance

2013-01-22 Thread Ken Barber
> This sounds like a sensible workaround, I will definitely have a look. I > haven't yet had enough time to look at the issue properly, but it seems that > this very long time is indeed consumed by catalog construction. Puppetdb > fails after this is finished, so it seems that it dies when nagios h

Re: [Puppet Users] Re: Terrible exported resources performance

2013-01-22 Thread Daniel Siechniewicz
On Tue, Jan 22, 2013 at 3:04 PM, Ken Barber wrote: >> This sounds like a sensible workaround, I will definitely have a look. I >> haven't yet had enough time to look at the issue properly, but it seems that >> this very long time is indeed consumed by catalog construction. Puppetdb >> fails after

Re: [Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-22 Thread jcbollinger
On Saturday, January 19, 2013 7:04:47 AM UTC-6, Jakov Sosic wrote: > > On 01/18/2013 06:27 PM, jcbollinger wrote: > > > I was able to verify that the same behavior is exhibited by Puppet > > 0.24.8. That behavior goes against basic Puppet principles, however: > > unmanaged resources and resou

[Puppet Users] Re: no_longer_reporting_cutoff value has no effect

2013-01-22 Thread jcbollinger
On Monday, January 21, 2013 8:01:57 AM UTC-6, al...@gmx.de wrote: > > Hi, > my problem: puppet-dashboard doesn't seem to care about the * > no_longer_reporting_cutoff* value. Was set to 3600 and just did set it to > 600 but a node who sent his last report (last run failed... maybe that's > impo

[Puppet Users] package ressource and yum output

2013-01-22 Thread GRANIER Bernard (MORPHO)
Hi, On CentOS, I perform some tests with package resource, for example to define that a package has to be present but no yum server is defined on the agent. In the dashboard, it is clearly displayed that the manifest failed, but yum output is not displayed. Is there a way to get the yum output

Re: [Puppet Users] Re: Terrible exported resources performance

2013-01-22 Thread Ken Barber
How many resources are we talking for the 100 nodes? If you're running puppetdb one way to do this is to get a report on the nagios server that does the collection: curl -G -H 'Accept: application/json' 'http://puppetdb:8080/resources' --data-urlencode 'query=["=", ["node", "name"], "nagiosserver

[Puppet Users] Re: no_longer_reporting_cutoff value has no effect

2013-01-22 Thread alcc
Am Dienstag, 22. Januar 2013 17:11:18 UTC+1 schrieb jcbollinger: > > First guess: you're expressing the cutoff value in seconds, but the back > end is interpreting it as minutes. > > Was my first guess too, but (value still set 600 whatevers) my dashboard still shows the mentioned machine as "fa

[Puppet Users] Re: how to make changes to the network configuration without connection errors?

2013-01-22 Thread Peter Bauer
if somebody else will face the problem: i made an exec with a bash one-liner to ping the $serverip until it works or the timeout occurrs (refreshonly => true). Additionally i put the network configuration class in a separate stage and let it notify the class with the exec which is in the same st

Re: [Puppet Users] Re: how to make changes to the network configuration without connection errors?

2013-01-22 Thread Adrien Thebo
Hi Peter, Is this in reference to https://github.com/adrienthebo/puppet-network? On Tue, Jan 22, 2013 at 8:26 AM, Peter Bauer wrote: > if somebody else will face the problem: > > i made an exec with a bash one-liner to ping the $serverip until it works > or the timeout occurrs (refreshonly => t

[Puppet Users] Re: Using different puppet manifests running from master..

2013-01-22 Thread jcbollinger
On Monday, January 21, 2013 2:21:19 AM UTC-6, Rajeev Iyer wrote: > > Hi, > > I am new to puppet. I have a requirement of having to install > different applications on different instances on the same machine. I > want to run it from puppet master instead of running puppet agent -t. > How can

[Puppet Users] Security considerations for basing decisions on facts

2013-01-22 Thread Boyan Tabakov
Hello, Let's consider the scenario when a client node in a puppet environment gets compromised. In case some of the puppet modules make decisions based on agent facts, these modules are potentially exposed to abuse from the malicious puppet agent. For example, if a class has: if $some_fact == '

Re: [Puppet Users] facter : Bug #10261

2013-01-22 Thread Josh Cooper
Hi Bernard, On Tue, Jan 22, 2013 at 2:27 AM, GRANIER Bernard (MORPHO) wrote: > Hi, > > On a VM Windows 7 32bits, I have the bug describe here : > http://projects.puppetlabs.com/issues/10261 . > > Reading the bug history, I understood that the bug has been accepted, > corrected, and merged. > Di

Re: [Puppet Users] Re: how to make changes to the network configuration without connection errors?

2013-01-22 Thread Peter Bauer
Hi Adrien, no, i have used https://github.com/razorsedge/puppet-network Am Dienstag, 22. Januar 2013 17:40:17 UTC+1 schrieb Adrien Thebo: > > Hi Peter, > > Is this in reference to https://github.com/adrienthebo/puppet-network? > > > On Tue, Jan 22, 2013 at 8:26 AM, Peter Bauer > > wrote: > >> if

Re: [Puppet Users] Re: Terrible exported resources performance

2013-01-22 Thread jcbollinger
On Tuesday, January 22, 2013 9:19:02 AM UTC-6, Daniel wrote: > > On Tue, Jan 22, 2013 at 3:04 PM, Ken Barber > > > wrote: > >> This sounds like a sensible workaround, I will definitely have a look. > I > >> haven't yet had enough time to look at the issue properly, but it seems > that > >>

Re: [Puppet Users] Re: how to make changes to the network configuration without connection errors?

2013-01-22 Thread Adrien Thebo
Ah, got it. Handling bonded interfaces with Puppet is quite tricky, but I like your solution! On Tue, Jan 22, 2013 at 9:23 AM, Peter Bauer wrote: > Hi Adrien, > > no, i have used https://github.com/razorsedge/puppet-network > > Am Dienstag, 22. Januar 2013 17:40:17 UTC+1 schrieb Adrien Thebo: >>

[Puppet Users] New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Juan Cubillo
Hello everyone, I'm a new user regarding puppet but I'm skilled with linux. I have setup a puppetmaster server and also have a puppet client for testing on a different box. /etc/sysconfig/puppet has been edited to reach puppetmaster with option PUPPET_SERVER=puppet.mydomain.cr (I'm in Costa R

[Puppet Users] Re: [Puppet-dev] How can i create a class with this....?? Pls help

2013-01-22 Thread Daniel Pittman
On Tue, Jan 22, 2013 at 12:30 AM, yarlagadda ramya wrote: You really want the `puppet-users@googlegroups.com` list for this sort of question; the dev list is about modifying Puppet itself, not about manifest level questions. > I have created two manifests one for moving and other for renaming th

[Puppet Users] Re: Custom Error/Exception Handler

2013-01-22 Thread James Birchfield
Thanks for the response. After I posted this question, I came to that conclusion as well. I think it will fit our needs. Birch On Tuesday, January 22, 2013 9:01:21 AM UTC-5, llowder wrote: > > > > On Monday, January 21, 2013 5:42:41 PM UTC-6, James Birchfield wrote: >> >> I have looked over th

[Puppet Users] Fact chicken and egg problem

2013-01-22 Thread James Birchfield
I am trying to expose a custom fact that requires a certain gem to be installed. However, the facts are being loaded before the module is loaded (and I see why this is the case sine the fact should be made available to the module). So my question is, is there a way to avoid this chicken and e

[Puppet Users] Re: Performance really bad when executing agents

2013-01-22 Thread jcbollinger
On Tuesday, January 22, 2013 4:18:51 AM UTC-6, MorSa wrote: > > Hi, > > i've got a performance problem when running my puppet agents. I need > to apply tons of files included in my website module and i assume that > executing time would be long, but i can't understand why every time > when a

Re: [Puppet Users] Puppetdb will setting gc-interval to 0 disable it

2013-01-22 Thread Ken Barber
Does this happen across all nodes? This is an indication you might have a resource that affects a large set of nodes that suddenly changes every 4 days. In the catalogs table, the 'hash' is just a hash of the catalogue data, if anything in the catalogue changes - it changes. And new entries are cr

Re: [Puppet Users] Puppetdb will setting gc-interval to 0 disable it

2013-01-22 Thread Chuck
We didn't notice anything on Sunday. We have a decent number of resources that effect all nodes. This may explain the ocasional performance issues. We have also been messing around with the Indexes as they were getting HUGE. We also started promoting our Puppet changes on a schedule so we

[Puppet Users] Re: Fact chicken and egg problem

2013-01-22 Thread jcbollinger
On Tuesday, January 22, 2013 12:13:32 PM UTC-6, James Birchfield wrote: > > I am trying to expose a custom fact that requires a certain gem to be > installed. However, the facts are being loaded before the module is loaded > (and I see why this is the case sine the fact should be made availabl

[Puppet Users] Re: Fact chicken and egg problem

2013-01-22 Thread James Birchfield
Thank you for the reply. I decided to go with the approach of gracefully handling the fact that the require will fail from the fact and report it, thus allowing the RPM to be installed correctly. Then the fact will populate on a subsequent run. Birch On Tuesday, January 22, 2013 3:18:12 PM U

[Puppet Users] Puppet Bonding Module: Detect missing values before creation of file or template

2013-01-22 Thread GregC
I have a module that reads and creates bonding configuration with persistent routes, by pulling those values and inserting into my static route file on RH 5.6 like so: <% bond_route.each do |bond_route| -%> <%= bond_route %> via <%= bond_gateway %> dev bond<%= name %> <%end -%> Problem is that

Re: [Puppet Users] Puppet Bonding Module: Detect missing values before creation of file or template

2013-01-22 Thread Nan Liu
On Tue, Jan 22, 2013 at 2:53 PM, GregC wrote: > I have a module that reads and creates bonding configuration with > persistent routes, by pulling those values and inserting into my static > route file on RH 5.6 like so: > > <% bond_route.each do |bond_route| -%> > <%= bond_route %> via <%= bond_

[Puppet Users] Re: Security considerations for basing decisions on facts

2013-01-22 Thread jcbollinger
On Tuesday, January 22, 2013 7:08:09 AM UTC-6, Boyan Tabakov wrote: > > Hello, > > Let's consider the scenario when a client node in a puppet environment > gets compromised. > > In case some of the puppet modules make decisions based on agent facts, > these modules are potentially exposed to

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Jason Cochard
Hi Juan, I believe your puppet.conf file should contain the line: [main] server = puppet.mydomain.cr and not "PUPPET_SERVER". At least, that is how my clients determine which server to connect to. This error usually is a failure of the client to find the puppetmaster. Can you ping the pupp

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Juan Cubillo
I just made a slight change that also changed the error... According to google the* getaddrinfo: Name or service not known *means that the client can not find the server. I decided to specify the server uusing the command> puppet agent --server=puppet.mydomain.cr --test And now this is returne

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Juan Cubillo
I made my initial config on the file /etc/sysconfig/puppet because the guide I used said so. However, I was reading some more and it seems the correct file to edit should be /etc/puppet/puppet.conf I'm going to edit the file and report what happens. - Juan On Tuesday, 22 January 2013 15:21:36

Re: [Puppet Users] (New To Puppet)Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class sudo for pupclient on node pupclient

2013-01-22 Thread Jason Cochard
Something to help you avoid it in the future: Put all of your puppet manifests into a git repo (very good practice to get setup right away), and then put a git pre-commit hook that uses puppet parser validate to check for syntax errors. This will basically not let you commit new manifests if t

[Puppet Users] Re: Pls do suggest a simple example for creating a class using manifests

2013-01-22 Thread Jason Cochard
You could wrap each of these with a class name, or combine them into one class. Then include the class on the node you wish it to be applied to. Example: class myclass { exec { "name1": command => /some/command/with/full/path } } Then in your site.pp, for the node you want this applied t

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Juan Cubillo
FIXED! Returned default values to /etc/sysconfig/puppet and added *server = fqt.mydomain.cr* to the [main] block on /etc/puppet/puppet.conf This fixed the *getaddrinfo: Name or service not known* erro but now added the following: err: Could not retrieve catalog from remote server: Error 414 o

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Jason Cochard
Excellent. Glad you were able to fix it. May I next suggest moving your puppet deployment to Passenger and Apache? :) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/m

[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known

2013-01-22 Thread Juan Cubillo
I'm still learning about puppet. I'll try to read some more about Passenger. If you have any good links with info I'll aprreciate if you may guide me on my "quest" to learn about this system. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Re: How do I add multiple new services to /etc/services using augeas/augtool?

2013-01-22 Thread Stephen Sollar
I got it to work, I just had to give it all of the configurations (port, protocol, comment) then save. set /files/etc/services/service-name[last()+1] "DB2_db2inst1_2" set /files/etc/services/service-name[. = 'DB2_db2inst1_2']/port 60002 set /files/etc/services/service-name[. = 'DB2_db2inst1_2']/pr

[Puppet Users] Re: Error: Could not request certificate: Connection refused - connect(2)

2013-01-22 Thread Doug
Hi Diogo I have this same issue. I don't quite understand your message, could you please help me? You say to fix it you: -restart puppet master -run puppetca --clean 'host_name' -deleting var/lib/puppet/ssl 1. Is that right? 2. Which host do you delete var/lib/puppet/ssl on? Many thanks On

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-22 Thread Евгений Верещагин
is there any news? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/E0jVQyWpt4wJ. To post to this group, send email to puppet-users@googlegroups.com. To unsu

[Puppet Users] What exactly does "notice: Finished catalog run in XX seconds" mean?

2013-01-22 Thread Nikhil Joshi
I see that line in the agent node's log. Is that the time taken by the Puppet Master to compile the manifests into a catalog? Or is that the rime taken by the agent to "apply" the catalog on the node? More specifically, I want to determine the exact time taken by the puppet master to compile

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-22 Thread Josh Cooper
On Tue, Jan 22, 2013 at 8:11 PM, Евгений Верещагин wrote: > is there any news? Your best option is going to be to install ruby 1.9.3, and then install the necessary windows gems contained in the Gemfile[1]. You can either do that manually via `gem install ...`, or if you're familiar with bundler,