Re: [Puppet Users] Re: Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.

2013-03-19 Thread krish
Please refrain from multi-posting the same problem. :) -- Krish -- 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 puppet-users+unsubscr...@googlegroups.com. To

Re: [Puppet Users] Re: Verbose debugging of template variable binding ?

2013-03-19 Thread Francis Pereira
Figured it out - by removing the line 'daemonize <%= daemonize %>' from the template, the template works as expected. Looks like the variable whose name is deamonize ( <%= daemonize %>) for some reason does not play nice in a template. Can someone shed some light on reserved variables in templates

[Puppet Users] Re: Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.

2013-03-19 Thread yarlagadda ramya
On Wednesday, 20 March 2013 11:36:30 UTC+5:30, yarlagadda ramya wrote: > > Hi all, > I tried disabling selinux also..i disabled it..but still am getting the same errors. > > 1)I installed puppet agent in one of the server and i gave the name of the > master for which it needs to be connec

[Puppet Users] Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.

2013-03-19 Thread yarlagadda ramya
Hi all, 1)I installed puppet agent in one of the server and i gave the name of the master for which it needs to be connected as puppet. But am unable to connect to the host..the certificate is not present in the master when i searched for it with this command *puppet cert list -all *am getting

Re: [Puppet Users] Windows Reboot

2013-03-19 Thread Rakesh Kathpal
Dear James, So how exactly can I use this resource while doing my operations.. Say.. I want to perform the operation in a following sequence 1) Puppet Run starts 2) Install MSI 3) Reboot 4) Apply another puppet manifest 5) Puppet Run Completes Thanks a lot for your help. Regards, Rakesh K. O

Re: [Puppet Users] Re: Host name lookup failure

2013-03-19 Thread yarlagadda ramya
Hi krish, I also tried modifying SELINUX=disabled in /etc/selinux/config but its of no use..it dint get disabled Regards, Ramya Y On Wednesday, 20 March 2013 10:29:17 UTC+5:30, yarlagadda ramya wrote: > > Hi.. > > I tried to disable selinux but it dint worked...it is enabled..only... > >

Re: [Puppet Users] Re: Host name lookup failure

2013-03-19 Thread yarlagadda ramya
Hi.. I tried to disable selinux but it dint worked...it is enabled..only... I used this command to check whether it is enabled or diabled - selinuxenabled && echo enabled || echo disabled As u said to disable it, i tried to do it...using this command - echo 0 > /selinux/enforce but itis

Re: [Puppet Users] Windows Reboot

2013-03-19 Thread Josh Cooper
On Monday, March 11, 2013, ad wrote: > James, > > Not yet, see http://projects.puppetlabs.com/issues/19162. > > My (ugly) approach for this now is a refreshonly exec with a delayed > shutdown. I'd like to see a reboot => true or such for all resources that > tell the agent to reboot after a run is

Re: [Puppet Users] File resources: using source much slower than content

2013-03-19 Thread Josh Cooper
Hi Tim, On Monday, March 11, 2013, Tim Moorhouse wrote: > I'm moving from version 2.7.19 to 3.1.0 and am running into an issue with > file resources. > > All of them using a "source => '...'" attribute to pull their contents > from the master are taking about 5 seconds longer than they used to.

Re: [Puppet Users] Windows ACL best practise

2013-03-19 Thread Josh Cooper
On Tuesday, March 19, 2013, Thomas Bendler wrote: > Hi @all, > > I've started to extend some classes I wrote with support for Windows. > Unfortunately I got stucked with the ACLs. The plan is (as I thougth) quite > simple, I would like to create a central directory (i.e. c:\managed) and I > would

Re: [Puppet Users] Store configuration problem (mysql)

2013-03-19 Thread Ellison Marks
Pro Puppet wouldn't mention puppetdb, as it was written before puppetdb came out. As to your original question, if the puppetmaster service is running, that would probably inhibit you from starting a second one, as the PID file would already be in use. For the client not being able to connect,

Re: [Puppet Users] how to customize hiera lookups per node?

