Re: [Puppet Users] Re: Installping puppet with kickstart -- Cannot find local fact /proc/cpuinfo

2010-07-20 Thread Patrick Mohr
On Tue, Jul 20, 2010 at 5:23 AM, Tore wrote: > We use Satellite to kickstart our nodes. Have you tried to do this > after %post? > > kickstart-file, I've removed a few lines: > > install > text > [] > %packages > @ Base > > %pre > $kickstart_start > $SNIPPET('pre_install_network_config') > >

Re: [Puppet Users] Distributing passwd/group/shadow

2010-07-19 Thread Patrick Mohr
On Jul 19, 2010, at 6:11 PM, noob-puppeteer wrote: > Hi, > I am trying to figure out a good "puppet" way to do this. In our old > configuration, we were using cfengine and distributing passwd, group > and shadow files by first running a command on the server that would > filter these files to hav

Re: [Puppet Users] Collecting _all_ ssh keys

2010-07-19 Thread Patrick Mohr
On Jul 19, 2010, at 7:52 AM, Klaus Ethgen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hi, > > Am Sa den 12. Jun 2010 um 10:03 schrieb David Schmitt: >> You'll need to set a properly unique title, and set the namevar explicitely: >> >> @@sshkey { >> "${fqdn}dsa": >>

Re: [Puppet Users] What is the "best practices" way to install puppet

2010-07-18 Thread Patrick Mohr
On Jul 18, 2010, at 12:19 PM, kevin wrote: > Damn it, is there no acronym for "best practices" yet? ;) > > Ok, I am installing puppet, and wondering which version and from where > should I install. Gems? OS packages? Version? What OS are you using? You might get better answers if we know. -

