Re: [Puppet Users] rspec-puppet require syntax

2013-12-19 Thread Gavin Williams
Yeh, the quoting of the resource is key I found... Need to quote the entire resource, rather than the resource title... Gav On Thursday, 19 December 2013 00:45:11 UTC, Mikhail Simin wrote: > > This syntax works for me: > > 'require' => [ > 'User[nginx]', > 'Exec[install_nginx]'] > > O

Re: [Puppet Users] Package management

2013-12-19 Thread Jason Antman
Michael, Yes, package resources (like all resources) need to be checked before puppet can do anything with them. I'm not quite sure what you mean by "use yaml with a single command" - puppet Package resources must be specified with one single package name, there's no way around this that I'm

Re: [Puppet Users] puppet master stopped loading facts since puppetdb installation

2013-12-19 Thread Erik Dalén
Sounds like there could be something wrong with your routes.yaml file. Does it look like this example? http://docs.puppetlabs.com/puppetdb/latest/connect_puppet_master.html#edit-routesyaml On 18 December 2013 08:27, cko wrote: > Every node (except for the master) does something like this when i

Re: [Puppet Users] Re: puppet node find doesn't return classes and scope vars ?

2013-12-19 Thread Felix Frank
Is there an issue for this in Jira? If not, it would be much appreciated for either of you to create one. Thanks, Felix On 12/13/2013 11:08 PM, Paul Archer wrote: > I see that puppet 3.3.2 has the problem as well. Worse, the > documentation for 'puppet node' doesn't match the actual command. > >

Re: [Puppet Users] Is there any example to collect IPs of other nodes to generate a hash to be used in mysql_grant

2013-12-19 Thread Erik Dalén
If you use puppetdb you can use my puppetdbquery module: http://forge.puppetlabs.com/dalen/puppetdbquery You will get it as a array of IP addresses though. But should be easier to go from there at least. If you use the future parser it is fairly trivial to convert that to a hash, in the old parser

Re: [Puppet Users] puppet environments not working

2013-12-19 Thread Chantal Rosmuller
Thank you Jeff, I changed $confdir to /etc/puppet/ but it did not fix the issue. On Tuesday, December 17, 2013 10:49:24 PM UTC+1, Jeff Bachtel wrote: > > There is a problem with variable hooks in puppet.conf that is fixed in > the latest 3.4 release candidates (or so sayeth the bugreps). > > C

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-19 Thread Andreas Dvorak
Dear all thank you for helping me. My solution is this: require 'facter' Facter.add(:spacewalk) do confine :osfamily => "RedHat" f = File.new("/etc/sysconfig/rhn/up2date") text = f.read if text =~ /sv2653/ then setcode do "true" end else setcode do "false" end end

Re: [Puppet Users] puppet environments not working

2013-12-19 Thread Chantal Rosmuller
Thanks all for your input, the problem is solved. The environments worked but I was testing with a file in a module that was not (yet) used. Sorry for wasting your time. On Thursday, December 19, 2013 2:21:48 PM UTC+1, Chantal Rosmuller wrote: > > Thank you Jeff, > > I changed $confdir to /etc/

[Puppet Users] Mcollective agent sync

2013-12-19 Thread Hrishi D
Hi, I am using custom facts and have deployed them using modules in puppet master. Each time a change is made i have to execute $ sudo puppet agent --test --pluginsync on the agent nodes to get sync with the master. Is there a way to resync all the agent nodes from the master by exec

[Puppet Users] Installing the package dependencies

2013-12-19 Thread zorruch
hi. I have here a site.pp file: root@puppet:/var/puppet/etc/manifests# cat /etc/puppet/puppet.conf [main] confdir=/var/puppet/etc logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates #masterlog=/v

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-19 Thread shlo . afgin
Thanks it's working. But one problem left, each time Puppet run I saw the server in the Dashboard mark as 'Changed'. Nothing really changed, I need puppet to mark it as 'Unchanged'. How I can change it so Dashboard will mark it as 'Unchanged' action? On Wednesday, December 18, 2013 4:58:24 PM

Re: [Puppet Users] puppet master stopped loading facts since puppetdb installation

