Re: [Puppet Users] Facter + storeconfigs missing fact_values

2011-06-19 Thread Patrick Mohr
Well, it would help if you can find out if the problem is with storeconfigs of the rest of puppet. Does the fact seem to be affecting the manifest? On Sun, Jun 19, 2011 at 7:48 PM, josbal wrote: > Hi Guys, > > Was wondering if someone could point me in a way to diagnose my issue. > > I have a c

Re: [Puppet Users] Could not find a default provider for package

2011-06-19 Thread Patrick Mohr
On Sat, Jun 18, 2011 at 6:24 PM, d0ugb wrote: > Need some help here. I am using puppet to mange some Gentoo boxes, and > when working with packages I keep getting the following error: > > Could not find a default provider for package > > Version: > > * app-admin/puppet > Latest version avai

Re: [Puppet Users] [SOLVED] line replace triggers file reload

2011-06-02 Thread Patrick Mohr
On Wed, Jun 1, 2011 at 11:22 PM, Giovanni Bordello wrote: > Sorted, I've done it using a template: > > search <%= dns_search_path %> > nameserver ... > nameserver ... > > That way the file is (presumably?) created on the master and looks constant > to the client. > > To answer your implicit quest

Re: [Puppet Users] PC EU feedback: long online docs pages should be broken up

2011-05-21 Thread Patrick Mohr
On Sat, May 21, 2011 at 12:01 AM, R.I.Pienaar wrote: > > > - Original Message - > > On 2011-05-20 22:18, Randall Hansen wrote: > > > http://projects.puppetlabs.com/issues/7601 > > > > > > Our very long docs pages are difficult to use. E.g., > > > http://docs.puppetlabs.com/references/2.6.

Re: [Puppet Users] Re: PC EU feedback: ability to remove all unmanaged resources

2011-05-21 Thread Patrick Mohr
On Fri, May 20, 2011 at 3:15 PM, jcbollinger wrote: > > > On May 20, 3:17 pm, Randall Hansen wrote: > > http://projects.puppetlabs.com/issues/7600 > > > > I call this the "agent orange" option :) > > > > This works, purging all unmanaged hosts entries: > > > > resources { 'host': > >

Re: [Puppet Users] PC EU feedback: virtual resource operator is too magical, hard to read

2011-05-21 Thread Patrick Mohr
On Fri, May 20, 2011 at 3:15 PM, Jordan Sissel wrote: > > > On Fri, May 20, 2011 at 1:20 PM, Randall Hansen wrote: > >> http://projects.puppetlabs.com/issues/7605 >> >> The virtual resource operator: >> >>@user { luke: ensure => present } >> >> Is relatively easy to type but, if you don’t kno

Re: [Puppet Users] Plugins don't work the way I think they do?

2011-05-17 Thread Patrick Mohr
On Mon, May 16, 2011 at 5:04 PM, Aaron Grewell wrote: > Hi all, > I'm trying to configure a set of network interfaces, so I downloaded the > puppet-network module from the module forge. I enabled plugin sync per > http://docs.puppetlabs.com/guides/plugins_in_modules.htm and added the > module to

Re: [Puppet Users] apt-pinning & puppet package management

2011-05-17 Thread Patrick Mohr
If it's pinned like you show, will your computer upgrade to the backports version if you run "apt-get update && apt-get upgrade" or do you need the "-t"? On Mon, May 16, 2011 at 1:49 PM, CoolCold wrote: > Hello! > I have question about Debian package management with puppet. I'm > wondering is th

Re: [Puppet Users] Puppet updating from relative directories or chroot

2010-12-13 Thread Patrick Mohr
On Mon, Dec 13, 2010 at 2:39 PM, Daniel Pittman wrote: > On Fri, Dec 3, 2010 at 22:41, Geoff wrote: > > > Anyone had any experience getting puppet to update multiple OS's on a > > single server? > > Not without a "container" style virtualization solution wrapped around it. > > [...] > > > Can pu

Re: [Puppet Users] iteration question

