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

2013-01-21 Thread DreamBig
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 this be done? Can someone help me with a pseudo code? Regards, Rajeev -- You rece

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

2013-01-21 Thread GRANIER Bernard (MORPHO)
Hi, First, thanks for your answer. I am not still aware of a deep understanding of differences between resources and functions, but some tests confirmed what you said. A point, with my tests, notify messages are displayed in the reverse order they are written in manifest ... I understood that

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

2013-01-21 Thread Dominic Cleal
On 20/01/13 17:53, Stephen Sollar wrote: > I am trying to add multiple new services to /etc/services file. I was > able to get one entry placed as the last service, but have been unable > to insert additional entries. > > augtool> set /files/etc/services/service-name[last()] "DB2_db2inst1_1" las

[Puppet Users] puppet allow regex issue in file server

2013-01-21 Thread Anadi Misra
hi! all, the following regex fails for a mount point definition [palms] path /apps/puppet/projects/palms/%h allow /^bangvmplmpalm([0-1][0-4,9]).example.com$/ here's the logs ./puppet.log-20130120:Thu Jan 17 19:17:21 +0530 2013 /Stage[main]//Node[bangvmplmpalm11.example.com]/File[/etc/httpd/dis

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

2013-01-21 Thread Anadi Misra
what do you exactly mean by "different applications on different instances on the same machine"? elaborate . BR/ Anadi Misra. On Monday, 21 January 2013 13:51:19 UTC+5:30, Rajeev Iyer wrote: > > Hi, > > I am new to puppet. I have a requirement of having to install > different applications on

[Puppet Users] Cloud Provisioner on Centos

2013-01-21 Thread PuppetUser
Hi, I am using Amazon Linux 3.2 ec2 instance to install puppet master. I used puppet-server install command. Installation is done. When i use sudo vim /etc/puppet/puppet.conf.. I see only [main] and [agent] blocks. I dont see [master] block. My doubt is whether master get installed or not ??

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-21 Thread Vladimir Rutsky
John, thank you for providing such complete example! I definitely will use ideas from it in my scripts. -- Vladimir Rutsky On Tue, Jan 15, 2013 at 9:43 PM, jcbollinger wrote: > > > On Tuesday, January 15, 2013 4:56:13 AM UTC-6, Vladimir Rutsky wrote: >> >> >> On Fri, Jan 11, 2013 at 6:14 PM, j

[Puppet Users] Re: Hi, problems with start puppetmaster

2013-01-21 Thread Gustavo Henrique Borges
thank you very much, jhon, I removed the folder and the file he created tks Em quinta-feira, 17 de janeiro de 2013 15h17min27s UTC-2, Gustavo Henrique Borges escreveu: > > hi, can you help me? when I start the puppetmaster it returns me the > following error: > > Could not prepare for execution

[Puppet Users] Re: using file_line with match

2013-01-21 Thread Stefan Wiederoder
Hello Ellison, yes, you´re right, now it´s working: file_line { "xxx": line => "ALLOWHOST server1|server2", path => "/tmp/sw", match => "ALLOWHOST.*$", ensure => present } thanks , Stefan Am Freitag, 18. Januar 2013 18:50:36 UTC+1 schrieb Ellison Marks: > > @Stephan, as it stands, the match p

[Puppet Users] no_longer_reporting_cutoff value has no effect

2013-01-21 Thread alcc
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 important?) over 5 hours ago is still not marked as "Has not reported" yet. Thing i

Re: [Puppet Users] Server-side exec

2013-01-21 Thread Jeff Thomas
Well, I thought I had, but apparently not. Yes that works, thanks. -Jeff On Saturday, January 19, 2013 4:54:21 AM UTC-8, Jakov Sosic wrote: > > On 01/18/2013 08:33 PM, Jeff Thomas wrote: > > but that runs the "ypmatch" on the client, which isn't useful. Then I > > found the "generate" funct

[Puppet Users] Terrible exported resources performance

