[Puppet Users] Re: question with puppet

2012-11-13 Thread Drew Michel
You can read all about the puppet file server here. http://docs.puppetlabs.com/guides/file_serving.html On Wednesday, November 7, 2012 11:54:36 AM UTC-5, bobby38 wrote: > > I have added a new folder to my /modules/backup called files > /modules/backup/files > i have verified the new files folder

[Puppet Users] Re: 400 permission denied error

2012-11-13 Thread Drew Michel
Is /etc/puppet/auth.conf owned by the puppet process? You could also try setting it as world readable. And make sure in your puppet.conf under the agent stanza, the server block is set to the domain name of the puppet master. You should be able to telnet to it on port 8140. [agent] server

[Puppet Users] Re: Puppet in SW MO

2012-11-13 Thread Luke Baker
I'm in Columbia so not exactly in the Springfield area but still in MO : ) On Tuesday, November 6, 2012 8:17:56 AM UTC-6, llowder wrote: > > i am currently located in southwest MIssouri. Springfield, MO to be > precise. > > I'd like to get some sort of Puppet user group / meetup going in the area

Re: [Puppet Users] parse puppet file url in customized functions?

2012-11-13 Thread woosley. xu.
Thanks Jeff, I copy-pasted the code and it just worked. Here is my function: require 'uri' module Puppet::Parser::Functions newfunction(:loadyaml, :doc => <<-'ENDHEREDOC') do |args| Load a YAML file containing a hash, set the hash values. Support puppet urls For examp

Re: [Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-11-13 Thread Felipe Salum
I'm also having the same issue on the other locations. Not sure what's wrong since this is a default installation of puppet 3 with the original auth.conf Error: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppet/routes.yaml]: Could not evaluate: Error 403 on SERVER: Forbidden request: pupp

[Puppet Users] Re: sourceselect all

2012-11-13 Thread jcbollinger
On Tuesday, November 13, 2012 11:37:12 AM UTC-6, Bernardo Costa wrote: > > Ok John, it looks like sourceselect exists for handling files like the > ones under /etc/profile.d which is not the case for automount. Good to > know. About the options I have, I'd prefer not doing #1 for two reasons:

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Nan Liu
On Tue, Nov 13, 2012 at 11:58 AM, fatmcgav wrote: > Looks like overriding the 'insync?' method is the way to go, as I'm only > interested in checking/setting property values that are being passed > through... > > Any insync? examples that I could refer to? > There's a simple example here: https:

Re: [Puppet Users] Re: Newbie: puppetlabs-apache, modules and proxying

2012-11-13 Thread Jakov Sosic
On 11/13/2012 09:16 PM, jcbollinger wrote: I see you've been paying attention. :-) Yeah because I tend to read all the mails on this list. From time to time my unread queue tends to grow over 500 messages, but as soon as I get some spare time I tend to shrink it back to zero. It's a nice wa

[Puppet Users] 400 permission denied error

2012-11-13 Thread frap
I'm just getting started with puppet and there's something I can't get working. I have a client/agent setup at the moment. When running puppet agent for the first time, I get the following error: puppet agent --test dnsdomainname: Unknown host Error: Could not request certificate: Error 400 on

[Puppet Users] new puppet client not updating

2012-11-13 Thread JGonza1
Added new clients that are behind a firewall and none of them are updating with the configurations from the puppet master. I get the message below from the client when I run command puppet agent --server ct-eng-pup.caretools.ent --test. What ports need to be opened for client to talk to puppet

[Puppet Users] Puppet Community Metrics

2012-11-13 Thread Dawn Foster
Last month, we started publicly posting monthly community metrics reports with all kinds of interesting information about the Puppet Community. I also realized that I did a couple of blog posts about this, but I had not posted it here on the mailing list for your reading pleasure. The latest versio

Re: [Puppet Users] Re: Newbie: puppetlabs-apache, modules and proxying