2010-12-03 Thread Patrick Mohr
Puppet won't bother other files in a directory it manages unless you turn on "purge => true". On Fri, Dec 3, 2010 at 2:15 PM, Don Jackson < puppet-us...@clark-communications.com> wrote: > > On Dec 3, 2010, at 12:56 PM, Patrick wrote: > > Why not sync the files directly to that directory? > > > Th

Re: [Puppet Users] (RHEL) RHN banning && require package

2010-11-03 Thread Patrick Mohr
On Wed, Nov 3, 2010 at 10:37 AM, erikthered wrote: > I'm looking to get around a bit of a problem I've run into with > Puppet. On my puppet master, I have this definition: > > Would that be the best way to handle this issue? Any opinions? > > I think they best way would be to put a caching pro

Re: [Puppet Users] puppetd 0.25.4 with puppetmaster 0.24.8?

2010-10-20 Thread Patrick Mohr
Always upgrade the puppetmaster first. Clients will usually not work with a server that has an older major version. I've found that using the lucid (10.4) deb files in karmic (9.10) works fine if You get all the related ones. When ever you upgrade puppet, also upgrade facter. On Wed, Oct 20, 20

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-25 Thread Patrick Mohr
On Sat, Sep 25, 2010 at 10:33 AM, Nigel Kersten wrote: > On Sat, Sep 25, 2010 at 10:27 AM, Patrick wrote: > > > > On Sep 25, 2010, at 10:23 AM, Nigel Kersten wrote: > > > >> On Sat, Sep 25, 2010 at 10:10 AM, Patrick wrote: > >>> > >>> On Sep 25, 2010, at 10:02 AM, Nigel Kersten wrote: > >>> > >>

Re: [Puppet Users] A question about synchronization

2010-09-21 Thread Patrick Mohr
On Tue, Sep 21, 2010 at 12:49 PM, 2ead3bcd wrote: > Hi, > > Suppose I have 3 nodes, and I want puppet to perform a set of steps on > them in a different order: > Apply step A on each of them, then step B on each of them, then step C > on each of them, and so on. > I'm wondering if puppet supports

Re: [Puppet Users] auth.conf in puppet 2.6 with Apache + Passenger

2010-08-18 Thread Patrick Mohr
them differently, or tell puppet to look for different header. > On Wed, Aug 18, 2010 at 1:19 PM, Patrick Mohr wrote: > I think you might have missed this bit: > > Setup your puppet.conf > > Make sure you have the following set in your puppetmaster’s puppet.con

Re: [Puppet Users] auth.conf in puppet 2.6 with Apache + Passenger

2010-08-17 Thread Patrick Mohr
I think you might have missed this bit: *Setup your puppet.conf* *Make sure you have the following set in your puppetmaster’s puppet.conf:* *[puppetmasterd]* *ssl_client_header = SSL_CLIENT_S_DN* *ssl_client_verify_header = SSL_CLIENT_VERIFY* On Tue, Aug 17, 2010 at 5:59 PM, Sven Schott wro

Re: [Puppet Users] Re: Forbidden request: HOSTNAME(IP_ADDRESSE) access to / certificate_revocation_list/ca

2010-08-13 Thread Patrick Mohr
On Aug 13, 2010, at 7:22 AM, Christian wrote: > When i run in the webbrowser https://:8140 I'm getting > following message: > > "The environment mus be purely alphanumeric, ''". Is it an problem not > to have an environment defined? My working puppetmaster gives the same error. -- You received

Re: [Puppet Users] Re: Push changes to clients

2010-08-13 Thread Patrick Mohr
On Aug 13, 2010, at 7:21 AM, Christopher Johnston wrote: > ignoreschedules = true This will cause puppet to ignore schedule resources. It won't do what you want. > > > Cant you just use those two options to allow puppetruns to work and not have > the client attempt to do updates? > >

Re: [Puppet Users] Parsing key/value pairs in ruby