2013-03-19 Thread Darryl Wisneski
On Thu, Mar 07, 2013 at 12:11:09PM -0800, James Ralston wrote: > > At this point, all of the modules we have written use parameterized > classes. That way, when we call the module from the host's node.pp file, we > can override defaults (if necessary). > I lump all nodes into the node default

Re: [Puppet Users] Store configuration problem (mysql)

2013-03-19 Thread Miguel Angel Coa Morales
I don't have idea of mysql and backed becoming obsolete. My guide is the book: Pro Puppet, but within the section "stored configuration" speak about: mysql, postgres, sqlite and oracle and never puppetdb. (Thanks for this tips). Respect whether puppet master is running, yes is ok and the ports

Re: [Puppet Users] Store configuration problem (mysql)

2013-03-19 Thread 尹川
please check whether the puppetmaster service is running. and, Puppet recommend to use puppetdb with stored config. the support for mysql backend will be deprecated. On Wed, Mar 20, 2013 at 3:31 AM, mike wrote: > Hi all. > I'm have question with sotred configuration for mysql on puppet master.

Re: [Puppet Users] Can I exec a bash function?

2013-03-19 Thread Jon Stanley
On Tue, Mar 19, 2013 at 6:03 PM, Steffen Vulpius wrote: > I have a file foo.sh which is basically a library of various bash functions. > Is there a way to execute these functions from puppet Correct me if I'm wrong, but you have a file foo.sh, that defines a bash function called bar, and you wan

Re: [Puppet Users] removing matching line from file

2013-03-19 Thread 尹川
thank you for let me know there is a stdlib module,many thanks! On Wed, Mar 20, 2013 at 5:01 AM, Philip Brown wrote: > I've been using the stdlib::file_line resource happily for a bit now, but > then ran into a problem > > I have a class, which can be simplified as follows > > class prop(propva

Re: [Puppet Users] Can I exec a bash function?

2013-03-19 Thread 尹川
i think the 'exec' builtin type will help you. http://docs.puppetlabs.com/references/2.7.latest/type.html#exec On Wed, Mar 20, 2013 at 6:03 AM, Steffen Vulpius wrote: > Hi, > > I have a file foo.sh which is basically a library of various bash > functions. Is there a way to execute these function

Re: [Puppet Users] Re: how to customize hiera lookups per node?

2013-03-19 Thread Peter Brown
You can apparently use LDAP as an ENC... I run FreeIPA here but I haven't tried setting it up as an ENC yet (I currently use Foreman) Here are the official docs on the subject. http://projects.puppetlabs.com/projects/puppet/wiki/LDAP_Nodes The ENC docs may help as well. http://docs.puppetlabs.com

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

2013-03-19 Thread Heiko Finzel
Hi I'm having a similar issue. I found the solution Hailee posted here in the official documentation and gave it a try. The weight seems to work great as long as it concerns my own facts. But as it seems it won't work for build in types. In my special case I want to override the hostname fact, bu

[Puppet Users] Can I exec a bash function?

2013-03-19 Thread Steffen Vulpius
Hi, I have a file foo.sh which is basically a library of various bash functions. Is there a way to execute these functions from puppet? --Steffen -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receivi

[Puppet Users] What's your hiera tree look like?

2013-03-19 Thread Larry Fast
My Hiera tree is turning into a chaotic mess. I'm guessing that my tree structure is one problem source. So I'm wondering how other real users have setup hiera. Here are the core problems that are giving me headaches. # I need to version control my modules separately but hiera data is monolithi

[Puppet Users] removing matching line from file

2013-03-19 Thread Philip Brown
I've been using the stdlib::file_line resource happily for a bit now, but then ran into a problem I have a class, which can be simplified as follows class prop(propval) { file_line {conffile: line=>"PROPERTY=propval" } } However, I'm attempting to plan for the future, and it sounds ra

[Puppet Users] Store configuration problem (mysql)

2013-03-19 Thread mike
Hi all. I'm have question with sotred configuration for mysql on puppet master. I am reading the documentation in puppetlabs (http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration ) and when starts "standalone puppet master" i have the next message: [] [root@pu