2012-11-13 Thread jcbollinger
On Monday, November 12, 2012 11:46:05 AM UTC-6, Jakov Sosic wrote: > > On 11/08/2012 06:05 PM, Hugo Rogg wrote: > > Meanwhile I figured out how to enable modules. > > In my case I added this to the node's config. > > > > apache::mod { 'proxy_ajp': } > > > > > > > > Can't believe this is n

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
Nan Cheers again... Looks like overriding the 'insync?' method is the way to go, as I'm only interested in checking/setting property values that are being passed through... Any insync? examples that I could refer to? Cheers Gavin On 13 November 2012 19:50, Nan Liu wrote: > On Tue, Nov 13, 2

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Nan Liu
On Tue, Nov 13, 2012 at 11:19 AM, Gavin Williams wrote: > After a quick google, came up with: > > #!/usr/bin/env ruby >> >> grades = { "Bob" => 82, >>"Jim" => 94, >>"Billy" => 58 >> } >> >> grades.each do|name,grade| >> puts "#{name}: #{grade}" >> end > > > So n

[Puppet Users] Re: Initial run problems

2012-11-13 Thread Bret Wortman
On Tuesday, November 13, 2012 2:32:24 PM UTC-5, Bret Wortman wrote: > > I'm working on setting things up so that I can use Cobbler to kickstart a > basic system and then use Puppet to roll out the majority of packages based > on the role a particular system will be playing for us. I've got a >

[Puppet Users] Initial run problems

2012-11-13 Thread Bret Wortman
I'm working on setting things up so that I can use Cobbler to kickstart a basic system and then use Puppet to roll out the majority of packages based on the role a particular system will be playing for us. I've got a kickstarter file running (a thinly modified version of the Cobbler sample.ks)

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Gavin Williams
After a quick google, came up with: #!/usr/bin/env ruby > > grades = { "Bob" => 82, >"Jim" => 94, >"Billy" => 58 > } > > grades.each do|name,grade| > puts "#{name}: #{grade}" > end So now all I need to do is pull the existing options values and compile a hash

[Puppet Users] Re: rrdgraph issues

2012-11-13 Thread llowder
On Tuesday, November 13, 2012 12:41:38 PM UTC-6, Eric Sorenson wrote: > > use the attribute syntax in the config file, that way puppet won't clobber > it > > ## puppet.conf > [main] >rrddir = /var/lib/puppet/rrd { mode=0755 } > > That was mentioned to me in IRC, and it did fix it. > note

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
Nan Cheers for the response. Yes this is just a parameter... What's the easiest way to work with them in the provider? Cheers Gavin On Nov 13, 2012 7:00 PM, "Nan Liu" wrote: > On Tue, Nov 13, 2012 at 7:33 AM, fatmcgav wrote: > >> One of the functions required is the ability to set 'options'

Re: [Puppet Users] Couple of dashbaord issues

2012-11-13 Thread llowder
On Tuesday, November 13, 2012 12:41:58 PM UTC-6, Matthaus Litteken wrote: > > Which activerecord is in use on the master? Does anything appear in > the master logs? It looks like it's related to > https://projects.puppetlabs.com/issues/16376, which is fixed in the > current rc series for 2.7.2

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Nan Liu
On Tue, Nov 13, 2012 at 7:33 AM, fatmcgav wrote: > One of the functions required is the ability to set 'options' against a > given volume. > What I want to do is create a provider that accepts a volume name and a > list of volume options with their corresponding settings, and then iterate > throu

Re: [Puppet Users] Couple of dashbaord issues

2012-11-13 Thread Matthaus Owens
Which activerecord is in use on the master? Does anything appear in the master logs? It looks like it's related to https://projects.puppetlabs.com/issues/16376, which is fixed in the current rc series for 2.7.20. On Tue, Nov 13, 2012 at 8:18 AM, llowder wrote: > I'm running dashbaord 1.2.12 on Ub

[Puppet Users] Re: rrdgraph issues

2012-11-13 Thread Eric Sorenson
use the attribute syntax in the config file, that way puppet won't clobber it ## puppet.conf [main] rrddir = /var/lib/puppet/rrd { mode=0755 } note this is currently not working under 3.0.1, tracking under #17371 On Monday, November 12, 2012 7:54:57 AM UTC-8, llowder wrote: > > I recently en