2010-08-12 Thread Patrick Mohr
On Aug 12, 2010, at 10:55 AM, Rein Henrichs wrote: > Excerpts from Paul Nasrat's message of Thu Aug 12 06:45:52 -0700 2010: >> You might use shellwords to handle the quoting. >> require 'shellwords' l = %q(printer-make-and-model='Brother HL-2060 Foomatic/hpijs-pcl5e (recommended)

[Puppet Users] Parsing key/value pairs in ruby

2010-08-11 Thread Patrick Mohr
I'm making a provider for cups and I need to parse a string into arbitrary key/value pairs. The string looks like this: printer-make-and-model='Brother HL-2060 Foomatic/hpijs-pcl5e (recommended)' printer-state=3 printer-state-change-time=1266621145 printer-state-reasons=none printer-type=85647

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Patrick Mohr
On Aug 11, 2010, at 9:31 AM, Joe McDonagh wrote: > On 08/11/2010 12:27 PM, Marc Zampetti wrote: >> I want puppet to normally manage the running state of a service, so that if >> the service stops, it is restarted, etc. But during maintenance windows, I >> want puppet to leave the service in wha

Re: [Puppet Users] puppetrun with --class argument not working, ver. 0.25.5

2010-08-11 Thread Patrick Mohr
I think I've seen a similar error before. If I remember right, the problem is that puppetrun or is looking in the main/puppetrun sections for information about ldap. You have you ldap stuff in puppetmasterd. Try temporarily putting all the ldap stuff in [main]. On Tue, Aug 10, 2010 at 9:14 PM,

Re: [Puppet Users] variable confusion

2010-08-09 Thread Patrick Mohr
Why not just move everything to a class in a diffierent file? Then put the variables directly in that class? On Mon, Aug 9, 2010 at 9:23 AM, Christopher Johnston wrote: > Why can't variables be reassigned with a setup like this? > > node /.*mydomain.com/ { > import mydomain.pp > } > > node /*.

Re: [Puppet Users] generating catalog files

2010-08-02 Thread Patrick Mohr
On Aug 2, 2010, at 5:50 PM, Jon Wilson wrote: > Hiya, > > Is there a way I can easily generate the catalog for a particular > puppet client, without actually running Puppet on that client? > > I'd like to write some unit tests for my Puppet master, which generate > catalogs for a set of clients

Re: [Puppet Users] Re: Newbie question - package installation

2010-07-30 Thread Patrick Mohr
; it has to be a local file). >> >> My other choices seem to be an nfs mount, or a local repo server. >> >> Thanks >> >> On Jul 29, 11:23 am, Patrick Mohr wrote: >> >> >> >>> On Jul 29, 2010, at 9:45 AM, Rustler wrote: >> >>

Re: [Puppet Users] Bootstrap

2010-07-30 Thread Patrick Mohr
Do you want to run it off the server or install it on the client? What OS? On Jul 29, 2010, at 9:02 PM, parag(PK) wrote: > Can it be possible to boot up a bare metal client ,by downloding the > whole OS from server .when the client is powered on . -- You received this message because y

Re: [Puppet Users] Newbie question - package installation

2010-07-29 Thread Patrick Mohr
On Jul 29, 2010, at 9:45 AM, Rustler wrote: > This code is working - but due to the file declaration it keeps > downloading the rpm even after the package gets installed. > > 1. How do I stop the rpm from downloading after the package is > installed? Best method: *) If at all possible you shou

Re: [Puppet Users] Installing Puppet

2010-07-22 Thread Patrick Mohr
On Jul 22, 2010, at 9:16 PM, parag(PK) wrote: > > Can anyone describe the exact puppet installation procedure > I am using a Ubuntu 7.04 system Upgrade to Lucid? Really, that's a very old version. Install ruby, facter, augeas, and puppet from source. It's going to be an adventure, and yo

Re: [Puppet Users] fileserver issues - getaddr info

2010-07-22 Thread Patrick Mohr
puppetmaster > is > "debug: File[/tmp/that.txt]: Adding default for ignore" > > so there is some communication going between the hosts. > > Cheers, > Denmat > On , Patrick Mohr wrote: > > Try using a path of "puppet://server/sshd/files/that.txt"

