[Puppet Users] Re: puppet not copying config file

2013-01-18 Thread Brigzzy Briggs
Perfect, that did exactly what I was looking for :) Thanks All! On Thursday, 17 January 2013 16:11:23 UTC-8, Brigzzy Briggs wrote: > > Hi All, > > Sorry if this is a really remedial question, but I cannot find the answer > to my problem anywhere else. I am trying to learn puppet, and am crea

Re: [Puppet Users] storeconfigs and exported resources?

2013-01-18 Thread Jakov Sosic
On 01/19/2013 05:35 AM, Jakov Sosic wrote: On 01/19/2013 04:26 AM, Ken Barber wrote: Yes, if you want to use exported resource this is the current endorsed path. Thank you for your answer. I did set up puppetdb as described in official documentation, and my puppet.conf now looks like: [pupp

Re: [Puppet Users] storeconfigs and exported resources?

2013-01-18 Thread Jakov Sosic
On 01/19/2013 04:26 AM, Ken Barber wrote: Yes, if you want to use exported resource this is the current endorsed path. Thank you for your answer. I did set up puppetdb as described in official documentation, and my puppet.conf now looks like: [puppetmasterd] storeconfigs = true thi

[Puppet Users] Re: how do you do the equivalent of this SQL statement in puppetdb?

2013-01-18 Thread Hoof Hearted
To sort of answer my own question (since it's cached in groups.google.com) .. I know currently believe there is no way to do the same exact thing as in normal mysql-based storeconfigs. But that's fine with me, I can still just graph it over time as a custom graph in cacti. Thus I declare puppe

Re: [Puppet Users] storeconfigs and exported resources?

2013-01-18 Thread Ken Barber
Yes, if you want to use exported resource this is the current endorsed path. On Sat, Jan 19, 2013 at 3:01 AM, Jakov Sosic wrote: > On 01/19/2013 03:57 AM, Jakov Sosic wrote: > >> I've tried connecting through localhost and everything works fine... >> >> This is my node manifest: >> >>@@file {

Re: [Puppet Users] storeconfigs and exported resources?

2013-01-18 Thread Jakov Sosic
On 01/19/2013 03:57 AM, Jakov Sosic wrote: I've tried connecting through localhost and everything works fine... This is my node manifest: @@file { "/tmp/foo": content => "fjskfjs\n", tag => 'bla' } File <<| tag == 'bla' |>> but the file is never generated, and mysql database has no tab

Re: [Puppet Users] storeconfigs and exported resources?

2013-01-18 Thread Jakov Sosic
On 01/15/2013 01:22 AM, Jakov Sosic wrote: On 01/14/2013 10:01 PM, David Schmitt wrote: You also need to run the puppetmaster with --db-migrate (or similar) once. Tried, but didn't help either... :-/ If only I had a way to debug it... No errors in log, nothing... OK, I've switched to MySQL

[Puppet Users] Re: Puppet Dashboard and Ruby 1.8.7 for EL5 systems HOWTO (draft)

2013-01-18 Thread Jascha Lee
On Wednesday, January 4, 2012 5:04:34 PM UTC-8, Jo wrote: > > > Step 1: Upgrade Ruby > The puppetlabs-deps repo (http://yum.puppetlabs.com/el/5/products/x86_64/puppetlabs-release-5-6.noarch.rpm) has ruby 1.8.7 RPMs > For the passenger server, you'll need to get the source RPM from stealth

Re: [Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread Aaron Grewell
On Jan 18, 2013 11:31 AM, "jcbollinger" wrote: > > > > On Friday, January 18, 2013 12:11:42 PM UTC-6, iamauser wrote: >> >> What's the best practice to define two mount resources with same name, but different fstypes or ensure parameter ? In my particular case, I have the following : >> >> Two mou

Re: [Puppet Users] booleans in hiera

2013-01-18 Thread Ellison Marks
Hmm, I didn't know that. I think I missed that by passing the hash wholesale to my template and accessing it there. On Friday, January 18, 2013 12:25:51 PM UTC-8, Brad Ison wrote: > > On Thu, Jan 17, 2013 at 7:50 PM, Peter Brown > > > wrote: > > I have a few boolean vars i use in a couple of m

Re: [Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread Dan White
Found a clue: http://docs.puppetlabs.com/references/latest/type.html#mount ensure Control what to do with this mount. Set this attribute to umounted to make sure the filesystem is in the filesystem table but not mounted (if the filesystem is currently mounted, it will be unmounted). Set it to

Re: [Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread Dan White
Let's try re-stating the original problem: Manage one mount point File type can be one of multiple types May or may not actually be mounted. Instead of a virtual resource, how about a define or parametrized class that takes fstype and mount/don't-mount as input parameters ? “Sometimes I t

Re: [Puppet Users] booleans in hiera

2013-01-18 Thread Brad Ison
On Thu, Jan 17, 2013 at 7:50 PM, Peter Brown wrote: > I have a few boolean vars i use in a couple of modules I am updating to work > with hiera. > I noticed there is currently an issue with using booleans in hiera and > puppet doesn't set them properly when it imports them as variables. > I also n

[Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread iamauser
> Two mounts defined as virtual resources with same name but different >> fstype. One is is ensuring present, other absent. Puppet doesn't like it, >> Looking at a bug report earlier ( >> http://projects.puppetlabs.com/issues/7491 ), I followed the suggestion, >> but it doesn't help. puppet th

[Puppet Users] Re: Puppet 2.6 - Custom functions - environments issue

2013-01-18 Thread jcbollinger
On Friday, January 18, 2013 7:56:20 AM UTC-6, xkrantz wrote: > > Hello every one, > > I have looked at a lots of threads in the Puppet User group but I did not > find a clear answer or explanation how custom functions work > Here is my current setup : > > > * I have *2 "environments"*. worki

[Puppet Users] handling "use of closed network connection" from TCPConn.Read (Read doesn't return EOF)

2013-01-18 Thread James Bardin
I'm using io.Copy to shuttle data between two tcp connections, and There doesn't seem to be a way of handling "use of closed network connection" without converting the error to a net.OpError, and checking that OpError.Err.Error() matches. In looking at the io.Copy code, it breaks the for-loop i

[Puppet Users] Server-side exec

2013-01-18 Thread Jeff Thomas
I've been trying to get a puppet-master config together to push selected user accounts to puppet clients, but I've not been able to figure out how to pull their password and other data out of the password database on the server side to replicate to the clients. In short I want to do something

[Puppet Users] Re: F18 import error?

2013-01-18 Thread jcbollinger
On Friday, January 18, 2013 7:39:29 AM UTC-6, Bret Wortman wrote: > > Should I be concerned? I would be, but wouldn't it be more appropriate to pose this question on a group devoted to cobbler? John -- You received this message because you are subscribed to the Google Groups "Puppet User

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread jcbollinger
On Friday, January 18, 2013 10:08:49 AM UTC-6, iamauser wrote: > > Hi John, > > Thanks for the reply. Your corrections made it work. As you pointed out > about the implementation of this code. I wrote it keeping in mind 'def' of > ruby where one can return a value evaluating a block. Syntactica

Re: [Puppet Users] puppet not copying config file

2013-01-18 Thread Brian Mathis
Yes, I was assuming you were using modules, which I suppose I should have clarified. As you are just getting started, I would recommend that you start with modules right away, as they make things easier, and are also the recommended way to do things. Here is an overview of modules: http://doc

[Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread jcbollinger
On Friday, January 18, 2013 12:11:42 PM UTC-6, iamauser wrote: > > What's the best practice to define two mount resources with same name, but > different fstypes or ensure parameter ? In my particular case, I have the > following : > > Two mounts defined as virtual resources with same name but

Re: [Puppet Users] two mounts with the same name (one present, one absent)

2013-01-18 Thread Dan White
How about declaring a single resource and change the value of the ensure parameter as necessary ? “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) -- You received this mess

[Puppet Users] two mounts with the same name (one present, one absent)

2013-01-18 Thread iamauser
What's the best practice to define two mount resources with same name, but different fstypes or ensure parameter ? In my particular case, I have the following : Two mounts defined as virtual resources with same name but different fstype. One is is ensuring present, other absent. Puppet doesn't

[Puppet Users] Re: exceptions, error, traces

2013-01-18 Thread Ellison Marks
Notify is not a function. It is a resource type. It essentially logs on the client by putting a message in the client's catalog. alert, crit, debug, emerg, err, info, notice and warning are functions. They will record a message to the server's log at the specified level. Parsing and execution w

[Puppet Users] Re: using file_line with match

2013-01-18 Thread Ellison Marks
@Stephan, as it stands, the match parameter must be able to regex match the line parameter. I think this is so you can only replace similar lines. You could drop the $ at the end and it would probably work. @bernard, I think something is wrong with the client you use to access the group. Your r

Re: [Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 12:56:30 PM UTC-6, Josh Cooper wrote: > > Hi John, > > On Thu, Jan 17, 2013 at 6:56 AM, jcbollinger > > > wrote: > [...] > > What I would expect on both Unix and Windows is that if the target file > > already exists and the resource declaration does not specif

Re: [Puppet Users] PuppetDB certificate signature failure for /CN=puppetdb

2013-01-18 Thread Ken Barber
Hi Chris, > I regenerated the puppetdb certs according to the instructions here: > > Step 3, Option B > > https://docs.puppetlabs.com/puppetdb/0.9/install_from_source.html#step-3-option-b-manually-create-a-keystore-and-truststore > > And can verify the cert manually using openssl client > > #echo

Re: [Puppet Users] puppet not copying config file

2013-01-18 Thread Ellison Marks
Correct. When you use that syntax in the source parameter, it looks for the file specified, in a directory called files, in the module specified. On Thursday, January 17, 2013 9:44:39 PM UTC-8, Brigzzy Briggs wrote: > > Thanks for the reply :) I got it to work by adding a path to the > fileserv

Re: [Puppet Users] Puppet Package for FreeBSD

2013-01-18 Thread Worker Bee
Did you try using the Puppet ports available?This is what I used and they work fine. However, I am on 8.2 and 8.3. If you want to create packages to distribute to servers that may not have internet connectivity to do portsnaps, you can install the port on a box and then create packages using t

[Puppet Users] Re: booleans in hiera

2013-01-18 Thread Ellison Marks
3.0.2 should have fixed this issue for the puppet backend. I think the YAML backend had this fixed ages ago. Go ahead and give it a try, perhaps on a test machine. It should work. On Thursday, January 17, 2013 5:50:21 PM UTC-8, Pete wrote: > > Hi everyone, > > I have a few boolean vars i use in

Re: [Puppet Users] puppetlabs-products yum checksum failing

2013-01-18 Thread Greg Chavez
Fixed it. Thanks. On Thu, Jan 17, 2013 at 6:10 PM, Matthaus Owens wrote: > Greg, > I've updated the metadata on our end. Please let me know if your > problem still persists, and we can dig a little deeper into what might > be going on. > > On Thu, Jan 17, 2013 at 2:03 PM, Greg Chavez > wrote:

[Puppet Users] Re: Issue with exported resources and "ensure"

2013-01-18 Thread jcbollinger
On Wednesday, January 16, 2013 1:45:28 PM UTC-6, Cody Robertson wrote: > > Hello folks! I hope everyone is having a great Wednesday! > > I think I may have come across a bug / a use case which isn't working > properly however I wanted to run it by some eyes on the mailing list before > I filed

[Puppet Users] Re: Multiple class calls via dashboard

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 7:05:59 AM UTC-6, Michael Dodwell wrote: > > > Ok so for an example I have a module/class that enables apache vhost > setup. In this example I have X web servers that are load balanced and i > want to add all my Y virtual hosts, so working backwards I would want to

Re: [Puppet Users] node_openstack dependency

2013-01-18 Thread Ken Barber
> I am trying to install node_openstack module for puppet. But I see its > dependency on puppetlabs-cloud_provisioner (>= 1.0.2) There are versions of it higher than 1.0.2 available here: https://forge.puppetlabs.com/puppetlabs/cloud_provisioner ken. -- You received this message because you ar

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
Hi John, Thanks for the reply. Your corrections made it work. As you pointed out about the implementation of this code. I wrote it keeping in mind 'def' of ruby where one can return a value evaluating a block. Syntactically it didn't have a problem with Ruby, but it failed to return a value in

[Puppet Users] F18 import error?

2013-01-18 Thread Bret Wortman
Should I be concerned? [root@fs1 ~]# cobbler import --name=F18 --path=rsync://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os --arch=x86_64 task started: 2013-01-18_062009_import task started (id=Media import, time=Fri Jan 18 06:20:09 2013) Found a redhat compatible signature: Packages ad

[Puppet Users] Puppet Dashboard upgrade from 1.2.17 to 1.2.20 failed on Debian

2013-01-18 Thread Julien Cornuwel
Hi, My Puppet Dashboard is running on Debian stable, installed from puppetlabs repositories. The last upgrade completely broke down. See below for the output: # aptitude safe-upgrade The following packages will be upgraded: libactionmailer-ruby1.8 libactionpack-ruby1.8 libactiverecord-ruby1.8

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 7:40:11 PM UTC-6, iamauser wrote: > > My custom function looks like this : > > module Puppet::Parser::Functions > newfunction(:pattern_in_file, :type => :rvalue) do |args| > filename = args[0] > pattern = args[1] >

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
Any words/thoughts/suggestions/hints/ideas/pointers ? -- 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/-/aoLp9yEJ1T4J. To post to this group, send email to pup

[Puppet Users] Re: why do I get ensure changed 'purged' to 'present' on a package when it is already installed

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 8:46:25 AM UTC-6, Andrey Kouznetsov wrote: > > I have exactly the same problem on Ubuntu 12.04 Then likely the underlying cause and solution are also the same as the OP already posted. John -- You received this message because you are subscribed to the Google

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

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 11:17:27 AM UTC-6, Gustavo Henrique Borges wrote: > > hi, can you help me? when I start the puppetmaster it returns me the > following error: > > Could not prepare for execution: Got 1 failure(s) while initializing: > change from directory to file failed: Could no

Re: [Puppet Users] function to map actual pubkeys to ssh_authorised_key {} resources?

2013-01-18 Thread Aaron Grewell
If you move the keys into Puppet variables (ideally retrieved via Hiera) you can then use them to create both the key files and the ssh_authorized_key entries. . -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email

[Puppet Users] Puppet 2.6 - Custom functions - environments issue

2013-01-18 Thread xkrantz
Hello every one, I have looked at a lots of threads in the Puppet User group but I did not find a clear answer or explanation how custom functions work Here is my current setup : * I have *2 "environments"*. working fine /etc/puppet/environments/production/ /etc/puppet/environments/test/ *

[Puppet Users] exceptions, error, traces

2013-01-18 Thread GRANIER Bernard (MORPHO)
Hi, Is there a tutorial on exceptions and error management in puppet script ? I read the manual and found information which is confusing for me. There is the notify function which seems to be executed on agent. There are functions like notice, alert, fail and so on which are executed on server

[Puppet Users] function to map actual pubkeys to ssh_authorised_key {} resources?

2013-01-18 Thread Dick Davies
This has been niggling me for a while, since we're snowbound today figured i'd have another crack at it. I've got pubkeys for our usual system accounts that we push out as file resources. But we also setup a root authorized_keys for our sysadmins. In some cases we'd like to give e.g. devs root ac

Re: [Puppet Users] JBOSS installation and Configuration through puppet

2013-01-18 Thread Rakesh Kathpal
Hi, I am a big fan of example42 modules and using most of them, currently I am facing issues with the Jboss module I ma using the latest jboss build from example42 and latest puppi modules as well.. but still getting the following errors -- info: Caching catalog for A

[Puppet Users] node_openstack dependency

2013-01-18 Thread haynes.davis
Hi, I am trying to install node_openstack module for puppet. But I see its dependency on puppetlabs-cloud_provisioner (>= 1.0.2) Is this version available, if not is there any work around? regards, Haynes Davis __

[Puppet Users] node definition and variable

2013-01-18 Thread GRANIER Bernard (MORPHO)
Hi, Since no one answered to my previous post, I suppose that it is not possible to do something like that : $machines_DB="\'computerName\'" $machines_serverWeb="\'computerName2\'" node $machines_DB { include deploymenDB } node $machines_serverWeb { include deploymentServerWeb } # "

[Puppet Users] using file_line with match

2013-01-18 Thread Stefan Wiederoder
I´m using stdlib 3.2 on my 3.0.1 master/agent my goal is to replace a line within a configuration file to add one more server like this: file_line { "xxx": line => "ALLOWHOST server1|server2", path => "/tmp/sw", match => "^ALLOWHOST$", ensure => present } I´ve tried to use match to ensure that