2013-01-21 Thread Daniel
Hi, Since the below is a little long, I put my question at the top: how do I troubleshoot awful exported resources performance in puppet and is there anything I can tweak to get it to run under 10 minutes in larger environments? I have a fairly modest environment (118 nodes, but prod will be

Re: [Puppet Users] Terrible exported resources performance

2013-01-21 Thread David Schmitt
On 21.01.2013 14:05, Daniel wrote: Hi, Since the below is a little long, I put my question at the top: how do I troubleshoot awful exported resources performance in puppet and is there anything I can tweak to get it to run under 10 minutes in larger environments? There is a "simple" answer: pu

[Puppet Users] puppet configuration and variables ?

2013-01-21 Thread GRANIER Bernard (MORPHO)
Hi, Is there a way to define a variable in puppet.conf file ? Something like : My_var = my_value in puppet.conf Then to be able to use it in manifest with something like : file {custo.txt': path=> $my_value, ensure=> present, mode=> 0640, content=> "this content", } Sincer

Re: [Puppet Users] puppet configuration and variables ?

2013-01-21 Thread Brian Mathis
Something like this would typically go in your manifest files, not the puppet.conf file. I think you will find the Puppet language guide instructive, specifically the page on variables: http://docs.puppetlabs.com/puppet/2.7/reference/lang_variables.html You should think of Puppet as more of a

RE: [Puppet Users] puppet configuration and variables ?

2013-01-21 Thread GRANIER Bernard (MORPHO)
Thanks for the advice, I will use variables to define specific values, Sincerely, Bernard Granier -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Brian Mathis Sent: Monday, January 21, 2013 6:09 PM To: puppet-users@googlegroup

[Puppet Users] what is this trying to tell me?

2013-01-21 Thread Scott Anderson
I am setting up puppet on my boxes.. and one of my boxes gives me this error when I run puppet agent --test ratbert ~ $puppet agent --test info: Caching catalog for ratbert.in.torand.org info: Applying configuration version '1358784048' *err: Could not prefetch package provider 'yum': The yum prov

[Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
I am running Puppet 2.7.x (x varies from 14 to 20 on different machines). I am trying to use Puppet to deploy a new Zabbix agent configuration file. On all machines where the file wasn't a symlink, the deployment worked. However, every machine where it is a link, Puppet refuses to replace teh

Re: [Puppet Users] what is this trying to tell me?

2013-01-21 Thread R.I.Pienaar
- Original Message - > From: "Scott Anderson" > To: puppet-users@googlegroups.com > Sent: Monday, January 21, 2013 5:53:51 PM > Subject: [Puppet Users] what is this trying to tell me? > > I am setting up puppet on my boxes.. and one of my boxes gives me this > error when I run puppet ag

Re: [Puppet Users] what is this trying to tell me?

2013-01-21 Thread Scott Anderson
Oh %$&^*& you are right.. why didn't I catch that.. On Mon, Jan 21, 2013 at 12:57 PM, R.I.Pienaar wrote: > > > - Original Message - > > From: "Scott Anderson" > > To: puppet-users@googlegroups.com > > Sent: Monday, January 21, 2013 5:53:51 PM > > Subject: [Puppet Users] what is this try

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

2013-01-21 Thread Ellison Marks
On Monday, January 21, 2013 12:47:12 AM UTC-8, bernard...@morpho.com wrote: > > Hi, > > > > First, thanks for your answer. > > > > I am not still aware of a deep understanding of differences between > resources and functions, but some tests confirmed what you said. > Let me put it this way:

[Puppet Users] Re: Terrible exported resources performance

2013-01-21 Thread Luke Bigum
Hi 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 postgr

[Puppet Users] Custom provider: shell command gets corrupted, how to debug?

2013-01-21 Thread badbishop
Hello, I'm writing my first custom type and provider for Puppet. I've run into following trouble. When I define a command binary (using touch here for the sake of example) commands :mycommand => 'touch' ... and then in create run mycommand '/tmp/test1' somehow a new line gets inserted betwee

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Gary Larizza
You should be able to add "force => true" and get this to work for you On Monday, January 21, 2013 at 9:19 AM, Sean Kelly wrote: > I am running Puppet 2.7.x (x varies from 14 to 20 on different machines). I > am trying to use Puppet to deploy a new Zabbix agent configuration file. On > all m

Re: [Puppet Users] Puppet and Windows runtime error

2013-01-21 Thread Josh Cooper
On Jan 21, 2013, at 10:13 AM, Thomas Bendler wrote: > Hi @all, > > I still have a problem with Puppet in conjunction with Windows. My goal in > the first step is to deploy Nagios agents on Windows servers. Therefore I > extended my current class with a Windows specific part: > > # Class: nag

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
I've tried that as well. It doesn't work. On Monday, January 21, 2013 12:34:00 PM UTC-6, Gary Larizza wrote: > > You should be able to add "force => true" and get this to work for you > > On Monday, January 21, 2013 at 9:19 AM, Sean Kelly wrote: > > I am running Puppet 2.7.x (x varies from 14 t

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

2013-01-21 Thread Peter Bauer
hi, i am very happy with a network configuration module so far, but there is one thing left i can not find a solution for: if i change the network configuration e.g. from a single interface to a bonding interface using puppet (basically if-down and if-ups), the next steps in the run of the agen

[Puppet Users] How to watch a logfile in Puppet?

2013-01-21 Thread Andrey Brindeyev
Hi! I'm a newbie in Puppet with some Chef experience. Now trying to convert my pet project from Chef to Puppet. When I start a Tomcat is takes some time (several seconds). I need to wait a line "Server startup in" in Tomcat's log before proceeding. Here is a way which I used in Chef: https://

[Puppet Users] Re: How to watch a logfile in Puppet?

2013-01-21 Thread llowder
On Monday, January 21, 2013 3:32:51 PM UTC-6, Andrey Brindeyev wrote: > > Hi! > > I'm a newbie in Puppet with some Chef experience. > > Now trying to convert my pet project from Chef to Puppet. > > When I start a Tomcat is takes some time (several seconds). > > I need to wait a line "Server start

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Gary Larizza
Have you tried explicitly setting the ensure value - a la "ensure => file" - on the files that might exist as symlinks? I tested this out locally and was able to get Puppet to overwrite a symlink with a file declaration. On Monday, January 21, 2013 at 11:31 AM, Sean Kelly wrote: > I've tried

[Puppet Users] Re: How to watch a logfile in Puppet?

2013-01-21 Thread Andrey Brindeyev
I need to deploy Java artifact to Tomcat and run tests. Due Java environment variables change I can't just put WAR file inside Tomcat, entire Tomcat app needs to be restarted. If I start my tests immediately after Tomcat startup then they fail due "Connection refused" error. I need to wait until

Re: [Puppet Users] Re: How to watch a logfile in Puppet?

2013-01-21 Thread Nan Liu
On Mon, Jan 21, 2013 at 4:28 PM, Andrey Brindeyev < abrinde...@griddynamics.com> wrote: > I need to deploy Java artifact to Tomcat and run tests. > Due Java environment variables change I can't just put WAR file inside > Tomcat, entire Tomcat app needs to be restarted. > > If I start my tests imme

Re: [Puppet Users] Puppet and Windows runtime error

2013-01-21 Thread Thomas Bendler
2013/1/21 Josh Cooper > [...] > The name of the package in your manifest > > package { 'NSClientpp': > > needs to match the name that is displayed in Add/Remove Programs. > Life could be so easy ... ;) Now it's working as expected, thanks for the help! Regards, Thomas -- Linux ... enjoy the

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
That worked, thanks! I didn't realize "file" was even a valid setting for ensure. notice: /Stage[main]/Zabbix/File[/usr/local/etc/zabbix/zabbix_agentd.conf]/ensure: defined content as '{md5}6b3491d534f04c4eea426b9cf83e637d' info: /Stage[main]/Zabbix/File[/usr/local/etc/zabbix/zabbix_agentd.conf

Re: [Puppet Users] ssh::auth and other ways of managing ssh keys

2013-01-21 Thread Wolf Noble
This is actually a module I would love to see CURATED by PL, as I believe it is a great real-world example to demonstrate the current recommendations from which many people can learn. The focus is pretty tight, however it could make a lot of people's lives easier. Many community members(1)(2)(3)

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-21 Thread Fusebox
yeah..I figured that out after posting..works after fixing it.. but thanks for looking into it and responding..appreciate much :) On Sunday, January 20, 2013 8:40:54 PM UTC-6, nseagoon wrote: > > It looks like a syntax issue (at a minimum): > > *package { "sudo-ldap":* > *ensure => presen

[Puppet Users] Custom Error/Exception Handler

2013-01-21 Thread James Birchfield
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 custom error/exception handler? I would like to be able to register for any excepti