[Puppet Users] LSB Fact resolution in the absence of -lsb package

2013-03-19 Thread Wolf Noble
Hi there, in house, we rely on the lsb facts: lsbdistcodename, lsbdistdescription, lsbdistid, lsbdistrelease, and lsbmajdistrelease all of which are essentially derived from the /etc/${distro-specific-release-file} and don't _really_ need the lsb packages (and the associated bloat) installed.

[Puppet Users] Re: Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Brandon Groves
Thanks for the help. I ended up removing the postgres user on the puppet agent machine and directing puppet in the module manifest file to create the postgres user. And now Exec ["postgres init"] runs properly. On Tuesday, March 19, 2013 10:30:09 AM UTC-4, Brandon Groves wrote: > > I am using

[Puppet Users] User Groups (hadnling undefine groups)

2013-03-19 Thread Kubes
I am trying to handle in my user class assigning user to groups, and handling that some groups might not be defined for that node. Example here is handling a non-datase node, "juser" fails with "Error: Failed to apply catalog: Parameter groups failed on User[juser]: Group names must not be e

[Puppet Users] Re: Verbose debugging of template variable binding ?

2013-03-19 Thread Ellison Marks
If it's working using the declaration from your tests directory, but not from your master, then it stands to reason that either something is wrong with the way you're calling it on the master or something is wrong in your master setup that is causing a communication error. Could you post how yo

[Puppet Users] Slow user resource-type when host is attached to LDAP directory

2013-03-19 Thread Josh
The majority of our servers are attached to large LDAP directories. However, there are also cases when we need to define local service accounts for whatever reason. We do this with the "user" resource-type. If the host is attached to a LDAP directory, it takes Puppet a VERY long time to proc

[Puppet Users] Re: One Dashboard for Multiple Masters

2013-03-19 Thread Nathan Long
I ended up figuring it out myself finally. In order to accomplish this you need to set up PuppetDB. Then you point all masters to PuppetDB as the inventory service and Puppet Dashboard will pull from there instead of the master directly. Of course, in order to point multiple masters at PuppetDB

[Puppet Users] Re: setting up default param value to all instances of a specific resource type