Re: [Puppet Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Patrick Mohr
Run "puppetd --genconfig" for commented documentation about puppetd's parameters. Take a look at "puppetd --genconfig | grep _command" if you don't want 5-15 pages of text to wade through. On Jul 16, 2010, at 2:55 PM, Yushu wrote: > Thanks Patrick, > >

Re: [Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Patrick Mohr
You could also test to see if post-command is run. On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: > > - "Yushu" wrote: > >> Hi Experts, >> >> I'm running "puppetd --no-daemonize --debug --onetime". >> Is there a way to figure out if the one time run is success? >> I couldn't do it by lo

Re: [Puppet Users] puppet doing full read on files with replace => no

2010-07-15 Thread Patrick Mohr
On Jul 15, 2010, at 10:27 AM, John Cesario wrote: > Hey all, > > This is on puppet 0.25.4: > > The manifest for one of the directories looks like this. This class/object > does not have anything below it (nothing inherits this). > > file { > "/var/lib/data/$name": > ensure

Re: [Puppet Users] How do I get a node to forget its state?

2010-07-15 Thread Patrick Mohr
On Jul 15, 2010, at 11:02 AM, hernan wrote: > I had a bad manifest at one point which told puppetd to --recurse on a > massive directory that I didn't actually want it to manage. I reverted the > config. Ever since then however, the nodes that once applied that --recurse > take a much longer

Re: [Puppet Users] Creating a directory fails

2010-07-15 Thread Patrick Mohr
wrote: > They exist for sure.. > > # ls -ld /var/named/ > drwxr-x--- 6 root named 4096 2010-07-15 06:20 /var/named/ > # ls -ld /var/named/chroot/ > drwxr-xr-x 5 named named 4096 2010-07-15 06:20 /var/named/chroot/ > > > On Thu, Jul 15, 2010 at 12:09 AM, Patrick Mohr w

Re: [Puppet Users] Creating a directory fails

2010-07-14 Thread Patrick Mohr
I'd check to see if /var/named exists or if /var/named/chroot is a symlink. On Jul 14, 2010, at 2:24 PM, Christopher Johnston wrote: > I don't see anything out of the ordinary here, seems like its not honoring > the type as a directory but as a file any ideas? > > err: //bind::slave/File[/var/

Re: [Puppet Users] Puppet DDNS and Preseed -- Any easier alternative

2010-07-14 Thread Patrick Mohr
On Jul 14, 2010, at 7:27 AM, Joe McDonagh wrote: > On 07/14/2010 10:15 AM, Harihara Vinayakaram wrote: >> Hi >> I have a set up that runs puppetmasterd, DDNS , DHCP etc on one >> server . I have managed to PXE boot Ubuntu 10.04 clients and setup >> puppet clients . The ultimate goal is to run Had

Re: [Puppet Users] "Basic Windows support" in Rowlf (2.6.0 RC*) ?

2010-07-13 Thread Patrick Mohr
On Jul 13, 2010, at 3:42 PM, Steven Wagner wrote: > I'm a pretty good candidate for a Puppet-fer-Windows guinea pig here > as I'd be able to get a lot of mileage out of just being able to use > the File, Service and Exec types on that platform ("Is game server > running?" "Has configuration been

Re: [Puppet Users] puppetmasterd screwing the SSL setup

2010-07-13 Thread Patrick Mohr
On Jul 13, 2010, at 6:54 AM, Marco Marongiu wrote: > Dear puppeteers > > I am trying to build a tree hierarchy of puppetmasters. The architecture > is aimed to distribute the load among a number of datacenters, while > keeping the puppetmasters in sync by means of puppet itself. > > The archite

Re: [Puppet Users] Re: puppet capistrano and repository

2010-07-12 Thread Patrick Mohr
On Jul 12, 2010, at 6:31 PM, nate wrote: > On Jul 12, 9:33 am, bmort wrote: >> Whew I am struggling on a puppet architecture design learning >> curve. >> >> I believe if i could find a good 'stand alone' example, it would >> clarify a lot of the questions I have and it would help me set up

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread Patrick Mohr
Take a look at http://docs.puppetlabs.com/guides/exported_resources.html. I think this will give you what you want. It will only work if you turn on storeconfigs. On Jul 12, 2010, at 5:43 AM, CraftyTech wrote: > Thanks for the feedback Jeff. Interesting feature that I had > unfortunately ov

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.0 - Release Candidate 1 available!

2010-07-10 Thread Patrick Mohr
2010/7/10 Jesús M. Navarro > Hi: > > On Saturday 10 July 2010 19:11:12 Patrick Mohr wrote: > > On Jul 10, 2010, at 7:57 AM, Peter Meier wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA1 > > > > > > On 07/10/2010 04:54 PM, Pat

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.0 - Release Candidate 1 available!

2010-07-10 Thread Patrick Mohr
On Jul 10, 2010, at 7:57 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 07/10/2010 04:54 PM, Patrick Mohr wrote: >> On Jul 9, 2010, at 11:58 PM, James Turnbull wrote: >> >>> Certificates cleaned with puppetca (or puppet cert) ar

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.0 - Release Candidate 1 available!

2010-07-10 Thread Patrick Mohr
ing means the client and server don't load the whole file into RAM to send or receive it? Thanks for all the great work. Puppet has made my life so much easier. -Patrick -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] Re: conditional execution of package

2010-07-09 Thread Patrick Mohr
On Jul 9, 2010, at 2:33 AM, prudhvi wrote: > Hi Patrick, > > You're right. > Actually I have a custom source which i have to install it through > source > is there any conditional execution like if-case to check whether the > source files are already in place?

Re: [Puppet Users] puppetmaster REST interface

2010-07-09 Thread Patrick Mohr
Right now puppet mostly IS the documentation. You could watch the traffic between the puppetmaster and the client, or look at the source code, but I don't recommend it. Also, it would probably be MUCH easier to enable storeconfigs and ask the MySQL server directly. That's very easy to figure

Re: [Puppet Users] conditional execution of package

2010-07-09 Thread Patrick Mohr
It's probably better to make a package instead. On Jul 8, 2010, at 11:49 PM, prudhvi wrote: > Hi, > > I have been installing couchdb from source thorough " make/make > install " using puppet's exec. > The problem I am facing is when ever i run the configuration for the > second time its not reco

Re: [Puppet Users] Using variables in regex

2010-07-06 Thread Patrick Mohr
On Jul 6, 2010, at 6:40 AM, Christian Casar wrote: > Well, how do I use the content of a variable in regex? > > $username = "user1" > file { "userdata.tar.bz2": >source => "puppet://$server/modules/$module/ > userdata.tar.bz2", >ensure => $users ? { >

Re: [Puppet Users] Re: Splitting classes into separate files

2010-07-05 Thread Patrick Mohr
On Jul 5, 2010, at 8:20 AM, Dan Carley wrote: > On 5 July 2010 15:11, Thomas Bellman wrote: > On 2010-07-03, Jeff McCune wrote: > > > In this module, if you use the following orginization puppet will > > autoload everything: > > > > manifests/init.pp contains class apache { } > > manifests/disa

Re: [Puppet Users] Re: Splitting classes into separate files

2010-07-05 Thread Patrick Mohr
On Jul 5, 2010, at 7:11 AM, Thomas Bellman wrote: > On 2010-07-03, Jeff McCune wrote: > >> In this module, if you use the following orginization puppet will >> autoload everything: >> >> manifests/init.pp contains class apache { } >> manifests/disable.pp contains class apache::disable inherits

Re: [Puppet Users] Installing puppet on clients with kickstart

2010-07-03 Thread Patrick Mohr
On Jul 3, 2010, at 5:03 AM, Harihara Vinayakaram wrote: > Hi > I am using PXE boot and kickstart to install Ubuntu 10.04 on the machines . > > I have installed the puppet package as part of the preseed.cfg . Also the > name puppet in the DNS resolves to my puppet master which is running >

Re: [Puppet Users] Package requires....

2010-07-02 Thread Patrick Mohr
On Jul 1, 2010, at 10:45 PM, Douglas Garstang wrote: > On Thu, Jul 1, 2010 at 9:11 PM, Patrick Mohr wrote: >> >> On Jul 1, 2010, at 9:05 PM, christopher floess wrote: >> >> Hey, this is sort of hijacking the thread, so if need be, please, I can >> start

Re: [Puppet Users] [puppet-users] apt and gem package with the same name

2010-07-01 Thread Patrick Mohr
On Jun 30, 2010, at 5:02 PM, hernan wrote: > I'm building a puppet manifest for an Ubuntu machine that needs to > have both of these on it: > > package { "memcached": >provider => gem, >ensure => "0.18.0" > } > > package { "memcached": >provider => apt, >ensure => installed >

Re: [Puppet Users] Package requires....

2010-07-01 Thread Patrick Mohr
On Jul 1, 2010, at 9:05 PM, christopher floess wrote: > Hey, this is sort of hijacking the thread, so if need be, please, I can start > another thread for it, but could someone explain the code from the OP here. I > feel like this is sort of the next step in puppet functionality that I need >

Re: [Puppet Users] selboolean with selinux disabled

2010-07-01 Thread Patrick Mohr
On Jul 1, 2010, at 6:31 PM, Markus Falb wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > err: //cobbler::web/Selboolean[httpd_can_network_connect]: Failed to > retrieve current state of resource: Execution of '/usr/sbin/getsebool > httpd_can_network_connect' returned 1: /usr

Re: [Puppet Users] which is more efficient?

2010-06-30 Thread Patrick Mohr
I'd say that "this way lies madness". Just do whatever gives you maintainability. The way that you source a file isn't going to make or break your server. (Unless you start embedding huge files in your manifest.) If small changes like this will break your server, your server will die the fir

Re: [Puppet Users] Variable Scoping: What do you want?

2010-06-30 Thread Patrick Mohr
On Jun 30, 2010, at 8:33 AM, R.I.Pienaar wrote: > hey > > - "Patrick Mohr" wrote: > >> On Jun 30, 2010, at 3:09 AM, R.I.Pienaar wrote: >> >>> >>> - "Trevor Vaughan" wrote: >>> >>>> Also, I'm

Re: [Puppet Users] Variable Scoping: What do you want?

2010-06-30 Thread Patrick Mohr
On Jun 30, 2010, at 3:09 AM, R.I.Pienaar wrote: > > - "Trevor Vaughan" wrote: > >> Also, I'm not entirely convinced that variables can't be overridden. >> I understand that the final compilation is order independent, but I >> believe that the initial run is file order dependent. I.e. if yo

Re: [Puppet Users] CA issues...

2010-06-29 Thread Patrick Mohr
On Jun 29, 2010, at 11:39 AM, salty.cowd...@gmail.com wrote: > OK... > > I started seeing some issues with the certificates between my clients and the > puppetmaster. So I went ahead and removed puppet from the clients and cleaned > up /var/lib/puppet and /etc/puppet. Then I reinstalled puppet

Re: [Puppet Users] Deployment Examples

2010-06-29 Thread Patrick Mohr
On Jun 29, 2010, at 6:02 AM, Alex Howells wrote: > Good Afternoon, > > Apologies for starting a whole bunch of threads in one afternoon, but > I'm desperately after a bit of information from the community ;( > > I wondered if anyone has written some deployment examples for various > sizes of in

Re: [Puppet Users] Re: Ensuring Repo's

2010-06-29 Thread Patrick Mohr
Woops, I didn't see your message before I sent mine. On Jun 28, 2010, at 10:41 PM, Douglas Garstang wrote: > I got it. > > I had to put require => undef in the package {} sections in yum::client. > > Doug. > > On Mon, Jun 28, 2010 at 10:32 PM, Douglas Garstang > wrote: >> So... somehow on a pr

Re: [Puppet Users] Ensuring Repo's

2010-06-29 Thread Patrick Mohr
On Jun 28, 2010, at 10:32 PM, Douglas Garstang wrote: > So... somehow on a previous implementation, I was able to set > everything up so that all my yum repo's where in place before any > packages got installed. I'm not exactly sure how I did it due to > puppet's awful scoping. This really isn't

Re: [Puppet Users] Seemingly simple question - current status?

2010-06-28 Thread Patrick Mohr
On Jun 28, 2010, at 10:31 AM, Luke Kanies wrote: > On Jun 28, 2010, at 6:38 AM, dbs wrote: > >> I have a 3 different puppetmasters running different groups of >> machines (dev, testing, and production). I'd like to very simply say >> "Give me a brief summary of the status of the nodes you manag

Re: [Puppet Users] "onlyif" for resource type "file"

2010-06-28 Thread Patrick Mohr
On Jun 28, 2010, at 9:09 AM, David Schmitt wrote: > On 6/28/2010 5:33 PM, Mohamed Lrhazi wrote: >>> However, I *strongly* urge you to tell us what you problem is >> >> I have a bunch of files that were deployed via kickstart and manual >> provisioning procedures that I am "translating" to Puppet

Re: [Puppet Users] "onlyif" for resource type "file"

2010-06-28 Thread Patrick Mohr
On Jun 28, 2010, at 8:33 AM, Mohamed Lrhazi wrote: > Thanks a lot Daniel. > >> However, I *strongly* urge you to tell us what you problem is > > Right, am newbie here, so am sure am doing a lot of things wrong, or > thinking about them from a wrong way > > I have a bunch of files that were

Re: [Puppet Users] Error 400 : could not find template

2010-06-28 Thread Patrick Mohr
Where are your templates? /etc/puppet/templates or /etc/puppet/modules/module-name/templates (I may have a typo in the path.) Also, what's the full path to puppet.conf.erb? On Jun 28, 2010, at 1:04 AM, Pieter Baele wrote: > Hello, > > I did make a stupid fault: not commiting ch

Re: [Puppet Users] Re: Borked Client Cert in 0.25

2010-06-27 Thread Patrick Mohr
On Jun 27, 2010, at 2:40 PM, Douglas Garstang wrote: > On Sun, Jun 27, 2010 at 1:33 PM, Patrick Mohr wrote: >> >> On Jun 27, 2010, at 12:50 PM, Douglas Garstang wrote: >> >>> On Sun, Jun 27, 2010 at 12:47 PM, Douglas Garstang >>> wrote: >>>>

Re: [Puppet Users] Re: Borked Client Cert in 0.25

2010-06-27 Thread Patrick Mohr
On Jun 27, 2010, at 12:50 PM, Douglas Garstang wrote: > On Sun, Jun 27, 2010 at 12:47 PM, Douglas Garstang > wrote: >> On Sun, Jun 27, 2010 at 12:34 PM, Douglas Garstang >> wrote: >>> Here we go with puppet 0.25 certificate problems again. >>> >>> I had a system where puppet was running fine.

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-26 Thread Patrick Mohr
On Jun 26, 2010, at 12:32 AM, Thomas Bellman wrote: > Jean-Baptiste Barth wrote: > >> I'd like to be able to deploy a skeleton directory through puppet, i.e. >> puppet deploys it only if it does not exist. > [...] >> But I have 2 problems for the moment : >> - if I don't set owner/group, it tak

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Patrick Mohr
On Jun 25, 2010, at 2:00 AM, Jean-Baptiste Barth wrote: > - I'd like puppet to let user change some files in the skeleton as they want, > i.e. skip this directory if it just exists > > Do you have an idea about how I could do that ? Do you mean you want the users to be able to change all the f

Re: [Puppet Users] sysctl

2010-06-25 Thread Patrick Mohr
On Jun 25, 2010, at 8:32 AM, Pablo wrote: > Hi > Augeas module will help you in that task > > Just use "/files/etc/sysctl.conf" > > and set "whateverparameter " "value" > Scott, if you have problems with quoting, and want to use Augeas, take a look at http://groups.google.com/group/puppet-u

Re: [Puppet Users] overriding resources

2010-06-25 Thread Patrick Mohr
On Jun 24, 2010, at 10:55 PM, Mathijs wrote: > Hi all, > > Is it possible to override the behaviour of all instances of a > resource from a module? > I would like to have my "apt" module add a requirement for Exec["apt- > get update"] to all Package resources. > > putting > Package { require =>

Re: [Puppet Users] Refreshing puppetd from within puppetd

2010-06-22 Thread Patrick Mohr
On Jun 22, 2010, at 2:43 AM, David Schmitt wrote: > On 6/22/2010 3:03 AM, Patrick Mohr wrote: >> I push out changes to puppet.conf using puppet. (I have gsh as a >> backup for if I really screw things up, but I've never had to use it >> yet.) Is there any safe and/or

[Puppet Users] Refreshing puppetd from within puppetd

2010-06-21 Thread Patrick Mohr
s a service and subscribing to puppet.conf is bad because it will stop puppet in the middle of a run which might make other subscribes not work. Anyone have advice? I don't want to put puppet in cron if I can avoid it. -Patrick Mohr -- You received this message because you are subscribed

Re: [Puppet Users] Augeas and double quotes

2010-06-21 Thread Patrick Mohr
On Jun 21, 2010, at 7:05 AM, Guus Houtzager wrote: > Hi, > > I've got a bit of an issue with Augeas in Puppet. I'm trying to > modify /etc/sysconfig/i18n (RHEL4 system). Original file: > LANG="en_US.UTF-8" > SUPPORTED="en_US.UTF-8:en_US:en" > SYSFONT="latarcyrheb-sun16" > > This is the code to

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Patrick Mohr
On Jun 21, 2010, at 12:04 AM, christopher floess wrote: > > > On 06/20/2010 08:47 PM, Patrick Mohr wrote: >> You've got some problems that are caused because the packages didn't do >> things you need done, and other problems that are unrelated. >

Re: [Puppet Users] Re: auth.conf and file_metadata

2010-06-20 Thread Patrick Mohr
On Jun 20, 2010, at 5:56 PM, chakkerz wrote: >> The example auth.conf that came with Ubuntu is 2.3k and very well commented. >> Would posting that help? > > If you've got one handy, yes :) > # This is an example auth.conf file, it mimics the puppetmasterd defaults # # The ACL are checked in

Re: [Puppet Users] auth.conf and file_metadata

2010-06-20 Thread Patrick Mohr
On Jun 20, 2010, at 2:57 PM, chakkerz wrote: > 2) searching for information on this i found references on auth.conf > which (because i deploy an RPM) is generated for me. However it is a > default file, and i'd love to know what to put in it. I can't find any > documentation on the subject. Anyon

Re: [Puppet Users] header for puppet managed files

2010-06-20 Thread Patrick Mohr
On Jun 20, 2010, at 12:37 PM, Psyber wrote: > Anyone have any ideas on adding a default header to puppet managed > files and templates? > This might be tricky because of the different methods of adding > comments for different types of files but I'm certainly open to > suggestions that would enfo

Re: [Puppet Users] bringing puppet into production

2010-06-20 Thread Patrick Mohr
You've got some problems that are caused because the packages didn't do things you need done, and other problems that are unrelated. On the clients, puppetd will automatically look for the server at puppet, and should use the search domain. You really want to change DNS so that the puppetmaste

Re: [Puppet Users] Augeas problem changing values in postfix/main.cf

2010-06-17 Thread Patrick Mohr
On Jun 17, 2010, at 11:04 AM, John Martin wrote: > I have done some further experimenting and found things even more perplexing. > The rule is now just adding the new values that I need. The rule is: > > augeas { "dkim-postfix-settings": > require => Package["postfix"]

Re: [Puppet Users] puppet and CPU

2010-06-10 Thread Patrick Mohr
On Jun 10, 2010, at 12:02 AM, Nat wrote: > Hi, > > I am running puppet on my machines (mainly all rhel 5) and notice that puppet > is waking the CPU up between 90 - 100 times a second. > > Is this normal?? it is waking the CPU up more than the kernel itself (when > not under load)!! > > Al

Re: [Puppet Users] Puppet and ruby 1.9?

2010-06-07 Thread Patrick Mohr
On Jun 7, 2010, at 10:40 AM, DeRailed wrote: > Hi, > > I am just getting started with puppet. Our stack runs on 1.9 and it > seems puppet is not quiet there yet. > I figure I could run puppetmaster on 1.8 but the clients will need > to install and run 1.9. > > Any advise there? or are we

Re: [Puppet Users] Re: FYI: Mac Configuration Management at the Los Alamos National Laboratory white paper

2010-06-05 Thread Patrick
On Jun 5, 2010, at 2:31 PM, Chuck wrote: > I am currently worried about scalability as the number of modules and > clients on my puppet server increases. I am planning on locating at > least one puppet server in each of the 4 data centers. I've found that very bad things > I am not finding any

Re: [Puppet Users] running puppet withput puppetmasterd

2010-06-05 Thread Patrick
On Jun 5, 2010, at 5:06 AM, Henning Sprang wrote: > On Sat, Jun 5, 2010 at 12:15 AM, Julian Simpson > wrote: >> Try adding a --modulepath to the puppet command line. You may need to tweak >> your manifests: make sure that file urls are of the form >> puppet:///some/path. > > Thanks! > > But

Re: [Puppet Users] Managing RPM Repositories

2010-06-02 Thread Patrick
On Jun 2, 2010, at 1:08 PM, Matthew Macdonald-Wallace wrote: > On Wed, 2010-06-02 at 10:45 -0700, Patrick wrote: >> >> On Jun 2, 2010, at 10:42 AM, Patrick wrote: >> >>> >>> On Jun 2, 2010, at 7:11 AM, Matt Wallace wrote: >>> >>>> H

Re: [Puppet Users] Managing RPM Repositories

2010-06-02 Thread Patrick
On Jun 2, 2010, at 10:42 AM, Patrick wrote: > > On Jun 2, 2010, at 7:11 AM, Matt Wallace wrote: > >> Hi all, >> >> I'm trying to write a module to manage yum repositories but before I >> re-invent the wheel I was wondering if anyone out there had existi

Re: [Puppet Users] Managing RPM Repositories

2010-06-02 Thread Patrick
On Jun 2, 2010, at 7:11 AM, Matt Wallace wrote: > Hi all, > > I'm trying to write a module to manage yum repositories but before I > re-invent the wheel I was wondering if anyone out there had existing > code I could adapt! I think there was a resource type built into puppet called yumrepos on

Re: [Puppet Users] Re: Same certificate on multiple identical machines ?

2010-06-01 Thread Patrick
e client doesn't matter. I think it's because puppet ignores the DNS name of the client and just uses the certificate name. > I'm not sure what the limits are on this as I've never tried it for more > than a dozen or so hostnames. > > Trevor > > On 06/01/201

Re: [Puppet Users] Re: Same certificate on multiple identical machines ?

2010-06-01 Thread Patrick
At this point you either need to: *) Do something pretty complicated so the server gives diffierent mounts t each computer, orwith different mounts or *) Give every machine access to all the other machine's certificates, and store all the credentials for the NFS server in the PXE server where any

Re: [Puppet Users] Re: Same certificate on multiple identical machines ?

2010-06-01 Thread Patrick
On Jun 1, 2010, at 1:28 AM, julien wrote: > Thanks for your quick answers. > > You got the point, when the servers reboot they get back to their > original state. > > I will try to integrate a certificate in the image. The servers are > not meant to restart very often but when they do, they wou

Re: [Puppet Users] Same certificate on multiple identical machines ?

2010-05-31 Thread Patrick
On May 31, 2010, at 1:20 PM, Matt Juszczak wrote: >> You should just be able to get the certificate signed on one of them and >> then put the whole /var/lib/puppet directory in the image. Remember that >> with this method, any computer that can access the PXE server can pretend to >> be one o

Re: [Puppet Users] Same certificate on multiple identical machines ?

2010-05-31 Thread Patrick
On May 31, 2010, at 6:41 AM, julien wrote: > The problem is quite simple : if I install puppetd on the image, I > will end up using the same certificate for 100 different servers with > different names (the hostname is setup at boot time from dhcp) and I > guess the puppetmaster won't allow that.

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Patrick
You have two possible problems. It's also possible that the directory was locked because something else was doing stuff with packages. This is rather unlikely though. The puppet client runs as the user you run it as. If you start it as a service, it runs as root. If you start is as an ordin

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Patrick
On May 27, 2010, at 5:00 AM, Marley Bacelar wrote: > Shouldn't you use? > > class test { > exec { "sudocmd" : >cwd => "/home/server/", >path => ["/usr/bin/","/usr/sbin/","/ > bin"], >command => "sudo apt-get update -y", >timeout => "-1" >} > } I think the -y is only needed f

Re: [Puppet Users] Re: customizing an existing type & provider, or creating a new set

2010-05-25 Thread Patrick
On May 25, 2010, at 2:47 AM, Thomas Bellman wrote: > On 2010-05-24 22:32, Hercynium wrote: > >> Can do. What's the preferable approach on this list? Posting to >> pastebin/gist, or directly in-message? > > Inline in the message, please. Having to surf to a webpage to view > the information suc

Re: [Puppet Users] Unexpected dependency cycle

2010-05-24 Thread Patrick
On May 24, 2010, at 5:03 PM, Ben Beuchler wrote: > The class below is designed to ensure that a fifo exists that will be > written to by Apache and read from by syslog-ng. I've attached the > relevant chunk of the dependency graph. It's obvious to me why > Exec[access_log_pipe] is a parent nod

Re: [Puppet Users] Puppet Dashboard error.

2010-05-24 Thread Patrick
puppet/ssl/certs/ . Is there a ca.crt and another cert with the client's name? On May 24, 2010, at 12:34 PM, Marley Bacelar wrote: > Any onther idea? > > 2010/5/24 Marley Bacelar > Hi Patrick, > > [r...@mgmt-puppet-dev-01.intechne.com.br ~]# puppetca --list --all &g

Re: [Puppet Users] Puppet Dashboard error.

2010-05-23 Thread Patrick
ersion: > > [r...@mgmt-puppet-dev-01 puppet-dashboard]# cat /opt/puppet-dashboard/VERSION > v1.0.0 > > > > -- > Marley Bacelar > Project Fedora Ambassador > VCP, VSP. VTSP., ITILF, IBM 000-076, IBM 000-330, IBM 000-331 > marleybace...@gmail.com > > >

Re: [Puppet Users] Re: SSH service not getting restarted

2010-05-23 Thread Patrick
What OS/distro are you using? Most will have the services pre-setup. On May 23, 2010, at 8:23 AM, takrishnan wrote: > Thanks for the tip Patrick. It worked fine except that without > hasrestart =>true, it was using stop/start but I wanted to restart. > > -tak > > On May

Re: [Puppet Users] Puppet Dashboard error.

2010-05-23 Thread Patrick
On May 22, 2010, at 9:50 PM, Marley Bacelar wrote: > Hi i have the running i both sides, client and server sides the puppet 0.25.4 > Get this error on server side: > > puppetmasterd[5363]: Report puppet_dashboard failed: wrong Content-Length > format > > > And receive this error on my client

Re: [Puppet Users] Re: Best-practice way of handling IP addresses

2010-05-22 Thread Patrick
It's usually much easier to use DHCP for desktops, and some servers. Also, the computer will (usually) need an ip address before the first puppet run. On May 22, 2010, at 1:59 PM, andreash wrote: > Hi, > > thanks for your input. I had already thought about that, but initially > wanted to be ab

Re: [Puppet Users] Replace some text

2010-05-21 Thread Patrick
You might want to check out Augeas. It might be easier to use. I've seen a simple define that does that, but I can't find it. It had a grep statement in unless, and used sed to make the change. A much more complicated example can be found at http://projects.puppetlabs.com/projects/puppet/wik

Re: [Puppet Users] SSH service not getting restarted

2010-05-21 Thread Patrick
On May 21, 2010, at 11:23 AM, takrishnan wrote: > Hi, > > I have this in my sshdconfig module's init.pp but the service is not > getting restarted even though at first connect the file sshd_config is > getting modified with the Banner entry. Can someone please help? > > class sshdconfig { >

Re: [Puppet Users] Re: Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Patrick
On May 20, 2010, at 11:36 AM, Tim Stoop wrote: > > > On 20 mei, 17:26, Patrick wrote: >> What are you trying to do with the onlyif? If that works in augtool, and >> that's what you want, just remove the onlyif. > > Without the onlyif, I'm still gettin

Re: [Puppet Users] default client config / send client error messages to server log

2010-05-20 Thread Patrick
On May 20, 2010, at 5:56 AM, Patrick wrote: > We would like to roll out several clients with puppet. I want to make sure > that the clients can run a long time (~years) without requiring me to login. > Reason: It would be hard to get access to this machines as they are far away >

Re: [Puppet Users] Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Patrick
On May 20, 2010, at 6:10 AM, Tim Stoop wrote: > Hi all, > > I'm trying to do fairly simple stuff with augeas, like: > > augeas { "cronapt - mailon": > context => "/files/etc/cron-apt/config", > changes => "set MAILON upgrade", > onlyif => "match MAILON != ['upgrade']", > } > > This works i

[Puppet Users] default client config / send client error messages to server log

2010-05-20 Thread Patrick
rror messages back to the server? Patrick -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@google

Re: [Puppet Users] Using a set of recipes to build stuff from source...

2010-05-19 Thread Patrick
On May 19, 2010, at 12:30 PM, Peter Berghold wrote: > Hi folks, > > I'm a newbie to this wonderful tool called puppet and so far I'm loving it. > > One of the first set of recipes (classes?) I wrote for my environment was to > build some packages from source and install them. Stuff like apac

Re: [Puppet Users] Re: client specific configuration not working

2010-05-18 Thread Patrick
e the standard > paths and it still works for me. Maybe something different in newer versions > (I'm using 0.25.4) import can use relative paths. Could the file you were talking about have been in a module's directory? -Patrick -- You received this message because you are subscribed

Re: [Puppet Users] Negative requires

2010-05-17 Thread Patrick
On May 17, 2010, at 9:35 PM, Tim Nicholas wrote: > I can do something like: > > package { [ "mysql" ] : ensure => absent, } > package { [ "MySQL-client-community", ] : ensure => installed, } > > Which is fine, unless "MySQL-client-community" is scheduled to be > installed before mysql is remo

Re: [Puppet Users] puppet-module-apache

2010-05-12 Thread Patrick
On May 12, 2010, at 3:16 AM, Julian Simpson wrote: > > > > > http://github.com/camptocamp/puppet-apache > > http://github.com/wesabe/puppet-apache2 > > http://github.com/puppet-modules/puppet-apache > > http://github.com/simpsonjulian/puppet-apache-ubuntu > > http://github.com/ohlol/puppet-apach

Re: [Puppet Users] Re: puppet and ubuntu 9.04

2010-05-09 Thread Patrick
I did that with karmic (9.10) except I also added augeas. On May 9, 2010, at 9:57 AM, Benoit Cattié wrote: > I think you can use lucid packages without doing anything. > > I use it on Ubuntu 8.04.4 LTS (hardy ) > > ii puppet 0.25.4-2ubuntu6 > ce

Re: [Puppet Users] Pre-sign "offline" servers?

2010-05-06 Thread Patrick
This looks like http://groups.google.com/group/puppet-users/browse_thread/thread/d31811e3d9f883f4/348e4f48a7fd66e1 to me. On May 6, 2010, at 6:46 AM, Phillip B Oldham wrote: > How can I pre-sign a server which doesn't yet have a domain pointing > to it? > > I'm trying to get an EC2 "base im

Re: [Puppet Users] PSON error?

2010-05-04 Thread Patrick
Do you have version 0.25.x puppet clients connecting to version 0.24.x servers? This looks a bit like that error. On May 4, 2010, at 5:27 AM, Kent Rankin wrote: > Can anyone shed any light to this error message? We're getting a > number of them. > > Tue May 04 08:18:35 -0400 2010 ///File[

Re: AW: [Puppet Users] Re: complex data types in puppet & facter

2010-05-04 Thread Patrick
I think that Rwolf is puppet 0.26.x. On May 4, 2010, at 12:43 AM, Bernd Adamowicz wrote: > Ok, found the answer myself. Just installed 25.5-rc2 on client and server and > tried it. But same error message when parsing the template. > >> Is there an elegant way to use complex facts in puppe

Re: [Puppet Users] Re: New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread Patrick
On May 3, 2010, at 11:10 PM, JRendell wrote: > Answering one of my own questions: > >> >> Question: will puppet handle downgrades? ie use 'rpm -f' to force the >> installation? >> Or will it only work for upgrades? >> > > From looking at puppet/provider/package/rpm.rb: > Specifying 'latest'

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Patrick
t; On Mon, May 3, 2010 at 2:28 PM, Patrick wrote: > > On May 3, 2010, at 11:22 AM, Roshan Punnoose wrote: > >> After doing some Google digging, I saw that there were a couple urls like >> this: >> >> http://puppet:8140/production/status/default >> >&

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Patrick
; not correct. If I wanted to get a file from puppet:file, what > would I have to do? > > Roshan I think the easiest way to find out more is to run puppet on a real webserver and log puppet's requests. -Patrick -- You received this message because you are subscribed to the Goog

Re: [Puppet Users] Managing producton & backup datacenter

2010-05-03 Thread Patrick
imitive ;-) but right now it works > fine. > I just wonder how you guys have it set up - maybe there's some more > efficient and elegant way. > > -Regards I actually just set the ntpd server to be a local server name and let DNS sort it out using the search domain. -Patrick -- Y

Re: [Puppet Users] puppetmaster not responding

2010-04-29 Thread Patrick
On Apr 29, 2010, at 8:08 AM, Phillip B Oldham wrote: > I'm unable to get a response from the puppetmaster I'm testing with. > > `netstat -apn` shows puppetmaster/ruby listening on port 8140, but > telnet connections are refused both from a different location and from > the commandline on the mas

Re: [Puppet Users] Puppet manifests under version control issue

2010-04-29 Thread Patrick
On Apr 29, 2010, at 12:54 AM, Maxim Ianoglo wrote: > Hello, > > I tried to add a pre-commit hook using this tutorial: > projects.puppetlabs.com/projects/puppet/wiki/Puppet_Version_Control > > But I get this error. > = >

Re: [Puppet Users] Refresh an exec only if another file changes

2010-04-28 Thread Patrick
On Apr 28, 2010, at 5:02 PM, Jesús M. Navarro wrote: > Hi, Patrick: > > On Wednesday 28 April 2010 23:42:38 Patrick wrote: >> On Apr 28, 2010, at 1:10 PM, Jesús M. Navarro wrote: >>> Hi, list: >>> >>> I'm trying to add a Debian-based Xen Dom0

Re: [Puppet Users] Refresh an exec only if another file changes

2010-04-28 Thread Patrick
On Apr 28, 2010, at 1:10 PM, Jesús M. Navarro wrote: > Hi, list: > > I'm trying to add a Debian-based Xen Dom0 server to puppet management. > > One of the files I want to consider is /boot/grub/menu.lst since it contains > some Xen-related options. > > When managing it by hand I'd produce a s

Re: [Puppet Users] Puppetmaster child processes hang

2010-04-27 Thread Patrick
On Apr 27, 2010, at 10:51 AM, Charles Johnson wrote: > Mine do not look too dissimilar: > > PassengerUseGlobalQueue on > PassengerMaxPoolSize 20 > PassengerHighPerformance on > PassengerPoolIdleTime 1800 > PassengerStatThrottleRate 120 > RackAutoDetect Off > RailsAutoDetect Off > > 1, Try using

Re: [Puppet Users] strange pson error...

2010-04-26 Thread Patrick
I saw an error like this when the client was 0.25.x and the server was 0.24.x. On Apr 26, 2010, at 9:06 PM, Grzegorz Marszałek wrote: > Hello! > > What does this error means? > > err: Could not retrieve catalog from remote server: Could not intern from > pson: Could not convert from pson: Cou

<    1   2   3   4   5   6   7   >