2013-12-19 Thread cko
Yes, ist looks exactly like this. cat /etc/puppet/routes.yaml --- master: facts: terminus: puppetdb cache: yaml On Thursday, December 19, 2013 1:41:13 PM UTC+1, Erik Dalén wrote: > > Sounds like there could be something wrong with your routes.yaml file. > Does it look like this examp

Re: [Puppet Users] Mcollective agent sync

2013-12-19 Thread Jeff Bachtel
[main] pluginsync = true In /etc/puppet/puppet.conf on your agents is really the way to go (from http://docs.puppetlabs.com/guides/plugins_in_modules.html#enabling-pluginsync). Otherwise you're looking at something like MCollective to remotely force a plugin sync when you make changes. But

Re: [Puppet Users] Re: puppet node find doesn't return classes and scope vars ?

2013-12-19 Thread Jon McKenzie
https://tickets.puppetlabs.com/browse/PUP-1185 On Thursday, December 19, 2013 7:49:08 AM UTC-5, Felix.Frank wrote: > > Is there an issue for this in Jira? If not, it would be much appreciated > for either of you to create one. > > Thanks, > Felix > > On 12/13/2013 11:08 PM, Paul Archer wrote:

Re: [Puppet Users] Running command in server

2013-12-19 Thread zed_0xff
Better way (without executing a process): $new_ip=inline_template("<%= Resolv::DNS.new.getaddress('www.ru').to_s -%>") or may be simple $ipaddress fact is suitable for you? On Monday, March 5, 2012 6:22:29 PM UTC+4, pablo.f...@cscs.ch wrote: > > Hi, > > > > > Try using %x{} instead of system.

Re: [Puppet Users] Push message from Windows Agent to Unix (puppet Master)

2013-12-19 Thread Jeff Bachtel
Your default node definition does not define any resources. filebucket does not itself define a file, it defines a location where files are backed up to. If you're just beginning with Puppet, then the method for using a filebucket to distribute file content is not something you really want to

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-19 Thread Felix Frank
You should structure your exec resource in such a way that it only runs if necessary. Parameters you may want to use: onlyif, unless, creates. Either of those can be of use here. For what it's worth, this sounds as if you're trying to use puppet for monitoring a file. This might be valid, but plea

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-19 Thread Erik Dalén
you should put the code of the fact inside the setcode block, so: require 'facter' Facter.add(:spacewalk) do confine :osfamily => "RedHat" setcode do f = File.new("/etc/sysconfig/rhn/up2date") text = f.read if text =~ /sv2653/ then "true" else "false" end end

[Puppet Users] Windows check_sum: Error: "\xF4" to UTF-8 in conversion

2013-12-19 Thread Arpin Dominique (Nter)
Hi, I'm new with puppet. I try to make a simple task with puppet: PuppetMaster: 3.3.1 PuppetClient: 3.3.2 (windows 2003) PuppetClient: 3.4RC2 (windows 2008) Init.pp class check_mk_client { file {'check_mk_agent_ini': ensure => file, path => 'C:/te

[Puppet Users] RE: Windows check_sum: Error: "\xF4" to UTF-8 in conversion

2013-12-19 Thread Arpin Dominique (Nter)
Hi, I found the error... its a misconfiguration of the filebucket. Hi didn't specified the FQDN of the puppetmaster.. Sorry, Dominique Arpin Tél. Interne: 140-4156 Tél. 514 285.2929 Poste: 140-4156 De : puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] De la part de Arpin

Re: [Puppet Users] new puppet book revision

2013-12-19 Thread William Van Hevelingen
Hi All, There was some problem between the publishing company and the printing company that caused the book to be delayed for so long. Amazon now says the book is "in stock" so I'm assuming the problem has been resolved. Let us know if you have any feedback good or bad. :) Thanks William On We

Re: [Puppet Users] new puppet book revision

2013-12-19 Thread Dan White
In stock on December 22, 2013 ...says the Amazon web page :P “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "William Van Hevelingen"

Re: [Puppet Users] new puppet book revision

2013-12-19 Thread Stuart Cracraft
it's shipped. > On Dec 19, 2013, at 12:07 PM, Dan White wrote: > > In stock on December 22, 2013 > > ...says the Amazon web page :P > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the universe is that none of it has tried to contact us.” > Bill Waterson (Ca

[Puppet Users] Roles/profile design

2013-12-19 Thread Josh
As we are starting to re-factor our puppet modules using Craig's roles/profile design we have found that this system works well for servers (or groups of servers) who have an entire stack of technology deployed to them or who all are part the same custom application. Clusters of servers typical

[Puppet Users] Re: puppet and yum lock

2013-12-19 Thread Alexander Petrovsky
Hi! Did you find out why does it happens? I got the same error, on amazon linux, puppet 3.0.2. среда, 7 августа 2013 г., 20:08:43 UTC+4 пользователь Aaron Addleman написал: > > Hi Everyone, > > I am having a problem with installing rpm packages on CentOS using yum. > The problem is when anothe

Re: [Puppet Users] Roles/profile design

2013-12-19 Thread Ramin K
On 12/19/2013 12:39 PM, Josh wrote: As we are starting to re-factor our puppet modules using Craig's roles/profile design we have found that this system works well for servers (or groups of servers) who have an entire stack of technology deployed to them or who all are part the same custom applic

Re: [Puppet Users] Is there any example to collect IPs of other nodes to generate a hash to be used in mysql_grant

2013-12-19 Thread Pan Luo
Hi Erik, Thanks. I'm using your module right now and was able to get all IPs of the web servers into an array. I'm struggling to convert them into a hash. I'm using puppet 3.3.2, so I suppose it's future parser? Could you give me some light? The array I got is something like this: [ip1, ip2]

Re: [Puppet Users] very odd Duplicate declaration problem.

2013-12-19 Thread Nathan Earixson
storeconfigs and use_cached_catalog are both false on the puppet master and on the puppet agents. I think you're right but I don't understand the 'drift' in the cached catalog. I updated to 3.4rc2 on an agent and the same behavior persists. On Tuesday, December 17, 2013 7:25:37 PM UTC-6, Jeff

Re: [Puppet Users] Process hang on FreeBSD

2013-12-19 Thread Patrick Gibson
Thanks, all. I was originally hoping to just be able to build ports the old fashioned way, but have abandoned that route. I've upgraded to pkgng and am successfully using the zleslie/pkgng provider. Things are going well and I'm already very excited at how easy it's going to be to setup new syst

[Puppet Users] Re: very odd Duplicate declaration problem.

2013-12-19 Thread Nathan Earixson
aha. this was it. I had: package { "bind": ensure => "installed" } OUTSIDE of the "class site::dns_test {" declaration. Thank you very much for the help. -n On Wednesday, December 18, 2013 8:52:57 AM UTC-6, jcbollinger wrote: > > > > On Tuesday, December 17, 2013 2:35:58 PM UTC-6, Nathan Ear

Re: [Puppet Users] Process hang on FreeBSD

2013-12-19 Thread Russell A. Jackson
On 12/19/2013 04:44 PM, Patrick Gibson wrote: > Thanks, all. I was originally hoping to just be able to build ports the old > fashioned way, but have abandoned that route. I've upgraded to pkgng and am > successfully using the zleslie/pkgng provider. Things are going well and > I'm already very

[Puppet Users] Mirroring apt.puppetlabs.com creates extra directories

2013-12-19 Thread Aaron Hicks
Hi there, Using the recommended rsync command: rsync -av --copy-links --del rsync://apt.puppetlabs.com/packages/apt/ apt/ this mirrors the repository, but seems t

Re: [Puppet Users] Re: puppet and yum lock

2013-12-19 Thread Russell Cecala
Can you install the rpm with yum without puppet? Maybe the rpm you are installing is doing something to cause a deadlock like executing "rpm -i some-package" or "yum install blah-blah" in the %post section of the rpm's spec file. On Thu, Dec 19, 2013 at 12:54 PM, Alexander Petrovsky wrote: > Hi!

Re: [Puppet Users] Is there any example to collect IPs of other nodes to generate a hash to be used in mysql_grant

2013-12-19 Thread Pan Luo
Never mind. Got it working with future parser. Here is the reference http://docs.puppetlabs.com/puppet/3/reference/experiments_lambdas.html, might help other people. On Thursday, December 19, 2013 3:52:34 PM UTC-8, Pan Luo wrote: > > Hi Erik, > > Thanks. I'm using your module right now and was