[Puppet Users] Test Active Directory sync module: lpep

2012-11-13 Thread new23d
Hi All I have just published a module that synchronises users and groups from Active Directory into a Puppet manifest, which can then be rolled out to subscribed agents/workstations. The module maintains generated uids and gids in an SQLite database. It has only been tested on Puppet Enterprise

Re: [Puppet Users] parse puppet file url in customized functions?

2012-11-13 Thread Jeff McCune
On Tue, Nov 13, 2012 at 5:25 AM, woosley. xu. wrote: > I am thinking about loading some paramters from a external file for my > souces. Eg, > > class test { > > ## set parameters. > load_from_yaml("puppet:///modules/test/config.yaml") > } Ah, cool idea. I think this would be a r

[Puppet Users] Re: sourceselect all

2012-11-13 Thread Bernardo Costa
Ok John, it looks like sourceselect exists for handling files like the ones under /etc/profile.d which is not the case for automount. Good to know. About the options I have, I'd prefer not doing #1 for two reasons: one is that many mountpoints would be duplicated toward many files as they are c

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Bret Wortman
On Tuesday, November 13, 2012 12:03:36 PM UTC-5, Michael Stanhke wrote: > > On Tue, Nov 13, 2012 at 8:31 AM, Bret Wortman > > > wrote: > > It is kind of funny that we're talking about using puppet's tricks for > > working around bad start scripts for puppet's own software > > > > > > On

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Michael Stahnke
On Tue, Nov 13, 2012 at 8:31 AM, Bret Wortman wrote: > It is kind of funny that we're talking about using puppet's tricks for > working around bad start scripts for puppet's own software > > > On Tuesday, November 13, 2012 9:58:57 AM UTC-5, jcbollinger wrote: >> >> >> >> On Tuesday, November 1

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Bret Wortman
It is kind of funny that we're talking about using puppet's tricks for working around bad start scripts for puppet's own software On Tuesday, November 13, 2012 9:58:57 AM UTC-5, jcbollinger wrote: > > > > On Tuesday, November 13, 2012 7:40:08 AM UTC-6, Martin Alfke wrote: >> >> Hi Bret, >> >

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Bret Wortman
This problem has continued through multiple reboots across multiple systems. On Tuesday, November 13, 2012 9:47:03 AM UTC-5, Darin Perusich wrote: > > This is systemd weirdness. I've run into this error before on SuSE > with other init scripts and the fix was to reboot the machine. Then > you wo

[Puppet Users] Couple of dashbaord issues

2012-11-13 Thread llowder
I'm running dashbaord 1.2.12 on Ubuntu 10.04, with puppet 2.7.19 When I try to do an inventory search, I just get a blank screen. When I try to view a changed file, I get a white box w/ "i/o error". I have asked about this once before in IRC, and the fix involved using a backported package, whi

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
John Cheers for the response. As per my other threads, I'm writing a NetApp Network device module for Puppet. One of the functions required is the ability to set 'options' against a given volume. What I want to do is create a provider that accepts a volume name and a list of volume options with

[Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread jcbollinger
On Tuesday, November 13, 2012 8:47:00 AM UTC-6, Gavin Williams wrote: > > Afternoon all > > Is it possible to pass an array of key=value pairs to a provider param, > and have the provider split and handle each key=value pair? > > Basically, I've defined a new provider and type as follows: > ht

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread jcbollinger
On Tuesday, November 13, 2012 7:40:08 AM UTC-6, Martin Alfke wrote: > > Hi Bret, > > On 13.11.2012, at 13:18, Bret Wortman wrote: > > I'm getting this problem on all the puppet client's I've been setting up > and it's got me both scratching my head (because I'm not seeing anything > obvious in

[Puppet Users] Pass Array as param to custom provider...

2012-11-13 Thread Gavin Williams
Afternoon all Is it possible to pass an array of key=value pairs to a provider param, and have the provider split and handle each key=value pair? Basically, I've defined a new provider and type as follows: http://pastebin.com/WdekYPAh I've set '*:array_matching => all*' on the relevant newpar

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Darin Perusich
This is systemd weirdness. I've run into this error before on SuSE with other init scripts and the fix was to reboot the machine. Then you won't get the "Loaded: error (Reason: No such file or directory)" anymore. -- Later, Darin On Tue, Nov 13, 2012 at 9:29 AM, Bret Wortman wrote: > It does no

[Puppet Users] Re: sourceselect all

2012-11-13 Thread jcbollinger
On Monday, November 12, 2012 1:00:14 PM UTC-6, Bernardo Costa wrote: > > I am using puppet-2.6.17 from a centos 5.x box and after reading the > documentation (http://docs.puppetlabs.com/references/2.6.17/type.html#file) > I feel the need of using the sourceselect parameter set to all for > cop

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Bret Wortman
It does not (and this is odd since I'm using F17): # service puppet status Redirecting to /bin/systemctl status puppet.service puppet.service Loaded: error (Reason: No such file or directory) Active: inactive (dead) and yet ps still shows it running. But with your help, this a

[Puppet Users] Re: Overwriting a file provisioned by another module

2012-11-13 Thread jcbollinger
On Tuesday, November 13, 2012 3:18:36 AM UTC-6, Patxi Gortázar wrote: > > I'm a newbie and I might be missing something... but let me try to explain > what I want to accomplish and how I would like to do it. > > I'm installing ssh by using the > saz::sshmodul

Re: [Puppet Users] Puppet client won't autostart

2012-11-13 Thread Martin Alfke
Hi Bret, On 13.11.2012, at 13:18, Bret Wortman wrote: > I'm getting this problem on all the puppet client's I've been setting up and > it's got me both scratching my head (because I'm not seeing anything obvious > in any system logs) and pausing in my rollout until I get it solved: > > # puppe

[Puppet Users] Puppet client won't autostart

2012-11-13 Thread Bret Wortman
I'm getting this problem on all the puppet client's I've been setting up and it's got me both scratching my head (because I'm not seeing anything obvious in any system logs) and pausing in my rollout until I get it solved: # puppet resource service puppet ensure=running enable=true Error: Could

Re: [Puppet Users] sourceselect all

2012-11-13 Thread Bernardo Costa
Martin, thank you for your prompt answer. As soon as I get this working I'll try to use modules instead of files. But anyway, trying to switch from "source =>" to "source +>" didn't make any difference even with "sourceselect => all". The example above still just fetches the first one listed in

Re: [Puppet Users] Announce: Puppet-Dashboard 1.2.14 Available

2012-11-13 Thread shell heriyanto
Yes its also work for me. Just need to add some permission on some folder in /usr/share/puppet-dashboard to make init.d file run On Sat, Nov 10, 2012 at 4:46 AM, Moses Mendoza wrote: > On Fri, Nov 9, 2012 at 12:54 PM, Moses Mendoza > wrote: > > On Fri, Nov 9, 2012 at 5:34 AM, Stefan Heijmans

Re: [Puppet Users] parse puppet file url in customized functions?

2012-11-13 Thread woosley. xu.
I am thinking about loading some paramters from a external file for my souces. Eg, class test { ## set parameters. load_from_yaml("puppet:///modules/test/config.yaml") } I already have a simple function which can load from the abspath module Puppet::Parser::Functi

[Puppet Users] Overwriting a file provisioned by another module

2012-11-13 Thread Patxi Gortázar
I'm a newbie and I might be missing something... but let me try to explain what I want to accomplish and how I would like to do it. I'm installing ssh by using the saz::ssh module. This module provision the sshd_config file with the ssh configuration. I ne

Re: [Puppet Users] sourceselect all

2012-11-13 Thread Martin Alfke
Hi Bernardo, On 12.11.2012, at 20:00, Bernardo Costa wrote: > I am using puppet-2.6.17 from a centos 5.x box and after reading the > documentation (http://docs.puppetlabs.com/references/2.6.17/type.html#file) I > feel the need of using the sourceselect parameter set to all for > copying/conca