2013-03-19 Thread jcbollinger
On Monday, March 18, 2013 7:01:10 AM UTC-5, david...@gmail.com wrote: > > hi, > > Specifically I would like to have something like top scope resource > defaults so as to enforce,... well,... default behaviors across our modules > > for example, with the exec type: Exec { logoutput => on_failure

Re: [Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Felix Frank
Hmm, I'm about stumped then. Sorry. Regards, Felix On 03/19/2013 04:26 PM, Francis Pereira wrote: > Works as expected when the content parameter is # > > > > ~Francis -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

Re: [Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Francis Pereira
Works as expected when the content parameter is # ~Francis On Mar 19, 2013, at 8:19 PM, Felix Frank wrote: > All right, so - what happens if you remove that resource from the > manifest, or remove the content => parameter from the resource? > (Do use --noop on the agent side). > > Felix > > O

[Puppet Users] Re: Facter Strings to integer.

2013-03-19 Thread jcbollinger
On Monday, March 18, 2013 11:16:41 AM UTC-5, olli...@googlemail.com wrote: > > Hello, > > If I want to do something like this:- > > if $::lsbdistrelease >= 6.3 { > SOMETHING > } > > Do I have to convert lsbdistrelease from a string to a number with an > inline template or some such ? > > Gener

Re: [Puppet Users] Inherit two classes?

2013-03-19 Thread jcbollinger
On Monday, March 18, 2013 3:34:18 PM UTC-5, Matthew Burgess wrote: > > > Yes. Try: > > class website { > ... > require => Class['httpd', 'mysqld'] > } > > Nope. You are confusing separate concepts and separate language structures. The OP is defining his class, not declaring it. The 'req

[Puppet Users] Re: Inherit two classes?

2013-03-19 Thread jcbollinger
On Monday, March 18, 2013 2:48:11 PM UTC-5, JamieC wrote: > > Hello, > > I have a class called website, which requires both httpd and mysqld > classes. Without defining it within the site.pp (node section). Is it > possible to define that "website" requires these additions? Such as; > > class w

Re: [Puppet Users] Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Felix Frank
Hi, On 03/19/2013 03:30 PM, Brandon Groves wrote: > When Exec ["postgres init"] is ran, /var/log/messages on the the puppet > agent has several lines printed similar to the following: > kernel: type=1400 audit(1363697390.681:566): avc: denied { read write > } for pid=14834 comm="postgres" > pat

Re: [Puppet Users] Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > [root@host]# su postgres > > bash-4.1$ ./initializePostgres.sh (in SELinux terms) this is not the same as bash initializePostgres.sh Maybe try with the following exec: exec{'postgres init': command => '/applications/module/initializePostgres.sh

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Does Facter need direct connection to clients ? If yes I cannot use > it since my clients are behind firewalls/routers. facter runs on the clients before the client asks (with the gathered facts) the master for the catalog. In your manifests you ca

Re: [Puppet Users] Error: stack level too deep

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The problem is that when I install activerecord-mysql-adapter it > automatically install the latest activerectord gem Is there a way > to disable it or there is a fix for activerecord gem? Maybe install an older mysql-adapter? ~pete -BEGIN PGP

Re: [Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Felix Frank
All right, so - what happens if you remove that resource from the manifest, or remove the content => parameter from the resource? (Do use --noop on the agent side). Felix On 03/19/2013 03:41 PM, Francis Pereira wrote: > That's the last line I get on the master. After that the client run stops. >

Re: [Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Francis Pereira
That's the last line I get on the master. After that the client run stops. ~Francis On Mar 19, 2013, at 7:42 PM, Felix Frank wrote: > On 03/19/2013 02:29 PM, Francis Pereira wrote: >> On my puppetmaster with --debug I get the following error >> debug: >> template[/etc/puppet/manifests/lib/redis

[Puppet Users] Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Brandon Groves
I am using Puppet 3.1.0 on a CentOS 6.3 machines. The puppet master and puppet agents use CentOS 6.3 as their OS. I have a puppet script (init.pp file for the puppet module) that contains the following exec type: exec { "postgres init": cwd => "/applications/module", command => "bash initiali

Re: [Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Felix Frank
On 03/19/2013 02:29 PM, Francis Pereira wrote: > On my puppetmaster with --debug I get the following error > debug: > template[/etc/puppet/manifests/lib/redis/templates/redis.conf.erb]: > Bound template variables for > /etc/puppet/manifests/lib/redis/templates/redis.conf.erb in 0.00 seconds Hmm, t

[Puppet Users] Re: Generating a config file from multiple classes

2013-03-19 Thread llowder
On Tuesday, March 19, 2013 8:21:24 AM UTC-5, Moritz Tanzer wrote: > > Hello, > > is it possible to modify the same file with two different inherited > classes? > > I have to define some kernel modules which must be loaded automatically at > system startup. Probably the easiest way would be writ

Re: [Puppet Users] Error: stack level too deep

2013-03-19 Thread Luca Gioppo
The problem is that when I install activerecord-mysql-adapter it automatically install the latest activerectord gem Is there a way to disable it or there is a fix for activerecord gem? Luca 2013/3/19 Peter Meier > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > I've eliminated a few dupli

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Dragos R
Thanks Brendan, Does Facter need direct connection to clients ? If yes I cannot use it since my clients are behind firewalls/routers. Is there another way except Facter ? On Tuesday, March 19, 2013 2:49:54 PM UTC+2, Brendan O'Bra wrote: > > I think the "operatingsystem" fact is what you want: >

[Puppet Users] Generating a config file from multiple classes

2013-03-19 Thread Moritz Tanzer
Hello, is it possible to modify the same file with two different inherited classes? I have to define some kernel modules which must be loaded automatically at system startup. Probably the easiest way would be writing the module's name in /etc/modules.conf. But how do I manage several host with

[Puppet Users] Verbose debugging of template variable binding ?

2013-03-19 Thread Francis Pereira
I seem to have made some error in my template but cant seem find a way to debug it except for removing (deleting) parts of the template file and figuring out where there is a mistake. On my puppetmaster with --debug I get the following error debug: template[/etc/puppet/manifests/lib/redis/template

Re: [Puppet Users] Error: stack level too deep

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I've eliminated a few duplicate gems and installed the most recent > rails (mind I'm no ruby developer so I'm going blind here) This seems to be the problem that newer activerecord will get into an endless loop while serializing. I use the followin

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Brendan O'Bra
I think the "operatingsystem" fact is what you want: https://puppetlabs.com/blog/facter-part-1-facter-101/ On Tue, Mar 19, 2013 at 5:26 AM, Dragos R wrote: > Beginner question: > > I have a very simple configuration in site.pp for all agents. > > Is it possible to split actions based on operati

[Puppet Users] OS specific configuration

2013-03-19 Thread Dragos R
Beginner question: I have a very simple configuration in site.pp for all agents. Is it possible to split actions based on operating system. I am interested into running certain commands only on Windows 7, some on Windows Xp and some on Mac OS X agents. Is there a simple way of achieving this wh

[Puppet Users] Re: Puppet 3.1.1 Windows 7 agent fails to join

2013-03-19 Thread Dragos R
I disabled autosigning on server and run puppet_interactive.bat --test --server 192.168.1.250 --wasitforcert 30 on server I manually signed the certificate. It threw some errors on the agent then puppet agent successfully run. The host agent was upgraded from 3.0.0, maybe that was the cause. Al

Re: [Puppet Users] How to loop through entries in nodes definition for puppet

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I'd like to print out the above using my template file, however I > can't be certain of how many entries will exist, I want to end up > with a file like so: pass a hash to your ip::addr define and loop over keys/values as indication which interfaces

[Puppet Users] How to loop through entries in nodes definition for puppet

2013-03-19 Thread Dan
Could someone please help me understand how I could loop through the following nodes definition in my templates file? ip::addr{ "as2s67v": ip0 => "192.168.30.0", pre0 => "/24", ip1 => "172.45.35.0", pre1 => "/16", ip2 => "145.88.88.0", pre2 => "/24", } I'd like to prin

[Puppet Users] Re: Installing Oracle

2013-03-19 Thread Peter Gallagher
Douglas, I realise this is an old thread and you may have moved on but for the benefit of others that may be coming later the flag you are looking for is -waitforcompletion e.g. ./client/runInstaller -silent -responseFile ~/client.rsp -ignorePrereq -waitforcompletion This prevents the install

[Puppet Users] Puppet 3.1.1 Windows 7 agent fails to join

2013-03-19 Thread Dragos R
I am pretty new with puppet and I am receiving this error when I try to run Puppet Agent on the Windows 7 host: "Running Puppet agent on demand ... Exiting; no certificate found and waitforcert is disabled Press any key to continue . . ." puppetmaster 3.1.1 on CentOS 6.4 on 192.168.1.250 /etc/pu

[Puppet Users] Windows ACL best practise

2013-03-19 Thread Thomas Bendler
Hi @all, I've started to extend some classes I wrote with support for Windows. Unfortunately I got stucked with the ACLs. The plan is (as I thougth) quite simple, I would like to create a central directory (i.e. c:\managed) and I would like to put some additional files and directories underneath t

Re: [Puppet Users] Re: how to customize hiera lookups per node?

2013-03-19 Thread Felix Frank
On 03/18/2013 03:02 PM, Klavs Klavsen wrote: > I solved this issue, by using netgroups (in LDAP) - which is loaded into > puppet, by a script which is run by external_nodes setting (it just > provides parameters - no actual nodes). > > This way, a server can have multiple roles (by being in multip

[Puppet Users] Passing variables from one template to another "included" template

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have the following basic requirement to pass variables from one template to another "included" one: #some_template.erb <%- [:foo, :bar].each do |state| %> <%= scope.function_template('some/other_template.erb') %> <%- end %> # some/other_