Re: [Puppet Users] checking if a user exists

2010-07-22 Thread Patrick Mohr
What about just not setting the uid? It sounds like that's what you are trying to do. On Jul 22, 2010, at 12:30 PM, Don Harden wrote: > > Hi Folks, > > Ive been trying to figure this out on Puppet 2.5.5 but just upgraded > to 2.6 > > I have this in a module to make sure zabbix is installed,

Re: [Puppet Users] Failing to connect new client to master

2010-07-22 Thread Patrick Mohr
On Jul 22, 2010, at 12:20 PM, David Dyer-Bennet wrote: > > On Thu, July 22, 2010 12:27, Patrick Mohr wrote: >> The hostname the client connects to, must match the name on the server's >> certificate. > > I believe I have that right. > > On the server,

Re: [Puppet Users] Failing to connect new client to master

2010-07-22 Thread Patrick Mohr
The hostname the client connects to, must match the name on the server's certificate. More info at: http://groups.google.com/group/puppet-users/browse_thread/thread/8bcc83b7f52214db On Jul 22, 2010, at 10:02 AM, WEB PAGE: http://www.dyarstraights.com (08/14/04) WEB PAGE: http://www.livejournal.

Re: [Puppet Users] fileserver issues - getaddr info

2010-07-22 Thread Patrick Mohr
Try using a path of "puppet://server/sshd/files/that.txt" (I removed the word "modules"). On Jul 22, 2010, at 6:03 AM, denmat wrote: > Hi all, > > Haven't set puppet up for awhile and have an issue with getting files > served. > > I'm running 2.6 gem on fedora12. > > class sshd { > > file

Re: [Puppet Users] 2.6, parameterized classes, external nodes

2010-07-21 Thread Patrick Mohr
On Jul 21, 2010, at 5:44 PM, Alan Sparks wrote: > Many of us have the problem of needing to simulate the instantiation of > definitions via external nodes (e.g., the multiple Apache vhosts > situation, or multiple service instantiations with unique > configurations). Since these are singletons,

Re: [Puppet Users] Installing a module FIRST

2010-07-21 Thread Patrick Mohr
On Jul 21, 2010, at 5:16 PM, Douglas Garstang wrote: > On Wed, Jul 21, 2010 at 4:44 PM, Patrick Mohr wrote: >> >> On Jul 21, 2010, at 4:29 PM, Douglas Garstang wrote: >> >>> Anyone, >>> >>> How can I guarantee that all components of the

Re: [Puppet Users] Installing a module FIRST

2010-07-21 Thread Patrick Mohr
On Jul 21, 2010, at 4:29 PM, Douglas Garstang wrote: > Anyone, > > How can I guarantee that all components of the LDAP client module get > installed before ANY components of any other module? Use 2.6.x and use run stages. -OR- Use 0.25.x and make all User and Package resources depend on that

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

2010-07-21 Thread Patrick Mohr
g changes rc.local back until puppet successfully finishes the first run. > > On Jul 20, 10:28 pm, Patrick Mohr wrote: >> 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? >> &g

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
But where is the post-command? Couldn't find any document in 0.25. > > Thanks > > -Yushu > > > On Jul 16, 2:35 pm, Patrick Mohr wrote: >> You could also test to see if post-command is run. >> >> On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: >&

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
On Jul 9, 2010, at 11:58 PM, James Turnbull wrote: > Certificates cleaned with puppetca (or puppet cert) are now also revoked. Is there some way to clean a cert (using puppet cert) without revoking it? Something like "puppet cert --clean hostname.domain --no-revoke". File streaming means the c

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

2010-07-09 Thread Patrick Mohr
Not creating a package is probably a big mistake, but take a look at the "onlyif" parameter and the "creates" parameter. onlyif takes a command. creates says something like "if this file/directory exists, don't run this command." > On Jul 9, 12:18 pm, Patric

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