[Puppet Users] Re: how to call a class from different module than current

2013-03-25 Thread MrTeleBird
Hi John! yes, exactly that was the answer I was looking for. I think the next time I will not forget just to think easy ;-) cheers, Cesar -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Jithin Xavier
Thanks Calvin, It is working for me now. There is another issue which I noticed in Mysql is, I have set the root password in config.pp as below. class mysql::config( * $root_password = 'Pa$$word!',* $old_root_password = '', $bind_address = $mysql::params::bind_address, $port

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Felix Frank
On 03/25/2013 11:06 AM, Jithin Xavier wrote: If trued with mysql -u root -p Pa$$word!, and its working as well Hmm, that looks wrong. There must be no space between -p and the password, otherwise the mysql command will interpret the latter as the database to use, not the password. Try mysql -u

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Jithin Xavier
No, this is not my issue mysql -u root -p , My problem is ,if I type mysql command and enter,its going to mysql console with out giving me error,I am expecting some error here because I have set root credentials. On Mon, Mar 25, 2013 at 4:39 PM, Felix Frank felix.fr...@alumni.tu-berlin.de

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Felix Frank
Then read again, please. On 03/25/2013 12:18 PM, Jithin Xavier wrote: No, this is not my issue mysql -u root -p , My problem is ,if I type mysql command and enter,its going to mysql console with out giving me error,I am expecting some error here because I have set root credentials. Anyway,

[Puppet Users] composite tags broken

2013-03-25 Thread Luke Bigum
Hi all, I wanted to check I'm not doing anything wrong before I lodge a bug. I think composite tags should work according to this doc: http://docs.puppetlabs.com/puppet/3/reference/lang_tags.html#restricting-catalog-runs However I do not get the expected behaviour with my test using Puppet 3:

[Puppet Users] Re: Cannot get puppetlabs-haproxy to do what I want

2013-03-25 Thread Fiddyspence
There's a bug in the manifests/listen.pp defined resource definition that hasn't made it to the module on the forge yet - either check the release on github at https://github.com/puppetlabs/puppetlabs-haproxy or edit the listen.pp order = 20-${name}-00, That should put the fragment in

Re: [Puppet Users] puppet and execution order

2013-03-25 Thread Felix Frank
Hi, On 03/22/2013 09:27 PM, Dan wrote: node ip::addr{ eth0: Uhm, what? node ip::addr ? Wouldn't that tell puppet that there is a host in your setup by the name of ip::addr? Confusing... Anyway, execution order is controlled using require/before parameters. These should all work, assuming the

Re: [Puppet Users] could not retrieve catalog from server error on windows

2013-03-25 Thread Felix Frank
Hi, please share the complete output of 'puppet agent --test'. On 03/23/2013 01:28 PM, Saeid Ansaripour wrote: Hello I get the error in title when I run puppet agent on my windows 7 machine I can ping puppet master just fine with no problem. thanks -- You received this message because

[Puppet Users] Re: Nested case

2013-03-25 Thread jcbollinger
On Friday, March 22, 2013 8:40:20 AM UTC-5, Dragos R wrote: Thanks, Its not mentioned and I tried, did not work. No problem, if's are ok too. The code you posted would not work, because the outer case statement is incomplete. Also, the inner case statement has no code block (and no

Re: [Puppet Users] puppet and execution order

2013-03-25 Thread jcbollinger
On Monday, March 25, 2013 7:59:03 AM UTC-5, Felix.Frank wrote: Hi, On 03/22/2013 09:27 PM, Dan wrote: node ip::addr{ eth0: Uhm, what? node ip::addr ? Wouldn't that tell puppet that there is a host in your setup by the name of ip::addr? Confusing... You beat me to the punch.

[Puppet Users] Nexus RPM artifact installation using Puppet

2013-03-25 Thread Amit Vyas
I am newbie to puppet. Using puppet master and agent deployment to configure agents with specific packages. I have installed puppet-nexus module and able to fetch my artifact from Nexus. Now artifact from Nexus which are RPM on puppet node I need to install them {RPM} on the node using puppet

Re: [Puppet Users] Nexus RPM artifact installation using Puppet

2013-03-25 Thread Brendan O'Bra
I did this a few months back.. the pattern I used was: 1) resolve all RPMs using nexus resource type to machine 2) Turn the machine into a yum repo 3) Tell agents to use the machine as a yum repo But this had a few too many moving parts, so I settled on using this:

Re: [Puppet Users] Re: PuppetDB SSL error

2013-03-25 Thread Ken Barber
Thanks Hugh, can you confirm if switching to openjdk-6 fixes it? On Mon, Mar 25, 2013 at 1:35 PM, Hugh Cole-Baker h...@fanduel.com wrote: I've filed a bug report http://projects.puppetlabs.com/issues/19884 with some info on the OpenJDK / Ruby / OpenSSL versions we're using. -- You received

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

2013-03-25 Thread Klavs Klavsen
I use Netgroups (with LDAP as backend) to group my nodes. Netgroups is an old NIS thing, which works beautifully. You can group hosts, and each netgroup, can contain other netgroups, users or hosts. This way, a host can be a member of several netgroups - and I use netgroup membership to

[Puppet Users] Re: warning: Could not retrieve fact fqdn

