Re: [Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-04 Thread confused
Got it, thanks.  I appreciate the assistance.

>
>

-- 
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/-/Byoko1rC37QJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Trying to setup puppetdbquery on puppet-3.0.0-rc5

2012-09-04 Thread Chuck
Thanks,  I have tested it on my puppet 3.0 rc-5 master is working great 
now.  

On Tuesday, September 4, 2012 3:44:10 AM UTC-5, Erik Dalén wrote:
>
> I've released a new version now that contains a fix for this, thanks 
> for the report. 
>
> On 1 September 2012 11:03, Erik Dalén > 
> wrote: 
> > I'll try to take a look at this during the weekend and see if I can 
> > create something that is compatible with both puppet 2.7 and 3.0. Can 
> > probably try to make the requests more like the puppetdb-terminus does 
> > them as it works on both. 
> > 
> > On 31 August 2012 18:28, Chris Price > 
> wrote: 
> >> Chuck, 
> >> 
> >> The cause of this issues is that we introduced our own HTTP connection 
> >> wrapper in 3.0 (rather than using Net::HTTP directly).  This allows us 
> to do 
> >> a better job of centralizing the logic related to managing SSL setup 
> and 
> >> error handling. 
> >> 
> >> Our Connection class provides a subset of the methods available on 
> Ruby's 
> >> HTTP class, and it looks like puppetdbquery is using one of the methods 
> that 
> >> don't currently exist in our new API. 
> >> 
> >> The possible solutions would be to add the missing #start method to our 
> new 
> >> class, or to tweak puppetdbquery so that it doesn't rely on the #start 
> >> method.  I'll ping the folks on our platform team and see what their 
> >> thoughts are. 
> >> 
> >> Thanks for the heads up! 
> >> Chris 
> >> 
> >> 
> >> On Thursday, August 30, 2012 6:04:27 AM UTC-7, Chuck wrote: 
> >>> 
> >>> I have puppetdbquery working on my puppet-2.7.16 puppet master but I 
> am 
> >>> getting an error when using it with puppet-3.0.0-rc5 
> >>> 
> >>> https://github.com/dalen/puppet-puppetdbquery 
> >>> 
> >>> This is the error I am getting: 
> >>> 
> >>>   err: Could not retrieve catalog from remote server: Error 400 on 
> SERVER: 
> >>> undefined method `start' for 
> >>> # 
> >>> 
> >>> How would I go about finding the actual cause of this issue? 
> >>> 
> >>> 
> >>> Thanks, 
> >> 
> >> -- 
> >> 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/-/cnmWN3qKeJYJ. 
> >> 
> >> To post to this group, send email to 
> >> puppet...@googlegroups.com. 
>
> >> To unsubscribe from this group, send email to 
> >> puppet-users...@googlegroups.com . 
> >> For more options, visit this group at 
> >> http://groups.google.com/group/puppet-users?hl=en. 
> > 
> > 
> > 
> > -- 
> > Erik Dalén 
>
>
>
> -- 
> Erik Dalén 
>

-- 
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/-/pDzfpt-YRTEJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-04 Thread Eric Sorenson
Hi Axel - what OS? What version of Facter? What does the output of your 
'ifconfig -a' (or local equivalent) look like? Could you please run 'facter 
--debug' and pastebin the output somewhere?

On Monday, August 20, 2012 1:19:39 AM UTC-7, Axel Bock wrote:
>
> Hi readers, 
>
> another problem of mine. A host which worked just fine on friday is now 
> not able to find out its own IP address. The reason is pretty simple as far 
> as I have figured out: Facter. Facter returns the network interfaces just 
> fine: interfaces=eth0,eth1, but then the ipaddress_ETHx entries are 
> completely missing. 
>
> Any idea what could be the cause of this?
>
>
> Thanks in advance & greetings, 
> Axel.
>

-- 
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/-/delcvsRPrroJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Does certification make sense for non-PE users?

2012-09-04 Thread Christy
Hi R. Tyler,

Both the Puppet Professional and Puppet Developer exams include questions 
about Puppet Open Source and Puppet Enterprise. However, many of the Puppet 
Enterprise-specific questions will be applicable to Puppet Open Source 
because Puppet Enterprise is based on Puppet Open Source. Since you're 
taking the Puppet Developer certification exam, you might want to check out 
the "Exam Objectives" section of this 
page: http://puppetlabs.com/services/certification/puppet-developer/. This 
will give you a clearer picture of what to expect from the exam.

I hope this helps! If you have any further questions, please feel free to 
email certificat...@puppetlabs.com.

Thanks, Christy

On Tuesday, September 4, 2012 1:26:52 PM UTC-7, R. Tyler Croy wrote:
>
> Subject really says it all. I took the practice exam linked from 
> @PuppetLabs 
> and I was a little bit surprised/caught-off-guard by the number of either 
> PE or 
> Console questions, neither of which I've ever used :-! 
>
> I am taking the developer exam though, so I'm sure that will be at least a 
> little different. 
>
> Does it make sense to take the exam for an "open source puppet user", or 
> is it 
> really more geared towards Enterprise customers who use the "Puppet 
> Ecosystem?" 
>
>
> Not that I don't like taking tests, I just don't want to waste PL's or my 
> own 
> time if it doesn't make sense :) 
>
>
> Cheers 
> - R. Tyler Croy 
> -- 
> Code: https://github.com/rtyler 
>  Chatter: https://twitter.com/agentdero 
>

-- 
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/-/Wob7l4j0FKcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Does certification make sense for non-PE users?

2012-09-04 Thread R. Tyler Croy
Subject really says it all. I took the practice exam linked from @PuppetLabs
and I was a little bit surprised/caught-off-guard by the number of either PE or
Console questions, neither of which I've ever used :-!

I am taking the developer exam though, so I'm sure that will be at least a
little different.

Does it make sense to take the exam for an "open source puppet user", or is it
really more geared towards Enterprise customers who use the "Puppet Ecosystem?"


Not that I don't like taking tests, I just don't want to waste PL's or my own
time if it doesn't make sense :)


Cheers
- R. Tyler Croy
--
Code: https://github.com/rtyler
 Chatter: https://twitter.com/agentdero


signature.asc
Description: Digital signature


[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-04 Thread joseph
I have the same issue.  Did you find a solution?

Joseph


On Monday, August 20, 2012 11:19:39 AM UTC+3, Axel Bock wrote:
>
> Hi readers, 
>
> another problem of mine. A host which worked just fine on friday is now 
> not able to find out its own IP address. The reason is pretty simple as far 
> as I have figured out: Facter. Facter returns the network interfaces just 
> fine: interfaces=eth0,eth1, but then the ipaddress_ETHx entries are 
> completely missing. 
>
> Any idea what could be the cause of this?
>
>
> Thanks in advance & greetings, 
> Axel.
>

-- 
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/-/hS7ROm_7YAYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Problem with hiera arrays not obeying the hierachy

2012-09-04 Thread Wolf Noble
I believe hiera_array() collects and provides an array of all the relevant 
elements up the entirety of the tree. To collect only the most relevant data 
just use hiera()



On Sep 3, 2012, at 10:21 AM, Josh 
 wrote:

> Versions: puppet 2.7.18, hiera 0.3.0
>
> I have encountered a problem that is completely counter intuitive to how I 
> thought hiera was meant to work. I have three levels in my hierarchy in the 
> following order:
> - .yaml   (specific to the host)
> - .yaml   (we have multiple sites, this is info specific to the 
> site)
> - common.yaml   (applies to everything)
>
> I noticed this problem while working round a DNS problem, needless to say I 
> had the following (ip addresses changes to protect the innocent) in the 
> .yaml:
>
> dns_servers:
>   - '1.1.1.1'
>   - '2.2.2.2'
>
> I wanted a specific host to use different DNS so in the .yaml I added:
>
> dns_servers:
>   - '3.3.3.3'
>
> Now, when I do a hiera_array('dns_servers') I would expect that the original 
> array (1.1.1.1 and 2.2.2.2) would be overwritten with a single value 
> (3.3.3.3)...
>
> As it turned out is concatenated the two arrays together, giving me (1.1.1.1 
> and 2.2.2.2 and 3.3.3.3). Non-plussed I added another entry to the 
> common.yaml (4.4.4.4) and lo and behold it added that in as well giving me  
> (1.1.1.1 and 2.2.2.2 and 3.3.3.3 and 4.4.4.4).
>
> I really did assume from the documentation that the hierarchy would be obeyed 
> and both .yaml and common.yaml would be ignored ... or have I 
> misunderstood how the system works?
>
> Thanks
> Josh
>
> --
> 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/-/e-jCVgKPe6AJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.




This message may contain confidential or privileged information. If you are not 
the intended recipient, please advise us immediately and delete this message. 
See http://www.datapipe.com/legal/email_disclaimer/ for further information on 
confidentiality and the risks of non-secure electronic communication. If you 
cannot access these links, please notify us by reply message and we will send 
the contents to you.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-04 Thread Sam Kottler
That means that modules/connexity_apt/files/connexity.list doesn't exist.

-Sam

On Tue, Sep 4, 2012 at 2:01 PM, confused  wrote:

> Thank you, that was very helpful.
>
> Now I need to work through:
> err:
> /Stage[main]/Connexity_apt/File[/etc/apt/sources.list.d/connexity.list]:
> Could not evaluate: getaddrinfo: Name or service not known Could not
> retrieve file metadata for puppet://modules/connexity_apt/connexity.list:
> getaddrinfo: Name or service not known at
> /opt/puppet/modules/connexity_apt/manifests/init.pp:6
>
> Or this:
> err:
> /Stage[main]/Connexity_apt/File[/etc/apt/sources.list.d/connexity.list]:
> Could not evaluate: Error 400 on SERVER: Not authorized to call find on
> /file_metadata/puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list
> Could not retrieve file metadata for
> puppet:///puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list:
> Error 400 on SERVER: Not authorized to call find on
> /file_metadata/puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list
> at /opt/puppet/modules/connexity_apt/manifests/init.pp:6
>
> I'm sure that I'm missing something simple here again, apparently I'm on
> the steep part of the learning curve.
>
>
>
>
> --
> 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/-/ptkwXpwGGvYJ.
>
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-04 Thread confused
Thank you, that was very helpful.  

Now I need to work through:
err: 
/Stage[main]/Connexity_apt/File[/etc/apt/sources.list.d/connexity.list]: 
Could not evaluate: getaddrinfo: Name or service not known Could not 
retrieve file metadata for puppet://modules/connexity_apt/connexity.list: 
getaddrinfo: Name or service not known at 
/opt/puppet/modules/connexity_apt/manifests/init.pp:6

Or this:
err: 
/Stage[main]/Connexity_apt/File[/etc/apt/sources.list.d/connexity.list]: 
Could not evaluate: Error 400 on SERVER: Not authorized to call find on 
/file_metadata/puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list
 
Could not retrieve file metadata for 
puppet:///puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list: 
Error 400 on SERVER: Not authorized to call find on 
/file_metadata/puppet/modules/connexity_apt/etc/apt/sources.list.d/connexity.list
 
at /opt/puppet/modules/connexity_apt/manifests/init.pp:6

I'm sure that I'm missing something simple here again, apparently I'm on 
the steep part of the learning curve.


 

-- 
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/-/ptkwXpwGGvYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-04 Thread R.I.Pienaar


- Original Message -
> From: "confused" 
> To: puppet-users@googlegroups.com
> Sent: Tuesday, September 4, 2012 5:51:57 PM
> Subject: [Puppet Users] Re: trouble with catalog with Foreman as ENC
> 
> 
> Nothing? I'm able to reproduce this problem without using Foreman. If
> I add a new class to a host in Puppet's site.pp, I still get 'Could
> not retrieve catalog from remote server: Error 400 on SERVER'
> message.
> 

The error is "Could not find class connexityApt", this means it cant find
your puppet class.

The documentation[1] states class names has to be all lowercase


[1] http://docs.puppetlabs.com/puppet/2.7/reference/lang_reserved.html

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-04 Thread confused
Nothing?  I'm able to reproduce this problem without using Foreman.  If I 
add a new class to a host in Puppet's site.pp, I still get 'Could not 
retrieve catalog from remote server: Error 400 on SERVER' message.

Would really appreciate any pointers on troubleshooting this problem.  My 
existing classes are working and I can edit them and have the updates work. 
 I am not able to add any new classes to my hosts without the client 
getting a 400 error.

-- 
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/-/PF-IDjQNwFUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Display partitions with facter and the inventory database

2012-09-04 Thread Stephan
Hi,

if anyone is interested, here's a way to get kind of a report of hard disks 
that are spilling over with the help of facter and the use of the facts 
inventory DB.

I'm using this fact called mounts.rb (can't remember where I got it from, 
just remember that I had to change df #{mount} to df -P #{mount} to make it 
work with long mount points):

mounts = []
> mntpoints=`mount -t ext2,ext3,ext4,reiserfs,xfs`
> mntpoints.split(/\n/).each do |m|
> mount = m.split(/ /)[2]
> mounts << mount
> end
>
> Facter.add("mounts") do
> confine :kernel => :linux
>
> setcode do
> mounts.join(',')
> end
> end
>
> mounts.each do |mount|
> output = %x{df -P #{mount}}
> output.each do |str|
> dsk_size = nil
> dsk_used = nil
> dsk_avail = nil
> if str =~ /^\S+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)\s+/
> dsk_size = $1
> dsk_used = $2
> dsk_avail = $3
> Facter.add("mount_#{mount}_size") do
> setcode do
> dsk_size
> end
> end
> Facter.add("mount_#{mount}_used") do
> setcode do
> dsk_used
> end
> end
> Facter.add("mount_#{mount}_avail") do
> setcode do
> dsk_avail
> end
> end
> end
> end
> end
>


Then in the inventory MySQL database I created these two views, which are 
prereqs for the actual query:

create view mount_extended as (select node_id, substring_index(name,"_",2) 
> as name, value, case when name regexp "mount_.*_avail" then value end as 
> avail, case when name regexp "mount_.*_size" then value end as size, case 
> when name regexp "mount_.*_used" then value end as used from 
> inventory_facts where name regexp "mount_");
>
> create view mount_pivot as (select inventory_nodes.name as hostname, 
> trim(leading "mount_" from mount_extended.name) as name, sum(avail) as 
> avail, sum(size) as size, sum(used) as used from mount_extended, 
> inventory_nodes where (mount_extended.node_id = inventory_nodes.id) group 
> by node_id, mount_extended.name);
>

And the actual query looks like this:


select hostname as Hostname, name as Mountname, round(avail/1000,0) as 
> "Free in MB", round(size/1000,0) as "Total in MB", round(used/1000,0) as 
> "Used in MB", round(100-100*avail/size,1) as "% used" from mount_pivot 
> where round(100-100*avail/size) >= 80 order by avail;
>

I know this is a bit hacky, but it works for my purposes. 

-- 
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/-/rLgWxhJd_GMJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Literal @ character in erb template

2012-09-04 Thread banjer
The puppet error was: 

  err: Failed to apply catalog: Parameter source failed: Could not 
understand source # This file managed by Puppet

Sorry for not seeing that error before...I kept looking at the "Bad URI" 
error message which I posted in my original email.  So anyway, it turns out 
I was using 'source' instead of 'content' within my file declaration in my 
manifest.   My working file resource looks like this now:


file { "rsyslog.conf":
path=> "/etc/rsyslog.conf",
owner   => root,
group   => root,
mode=> 644,
content => template('syslog/rsyslog.conf.erb'),
require => Package["rsyslog"],
}


All good now.  Thanks for the assistance, it gave me a few pointers on 
troubleshooting templates and puppet manifests.


On Tuesday, September 4, 2012 9:03:01 AM UTC-4, jcbollinger wrote:
>
>  
> On Friday, August 31, 2012 3:37:48 PM UTC-5, Krzysztof Wilczynski wrote:
>>
>> Hi,
>>
>> Works fine for me:
>>
>

> More generally, the underlying ERB engine will treat anything in your 
> template but outside ERB blocks (delimited by <% %> or <%= %> or <%# %>) as 
> literal text, except for <%% (which is translated to <% in the output) and 
> %%> (which is translated to %>).
>
> Without the actual error message (or, apparently, the template that causes 
> it) I can only speculate about what the problem may be, but one thing to 
> look for would be proper closure of all ERB code blocks before the template 
> text where the error is reported.
>
>
> John
>
>
>
>

-- 
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/-/FFFd505T5A0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Module critique

2012-09-04 Thread Bai Shen
I've gotten an install of solr working, but it's pretty much a hack job at
the moment.  If y'all could give me your thoughts on how to improve my
setup, I'd appreciate it.  apache-tomcat is an rpm of Tomcat 7 that
references the oracle jdk instead of openjdk.

Thanks.


class solr {
service { 'iptables' :
ensure => stopped,
}

file { '/opt/apache-tomcat/conf/Catalina':
ensure => directory,
}

file { '/opt/apache-tomcat/conf/Catalina/localhost':
ensure => directory,
}

file { '/opt/apache-tomcat/conf/Catalina/localhost/solr.xml':
source => 'puppet:///modules/solr/solr.xml',
owner => 'tomcat',
group => 'tomcat',
mode => '644',
notify => Service['apache-tomcat'],
require => Package['apache-tomcat'],
}

file { '/opt/apache-tomcat/conf/server.xml':
source => 'puppet:///modules/solr/server.xml',
owner => 'tomcat',
group => 'tomcat',
mode => '644',
notify => Service['apache-tomcat'],
require => Package['apache-tomcat'],
}

file { '/opt/solr':
ensure => directory,
recurse => true,
purge => true,
source => 'puppet:///modules/solr/solr',
owner => 'tomcat',
group => 'tomcat',
mode => '644',
notify => Service['apache-tomcat'],
require => Package['apache-tomcat'],
}

file { '/opt/solr/solr.war':
ensure => 'link',
target => '/opt/solr/apache-solr-3.6.1.war',
}

file { '/solr':
ensure => directory,
owner => 'tomcat',
group => 'tomcat'
}
}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet file copy

2012-09-04 Thread Bai Shen
Along with everything else that was pointed out, it turned out that I was
using a node with the same name as my module, and therefore it was not
being called.

On Fri, Aug 31, 2012 at 2:23 PM, Josh Cooper  wrote:

> On Fri, Aug 31, 2012 at 10:03 AM, Ramin K  wrote:
> > On 8/31/2012 7:18 AM, Bai Shen wrote:
>
> >> class solr {
> >>  file { '/opt/apache-tomcat/conf/Catalina/localhost':
> >>  source => 'puppet://modules/solr/solr.xml',
>
> That should be puppet:///modules/solr/solr.xml
>
> The way to think about puppet URI's is that the server host and port
> have been omitted, so there are two slashes for puppet://, and the URI
> path always has a leading slash, /modules/solr/solr.xml.
>
> See http://docs.puppetlabs.com/guides/file_serving.html
>
> --
> Josh Cooper
> Developer, Puppet Labs
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Enterprise puppet and VMware VM deployment

2012-09-04 Thread Jeff McCune
On Tuesday, September 4, 2012, hai wu wrote:

> Does Enterprise Puppet use VSphere SDK API to deploy VMware VM? If
> not, what does it use?


Cloud Provisioner uses the vsphere API through the Fog and rbvmomi
libraries.

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Enterprise puppet and VMware VM deployment

2012-09-04 Thread hai wu
Does Enterprise Puppet use VSphere SDK API to deploy VMware VM? If
not, what does it use?

On 8/30/12, steeef  wrote:
> I'm in the process of migrating data out of my standard Puppet repositories
>
> for modules and manifests, and I'm having second thoughts about my original
>
> design. I'd appreciate any feedback you can give me.
>
> We currently have two departments managing Puppet: Operations and
> Development. To prevent accidentally breaking all nodes while testing,
> there are two repositories we work with, namely "puppet" (the production
> repo) and "puppet-staging" (the testing and development repo). This allows
> Operations to control access to the production repo (to which Development
> doesn't have permission to commit changes) and maintain stability.
>
> Normally all nodes run in the "production" environment, grabbing catalogs
> from "puppet", but we can test things at the command line by specifying the
>
> "staging" environment, which will point them at "puppet-staging".
>
> When creating repositories for hiera data, I naturally decided to create
> "puppet-data" and "puppet-data-staging" repos, along the same lines as
> above. This means I've got 4 repositories to manage, and pushing any
> changes involves a lot of pushing, testing and merging.
>
> How does everyone else handle it? What problems have you run into? I'm just
>
> getting started with hiera, and my node-specific data is tightly bound to
> modules and manifests, so I've got a lot of work ahead of me.
>
> --
> 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/-/95EKCsCxm6EJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
Sent from my mobile device

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Possible to copy ssh key from node A to node B?

2012-09-04 Thread Sandra Schlichting
Hi Chad
 

> Sorry, Sandra, I started to add a comment at the bottom with usage, 
> but apparently I never saved it.  Although the script can do user keys 
> as well, this just addresses host keys.  I have a cron script that 
> generates the known hosts file as well: 
>
[snip]

Wow. Easy and simple solution to a complex problem.

Thanks for your scripts =)

Hugs,
Sandra

-- 
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/-/hX5CGhG4Y4gJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Version control design for puppet and data (hiera) repositories

2012-09-04 Thread Martijn
Good question. I'm wondering about that as well.

My setup works for my small team, but is admittedly far from perfect.
I currently have two Git repo's, one for my nodes.pp and another for my 
modules. Both repo's have three branches; development, testing and master. 
I've created environments on my Puppetmaster, named production, testing, 
dev_blabla, etc. Production is a clone from the master branches, testing is 
a clone from the testing branches, and dev_blabla are any number of clones 
from development branches of developers. Users that need to develop each 
get their own dev_username environment, so they can develop and debug on 
the puppetmaster. They can use the environment=dev_username parameter to 
test on some servers, but are not allowed to do anything in the production 
and testing environments. They can push their commits to a Bitbucket 
remote. Due to Git's design, anyone with push permissions can push any 
branches, so there's not much security in the repos. However, only admins 
have access to the testing and production environments. They will fetch 
changes from the Bitbucket remote, review them, test if necessary and merge 
them into the local environments. There's quite a bit of pushing and 
merging going on, and it's annoying to commit, push, fetch and merge, just 
to get your changes from one environment to the next. I suppose it does 
help prevent mistakes though.

I hope that story makes some sense. I'd be very interested to see how 
others set up their version control workflow, since I'm looking into Hiera 
as well.

Regards, Martijn

Op donderdag 30 augustus 2012 18:06:07 UTC+2 schreef Stephen Price het 
volgende:
>
> I'm in the process of migrating data out of my standard Puppet 
> repositories for modules and manifests, and I'm having second thoughts 
> about my original design. I'd appreciate any feedback you can give me.
>
> We currently have two departments managing Puppet: Operations and 
> Development. To prevent accidentally breaking all nodes while testing, 
> there are two repositories we work with, namely "puppet" (the production 
> repo) and "puppet-staging" (the testing and development repo). This allows 
> Operations to control access to the production repo (to which Development 
> doesn't have permission to commit changes) and maintain stability.
>
> Normally all nodes run in the "production" environment, grabbing catalogs 
> from "puppet", but we can test things at the command line by specifying the 
> "staging" environment, which will point them at "puppet-staging".
>
> When creating repositories for hiera data, I naturally decided to create 
> "puppet-data" and "puppet-data-staging" repos, along the same lines as 
> above. This means I've got 4 repositories to manage, and pushing any 
> changes involves a lot of pushing, testing and merging.
>
> How does everyone else handle it? What problems have you run into? I'm 
> just getting started with hiera, and my node-specific data is tightly bound 
> to modules and manifests, so I've got a lot of work ahead of me.
>

-- 
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/-/hmN8DPUSP5wJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Puppet presentation at the Den Bosch Linux Users Group (The Netherlands)

2012-09-04 Thread Martijn
Interesting! As a Puppet user working in Den Bosch I guess I'll come take a 
look. I don't know what the goal of the talk is, but it'll be nice to meet 
some fellow users in the area.

Regards, Martijn

Op vrijdag 31 augustus 2012 04:03:06 UTC+2 schreef Emilien Klein het 
volgende:
>
> Hi Puppet community,
>
> This Tuesday, September 4th, 2012, there will be a presentation of Puppet 
> at our weekly LUG meeting in Den Bosch, The Netherlands.
> More details on the event's Meetup 
> page, 
> or on our 
> website
> .
>
> The event is free to attend and open to anyone interested in Puppet!
> Hope to see you there,
>
> +Emilien
>

-- 
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/-/jjQ5ahzlrT0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Class for transfering files from Server to Client

2012-09-04 Thread jcbollinger


On Monday, September 3, 2012 8:38:49 AM UTC-5, Dom wrote:
>
> Hi Ajeet,
>
> Instead of using puppet for these steps, I would recommend the native 
> package management for your operating system, then use puppet to distribute 
> and maintain versions.  For instance, RPM was designed to do all the things 
> you require, as well as dealing with changes to the application files 
> themselves, contained in the .zip you are working with.  If any incremental 
> changes are required, such as a minor point release upgrade, it may be 
> difficult to deal with using puppet alone.  You can also create an in-house 
> repository to distribute an RPM.
>
> -Domenick
>
>>
+1

*Always* use native packages for installing software if it is possible to 
do so, even if that requires building the packages yourself (which is not 
that hard for most platforms).


John

-- 
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/-/erd3LW_1nusJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Get a list of (some) resources name

2012-09-04 Thread Maxence Dunnewind
Hi,

I'm moving our monitoring configuration from custom-script to puppet.
One of my main issue is that I have some nagios groups with many host on them.
For exemple, a group for all host which have a munin-node running, a group for
the others, etc ...
So, my goal is to be able to make a nagios_host belong to a list of group in a
non-static way (the list of groups is generated from the different puppet
classes run on each node).
The first thing I thought of was to use a list, for exemple :
@@nagios_host { "foo":
 [...]
 hostgroups => [ "group1", "group2" ]
}

So that I could easily extend it with something like :
Nagios_host["foo"] {
hostgroups +> ["group3"]
}

But, afaik, puppet does not yet support this (reported as bug #4020) (We use
puppet 2.6.9).

So, my second approach is to use tags and nagios_hostgroups, for exemple :
nagios_host { "foo":
  [...]
  tag => ["X","Y"]
}
nagios_host { "bar":
  [...]
  tag => ["Y", "Z"]
}

nagios_hostgroup { "Y":
  [...]
  members => somemagicfunction("Y")
}

Here, the "somemagicfunction" should be able to find all the list of Nagios_host
resources with the tag "Y", and return a list of their title, so something like
"foo,bar".

Any way to do this ? Or is their any better solution/workaround ? 

Regards,

Maxence

-- 
Maxence Dunnewind


signature.asc
Description: Digital signature


[Puppet Users] Re: wollviech / puppet-drbd module

2012-09-04 Thread Wolfgang Miedl
This was an issue with the module not being sufficiently ported from our 
internal environment to the more or less self-contained version available 
on Github, and should be fixed now.

Rgrds,
W

-- 
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/-/QBmEakKXr38J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-09-04 Thread jcbollinger


On Sunday, September 2, 2012 12:33:49 AM UTC-5, Dan wrote:
>
> disabling selinux is never the solution
>
> On Sat, Sep 1, 2012 at 7:16 PM, purple grape 
> > wrote:
>
>> just disable selinux .
>>
>

Well, I do prefer to set selinux to non-enforcing mode instead of actually 
disabling it, but I don't suppose that's what you meant.

As with anything security-related, it's all about risk and cost / benefit.  
If you don't have someone competent to do so managing your SELinux policy, 
then enforcing SELinux policy is likely to cost you a reduction in 
stability and periodic loss of functionality.  Turning off policy 
enforcement or disabling SELinux altogether will be better choices for some 
people, but if that would represent an unacceptable risk for the particular 
machine in question, then your next best bet is to hire or train an SELinux 
policy manager.  If you don't know pretty well how to manage SELinux 
policy, but you must nevertheless enforce it, then you are going to get 
your SELinux training the hard way, and chances are your site will feel the 
pain along with you.


John

-- 
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/-/S1jEnH8JyqgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Problem with hiera arrays not obeying the hierachy

2012-09-04 Thread Josh
On Tuesday, September 4, 2012 9:10:57 AM UTC+1, Josh wrote:
>
> What is the behaviour regarding hash keys? Would a merged hash that ends 
> up with a duplicate key take the value from higher up the hierarchy
>

Have answered my own question. The answer to this is yes (for the benefit 
of people who come across this post in future)

Josh 

-- 
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/-/0TImwu3Ae-gJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Literal @ character in erb template

2012-09-04 Thread jcbollinger
 
On Friday, August 31, 2012 3:37:48 PM UTC-5, Krzysztof Wilczynski wrote:
>
> Hi,
>
> Works fine for me:
>

>>>
More generally, the underlying ERB engine will treat anything in your 
template but outside ERB blocks (delimited by <% %> or <%= %> or <%# %>) as 
literal text, except for <%% (which is translated to <% in the output) and 
%%> (which is translated to %>).

Without the actual error message (or, apparently, the template that causes 
it) I can only speculate about what the problem may be, but one thing to 
look for would be proper closure of all ERB code blocks before the template 
text where the error is reported.


John



-- 
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/-/wqOG2_ci6ScJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How to subscribe to an exported resource?

2012-09-04 Thread Marc Haber
On Thu, Aug 16, 2012 at 01:27:04PM +0200, Marc Haber wrote:
> On Wed, Aug 15, 2012 at 08:34:03PM +0200, Marc Haber wrote:
> > On Tue, Aug 14, 2012 at 07:58:21PM +0100, Stephen Gran wrote:
> > > The classic is:
> > > https://github.com/ripienaar/puppet-concat
> > 
> > So that is a module that would need to be compiled and installed (on
> > the puppetmaster, run by a different department)?
> 
> Sorry, I got confused by the rakefile and didn't scroll down all the
> way where the docs are. I have now understood ;-)

This works fine, and I have already used it in multiple places. Very
helpful, thanks.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] wollviech / puppet-drbd module

2012-09-04 Thread OXS007
Help needed configuring the wollviech / puppet-drbd module.

I get an error from puppet stating;

Could not find resource 'Kern_module[sha512_generic]' for relationship on 
'Service[drbd]' on node1.example.com
puppet-master Could not retrieve catalog from remote server: Error 400 on 
server.

A push in the right direction would be appreciated.  
Thanks in forward.


-- 
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/-/yU_BriFMwO0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Trying to setup puppetdbquery on puppet-3.0.0-rc5

2012-09-04 Thread Erik Dalén
I've released a new version now that contains a fix for this, thanks
for the report.

On 1 September 2012 11:03, Erik Dalén  wrote:
> I'll try to take a look at this during the weekend and see if I can
> create something that is compatible with both puppet 2.7 and 3.0. Can
> probably try to make the requests more like the puppetdb-terminus does
> them as it works on both.
>
> On 31 August 2012 18:28, Chris Price  wrote:
>> Chuck,
>>
>> The cause of this issues is that we introduced our own HTTP connection
>> wrapper in 3.0 (rather than using Net::HTTP directly).  This allows us to do
>> a better job of centralizing the logic related to managing SSL setup and
>> error handling.
>>
>> Our Connection class provides a subset of the methods available on Ruby's
>> HTTP class, and it looks like puppetdbquery is using one of the methods that
>> don't currently exist in our new API.
>>
>> The possible solutions would be to add the missing #start method to our new
>> class, or to tweak puppetdbquery so that it doesn't rely on the #start
>> method.  I'll ping the folks on our platform team and see what their
>> thoughts are.
>>
>> Thanks for the heads up!
>> Chris
>>
>>
>> On Thursday, August 30, 2012 6:04:27 AM UTC-7, Chuck wrote:
>>>
>>> I have puppetdbquery working on my puppet-2.7.16 puppet master but I am
>>> getting an error when using it with puppet-3.0.0-rc5
>>>
>>> https://github.com/dalen/puppet-puppetdbquery
>>>
>>> This is the error I am getting:
>>>
>>>   err: Could not retrieve catalog from remote server: Error 400 on SERVER:
>>> undefined method `start' for
>>> #
>>>
>>> How would I go about finding the actual cause of this issue?
>>>
>>>
>>> Thanks,
>>
>> --
>> 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/-/cnmWN3qKeJYJ.
>>
>> To post to this group, send email to puppet-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>
>
>
> --
> Erik Dalén



-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Problem with hiera arrays not obeying the hierachy

2012-09-04 Thread Josh
On Monday, September 3, 2012 5:11:23 PM UTC+1, Aaron Grewell wrote:
>
> The hiera function works as you described and supports strings, arrays and 
> hashes. The hiera_array and hiera_hash functions build additive arrays and 
> hashes that include the values of all matching variables across the entire 
> hierarchy. For your use case you should use hiera()  instead of 
> hiera_array()
>

Really, thats brilliant cheers. Not only does that fix my problem but I can 
remove a whole load of weird hacks I had in place merging hases together. I 
also upgraded to hiera 1.0 to try and fix so all good.

What is the behaviour regarding hash keys? Would a merged hash that ends up 
with a duplicate key take the value from higher up the hierarchy?

Thanks again,
Josh

-- 
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/-/c3MNQGhVEdYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.