2013-03-25 Thread jcbollinger
On Friday, March 22, 2013 9:20:23 PM UTC-5, Frank Maniaci wrote: Hi; After applying this pp i get this error. *file {'/tmp/test1':* * ensure = present,* * content = Hi.,* *}* * * *file {'/tmp/test2':* * ensure = directory,* * mode = 0644,* *}* *

[Puppet Users] Unexpected hash's behavior

2013-03-25 Thread Andrew E.
Hi all. I'm newbie. Help me, please. I write Puppet function Piece of code : n_if={} over_if = arguments[1] over_if.each do |kk,vv| weth={} puts kk,vv,weth weth = arguments[0] weth['in_vlan'] = vv['in_vlan']

Re: [Puppet Users] Unexpected hash's behavior

2013-03-25 Thread Felix Frank
Hi, On 03/25/2013 03:53 PM, Andrew E. wrote: What is my mistake? Speficially, you are probably looking for the each_pair method: http://ruby-doc.org/core-1.8.7/Hash.html#method-i-each_pair Also, I'd advice to never use generic variable names like kk or vv. Your hash is index = options? Why

Re: [Puppet Users] Unexpected hash's behavior

2013-03-25 Thread Felix Frank
On 03/25/2013 04:06 PM, Felix Frank wrote: Speficially, you are probably looking for the each_pair method: Scratch that - just noticed it's synonymous with each. That's fine then. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

2013-03-25 Thread Red Cricket
Thanks for the reply Keith. I will definitively have to dig into the auth.conf, but the auth.conf I am using is the one created when I run ./puppet-enterprise-installer as per the PE 2.7 quickstart guide. Is there a way to let puppetlabs know that there is a problem during the evaluation period?

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

2013-03-25 Thread Keith Burdis
You could try adding: On 25 March 2013 16:50, Red Cricket red.cricket.b...@gmail.com wrote: Thanks for the reply Keith. I will definitively have to dig into the auth.conf, but the auth.conf I am using is the one created when I run ./puppet-enterprise-installer as per the PE 2.7 quickstart

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

2013-03-25 Thread Keith Burdis
You could try adding: path /facts auth any method find, search allow * before the deny entry at the end of the file and restarting your Puppet master. Or look for a similar entry and see if the allow line contains a specific hostname or IP that doesn't match what you expect. I don't know about

[Puppet Users] Re: composite tags broken

2013-03-25 Thread Ellison Marks
As far as I can tell, if a provided tag matches any tag in the resource, it will be applied. Since you provide woof and service, file { '/tmp/foo': is run because it is tagged woof, service { 'foo': is run because it is tagged woof and is a service, and file { '/tmp/bar': is run because it is a

[Puppet Users] Unresponsive nodes with no pending task in the dashboard

2013-03-25 Thread Juan Sierra Pons
Hi, Since this morning all nodes are showing as unresponsive. I have faced a similar error before and the problem was fixed restarting the dashboard-workers as there were many pending task in the puppet dashboard. I am using Puppet Enterprise 2.7.1 version. I have already checked/done: *

[Puppet Users] Re: composite tags broken

2013-03-25 Thread Luke Bigum
On Monday, March 25, 2013 5:25:20 PM UTC, Ellison Marks wrote: As far as I can tell, if a provided tag matches any tag in the resource, it will be applied. Since you provide woof and service, file { '/tmp/foo': is run because it is tagged woof, service { 'foo': is run because it is tagged

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

2013-03-25 Thread Red Cricket
Thanks again for your help Keith, but I am still having the same issue ... I changed the auth.conf from this ... $ cat /etc/puppetlabs/puppet/auth.conf_save path ~ ^/catalog/([^/]+)$ method find auth yes allow $1 path ~ ^/node/([^/]+)$ method find auth yes allow $1 path

Re: [Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-25 Thread John Smith
On Friday, March 22, 2013 10:04:28 PM UTC-7, Keith Burdis wrote: Most of the classes take a config hash parameter so this would be: $ntp = { 'servers' = ['ntp1.domain.com'], } class { 'system::ntp': config = $ntp, } I use this internally and Byron showed me an example of how he

Re: [Puppet Users] puppet module satisfy dependencies issue

2013-03-25 Thread Ryan Coleman
Hi Felipe, Comment in-line. On Mon, Mar 25, 2013 at 4:06 PM, Felipe Salum fsa...@gmail.com wrote: Hi guys, I'm trying to understand the error below, but I'm stuck on it. root@puppet1:~# puppet module install ispavailability-logstash --modulepath /etc/puppet/modules-0/ Notice: Preparing

Re: [Puppet Users] puppet module satisfy dependencies issue

2013-03-25 Thread Felipe Salum
Thanks Ryan. After a few upgrades (inifile,puppetdb,postgresql and a few others) I got my dependency issue fixed :) Regards, Felipe On Mon, Mar 25, 2013 at 4:17 PM, Ryan Coleman r...@puppetlabs.com wrote: Hi Felipe, Comment in-line. On Mon, Mar 25, 2013 at 4:06 PM, Felipe Salum

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-03-25 Thread Ramin K
On 3/25/2013 7:04 PM, thinkwell wrote: My puppet master server got torched so I'm rebuilding - ubuntu 12.04.2 LTS. After fiddling / tweaking / reading docs http://docs.puppetlabs.com/guides/passenger.html for hours now and I am reduced to hair-pulling frustration. I'm endeavoring to install