Re: [Puppet Users] making puppetd immortal

2011-06-29 Thread Scott Smith
Well, changing a runlevel just to stop a daemon is a bit heavy handed. There are other tools that perform this in a more flexible manner: Runit, Daemontools, Monit, Supervisord, etc. -scott On Wed, Jun 29, 2011 at 10:33 PM, vagn scott wrote: > In my reading I just ran across this: > >[

Re: [Puppet Users] proposed syntax: order { }

2011-07-04 Thread Scott Smith
I take it you're not familiar with the `requires' parameter. On Mon, Jul 4, 2011 at 8:40 PM, vagn scott wrote: > Sometimes things just have to happen in sequence. > It is the simplest of relations, but puppet really > has no convenient, non-fiddly way to express it. > So, how about > > > class x

Re: [Puppet Users] proposed syntax: order { }

2011-07-04 Thread Scott Smith
Ignoring the fact that "noise" is very subjective... it doesn't. In Puppet, position in a file has no bearing on order. It's not an imperative language. On Mon, Jul 4, 2011 at 8:46 PM, vagn scott wrote: > On 07/04/2011 11:42 PM, Scott Smith wrote: > >> I take

Re: [Puppet Users] Re: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"

2011-07-04 Thread Scott Smith
Why would you pass the output from inline_template as the title of a resource? On Mon, Jul 4, 2011 at 8:03 PM, vagn scott wrote: > >$foo = inline_template( ... ) >$baz = inline_template( ... ) >File[ "$foo$baz" ] > > > > -- > vagn > > -- > You received this message becaus

Re: [Puppet Users] proposed syntax: order { }

2011-07-04 Thread Scott Smith
Whatever problem you are trying to solve is most likely best handled outside of Puppet. On Mon, Jul 4, 2011 at 9:59 PM, vagn scott wrote: > Thinking about this some more, I like block better, > with order optional: > > class c { > >block { "x":# any order >package { .

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Scott Smith
Doesn't the Foreman use Cobbler for managing PXE and Kickstart? -scott On Tue, Jul 12, 2011 at 8:26 AM, Dan White wrote: > This tells me RedHat picked Foreman over Cobbler. It does not tell me WHY. > > Their reasons may not apply to my situation. > > I am not trying to be difficult, but I find

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-13 Thread Scott Smith
What if you specify a resource as being disabled/uninstalled/etc by default? On Jul 13, 2011 9:40 AM, "Darrell Fuhriman" wrote: > > I've always thought there should be an implicit X::disabled class that gets included for every host where X isn't included. > > Then if I create said class, it gets a

Re: [Puppet Users] Re: how to write classes to install package from source

2011-07-14 Thread Scott Smith
Use fpm http://github.com/jordansissel/fpm On Jul 14, 2011 10:08 AM, "KarthiKeyan. Kesavan" wrote: > Hi guys, > > Thanks a lot for the suggestions . > > Regards > > K.Karthikeyan > > On Thu, Jul 14, 2011 at 7:33 PM, Al @ Lab42 wrote: > >> Thanks for the suggestions, they are going to be merged.

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread Scott Smith
You never heard of nmap, eh? If you want to start talking about security and auditing, that's a whole other can of worms. It's a bad idea to assume that Defined State and Actual State will match. Anyway, I think you're forgetting that node state in Puppet is explicit by nature. What you're asking

Re: [Puppet Users] facts_terminus = rest

2011-07-14 Thread Scott Smith
I personally couldn't get it to work (no facts in Dashboard), but only spent a short amount of time on it. On Thu, Jul 14, 2011 at 1:50 PM, Glenn Bailey wrote: > Anyone using this? I'm trying to setup a separate inventory server for > multiple puppet masters to report back. For testing purposes I

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-16 Thread Scott Smith
I don't. On Jul 16, 2011 8:59 AM, "Emiliano Gabrielli (aka AlberT)" < emiliano.gabrie...@gmail.com> wrote: > > On Jul 14, 2011, at 7:16 PM, Darrell Fuhriman wrote: > >> 'm not asking puppet to know what to do, which I agree is ridiculous. I'm saying that if and only if I've defined X::disabled, aut

Re: [Puppet Users] Installing from source, not a package

2011-07-17 Thread Scott Smith
Step 1: don't do that Step 2: make a package On Jul 17, 2011 9:46 AM, "S Ahmed" wrote: > So I ran through a server setup on ec2, and have a text file of all the > commands I used to get the server to where I wanted it. > > I have a few questions now :) > > I am running Ubuntu 10.10, and this is

Re: [Puppet Users] Installing from source, not a package

2011-07-17 Thread Scott Smith
You don't know what a package is? On Jul 17, 2011 12:05 PM, "S Ahmed" wrote: > wow, what can I say, thanks for guidance! > > The last bit of what you said I don't understand: > > "But, the biggest improvement would be to make your own package and install > that > instead of fiddling around with th

Re: [Puppet Users] Control the sequence of module execution

2011-07-18 Thread Scott Smith
Don't run mysql commands in Puppet. On Mon, Jul 18, 2011 at 7:32 PM, newguy wrote: > Hey Guys > I was wondering how can I control the order of execution of various > modules on the puppet client. > Suppose I have a module A which installs mysql and there is module B > which executes mysql comman

Re: [Puppet Users] Skipping Tags?

2011-07-19 Thread Scott Smith
Use puppet apply file.pp Or don't deploy webapps with Puppet. That's probably a better idea. On Tue, Jul 19, 2011 at 10:32 PM, Douglas Garstang wrote: > All, > > Is there a way to tell puppet to run, but to skip/ignore resources with a > certain tag? The use case is tagging certain resources as,

Re: [Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release

2011-07-21 Thread Scott Smith
Gonna take a wild guess that there are plans to support other providers.. On Thu, Jul 21, 2011 at 6:32 PM, Douglas Garstang wrote: > 'Cloud Provisioner' seems like a funny name if it's only designed to manage > Amazon EC2 instances. Why didn't you just call it the 'Amazon Provisioner' ? > > > On

Re: [Puppet Users] ruby dsl, loading files from within the modules

2011-07-25 Thread Scott Smith
Sounds like a good use case for writing a custom fact. On Mon, Jul 25, 2011 at 5:09 PM, Matt wrote: > Is there a way to load a file from within the module in Ruby DSL? > > The idea I have is to load a file similar to like how template works. > > I'm trying to read in a database properties file a

Re: [Puppet Users] Puppet/facter and update reporting

2011-07-25 Thread Scott Smith
Mcollective uses a message queue. If the host isn't online, it just won't show up. If your laptop is turned off, it wouldn't be reporting either way. On Mon, Jul 25, 2011 at 7:04 PM, Khoury Brazil wrote: > On Sat, Jul 23, 2011 at 8:15 PM, Jacob Helwig > wrote: > > On Fri, 22 Jul 2011 19:28:37 -0

[Puppet Users] 2.7.x and puppet apply

2011-07-27 Thread Scott Smith
I'm trying to run `puppet apply' on a host and it wants the `puppet' group to exist. I found this bug #4336 which is the same problem but looks to be caused by something else. I tried the same command on 2.6.9 successfully. Anyone know what's up? Is thi

Re: [Puppet Users] Is class?

2011-07-28 Thread Scott Smith
It looks like you're wanting to do it via erb, but if you can perform whatever logic in the manifest, you can use tagged: (scott@cornstarch:tmp)% cat foo.pp class foo { } class bar { if (tagged("foo")) { notice("You're including foo") } } include foo, bar (scott@cornstarch:tmp)% puppet f

Re: [Puppet Users] Validating a puppet configuration

2011-07-29 Thread Scott Smith
Those hooks are the gross syntax checks to which he initially referred. On Fri, Jul 29, 2011 at 9:49 AM, Greg Hellings wrote: > Have you looked at using these? > projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control > > -- > Greg > > > On Fri, Jul 29, 2011 at 6:33 AM, Lars Kellogg-Stedm

Re: [Puppet Users] add ip address of another EC2 instance automatically in the hosts file of existing EC2 instance

2011-07-29 Thread Scott Smith
Use exported resources On Fri, Jul 29, 2011 at 6:23 PM, vagn scott wrote: > On 07/29/2011 08:57 PM, newguy wrote: > >> I want to add the ip address of client B in a module M of client A. >> Lets assume that I don't know their ip addresses before hand. >> >> > > > > Well, what do you know before

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
Looks pretty straight forward to me. What are you trying to do? On Wed, Aug 3, 2011 at 1:29 PM, Douglas Garstang wrote: > Anyone using? The docs are really bad. > > Doug > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this g

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Scott Smith
Lists (arrays) in YAML are represented with the `-' prefix. So you created a list called `testkey'. When you echo a list in Puppet, it concatenates the elements. That's why you got `DougBobBill' On Wed, Aug 3, 2011 at 4:19 PM, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 4:15 PM, Aaron Grewe

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
re wasn't even a puppet > code example, just a ruby one. Is this even designed to be used inside > puppet? > > Doug. > > On Wed, Aug 3, 2011 at 4:16 PM, Scott Smith wrote: > >> Looks pretty straight forward to me. What are you trying to do? >> >> On Wed, Aug 3

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
Check the example directory, probably what you're looking for https://github.com/ripienaar/hiera-puppet/tree/master/example On Wed, Aug 3, 2011 at 4:26 PM, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 4:22 PM, Scott Smith wrote: > >> https://github.com/ripienaar/hiera-p

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Scott Smith
http://groups.google.com/group/puppet-users/msg/6432a6dd539b542f On Wed, Aug 3, 2011 at 4:37 PM, Douglas Garstang wrote: > Ok, so am I getting 'DougBobBill' when I use $test_var = > extlookup('testkey', '---', 'settings') on this file? > > --- > testkey: > - Doug > - Bob > - Bill > > Doug > > On

Re: [Puppet Users] Re: Multi site best practices

2011-08-03 Thread Scott Smith
Unless something's changed, the Puppetca only needs to be available for certificate *management*. if it were down, you couldn't create a certificate for a new node or revoke for an old one. And I'm pretty sure the CRL has to be actively distributed to Puppetmasters. (Meaning, if you revoke a certif

Re: [Puppet Users] Re: resuable module patterns

2011-08-07 Thread Scott Smith
Virtual resources. On Sun, Aug 7, 2011 at 4:51 PM, ashwoods wrote: > No, not really. Because that would require me to modify the 3rd party > modules to use that base packages module > instead of how its defined. i.e. if i need build-essentials for my > django module, put it on github, anybody wh

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Scott Smith
Works the same as it does in Bourne shell. If you want to use double quotes inside a double-quoted string, you have to escape them. Or use single quotes. On Mon, Aug 8, 2011 at 12:58 PM, Douglas Garstang wrote: > Thanks. That did it. Ugly... > > > On Mon, Aug 8, 2011 at 12:47 PM, vagn scott wrot

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Scott Smith
D'oh, looks like I need to refresh my vision prescription :( On Mon, Aug 8, 2011 at 1:09 PM, Douglas Garstang wrote: > I wasn't trying to use double quotes inside a double quoted string. > > > On Mon, Aug 8, 2011 at 1:01 PM, Scott Smith wrote: > >> Works the same

Re: [Puppet Users] Why?

2011-08-09 Thread Scott Smith
I suggest using a notice => Exec["shareall"] in your dfsshare rather than before. Also make exec{"shareall": refreshonly => true} That may or may not help with your problem but either way good design On Tue, Aug 9, 2011 at 11:23 AM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Tu

Re: [Puppet Users] Re: Help with retrieving a user's environment variable

2011-08-09 Thread Scott Smith
oraclesids = "proddb1,proddb2" oracle_home_proddb1 = "/oracle/product/10.2.0" ... On Tue, Aug 9, 2011 at 1:49 PM, Corey Osman wrote: > Good suggestions. How about this: > > Create a fact that parses /etc/oratab for the SID. For multiple SIDS > defined in oratab, is it possible to define an arr

Re: [Puppet Users] ANNOUNCE: Puppet Module Tool version 0.3.4

2011-08-09 Thread Scott Smith
How will it know which directory in your modulepath to install it? On Aug 9, 2011 6:02 PM, "John Warburton" wrote: > On 10 August 2011 08:47, James Turnbull wrote: > >> We've just released version 0.3.4 of the puppet-module tool used to >> create and retrieve modules from the Puppet Labs Forge >>

Re: [Puppet Users] ANNOUNCE: Puppet Module Tool version 0.3.4

2011-08-10 Thread Scott Smith
I don't see any statement claiming that it'll automagically get put into the right place. On Tue, Aug 9, 2011 at 6:35 PM, John Warburton wrote: > > On 10 August 2011 11:24, Scott Smith wrote: > >> How will it know which directory in your modulepath to install it? &

Re: [Puppet Users] Does Node Inheritance work for people?

2011-08-10 Thread Scott Smith
ENC + include/require = no need for inheritance. Classify roles for your servers, assign classes and parameters to the roles. On Wed, Aug 10, 2011 at 4:33 PM, Darrell Fuhriman wrote: > [Following up a little late] > > Is anyone using node inheritance and happy with how it works? If so, can > yo

Re: [Puppet Users] generate function

2011-08-10 Thread Scott Smith
Sounds like a job better suited for ENC/inventory. IMO. On Wed, Aug 10, 2011 at 2:13 PM, Craig White wrote: > > On Aug 10, 2011, at 11:50 AM, Daniel Pittman wrote: > > > On Wed, Aug 10, 2011 at 18:31, Craig White > wrote: > >> > >> what I am trying to do is execute a shell script on the puppetm

Re: [Puppet Users] Custom manifest

2011-08-11 Thread Scott Smith
Why don't you generate httpd.conf from a template in Puppet and restart apache if deemed necessary? On Thu, Aug 11, 2011 at 1:51 AM, Himanshu Raina wrote: > Hi, > > > Can I execute a command basis on some criteria in puppet. For example, I > would want to execute the following command > > svn up;

Re: [Puppet Users] Custom manifest

2011-08-11 Thread Scott Smith
ease guide me to do it using template as you have mentioned. > > Regards, > > > On Thu, Aug 11, 2011 at 2:29 PM, Scott Smith wrote: > >> Why don't you generate httpd.conf from a template in Puppet and restart >> apache if deemed necessary? >> >> On Thu,

Re: [Puppet Users] Custom manifest

2011-08-11 Thread Scott Smith
uppet and svn is to keep track of revision history of changes >>> made to configuration files. Also, if my understanding is wrong could you >>> please guide me to do it using template as you have mentioned. >>> >>> Regards, >>> >>> >>>

Re: [Puppet Users] Custom manifest

2011-08-11 Thread Scott Smith
http://docs.puppetlabs.com/index.html explains it pretty well :) On Thu, Aug 11, 2011 at 2:55 AM, Himanshu Raina wrote: > So, can you guide me on how can this be done using templates. > > Regards, > > On Thu, Aug 11, 2011 at 3:19 PM, Scott Smith wrote: > >> Then you wou

Re: [Puppet Users] could not find file

2011-08-12 Thread Scott Smith
It's the first line in admins.pp 'class global::admins {' ? On Aug 12, 2011 9:44 AM, "Alan Batie" wrote: > I'm playing with puppet 2.7.1 on centos 5.6; as I read the docs at > http://docs.puppetlabs.com/learning/modules1.html, the command: > > puppet apply --verbose --noop -e "include global::admi

Re: [Puppet Users] Re: cleaning puppet dashboard

2011-08-12 Thread Scott Smith
FWIW, I don't think that task touches this table. Also, I apologize for writing such a crappy rake task, can't believe it's still there :-P On Aug 12, 2011 6:28 AM, "Arnau Bria" wrote: > On Thu, 11 Aug 2011 08:36:41 -0700 (PDT) > Luke Bigum wrote: > >> Hi Arnau, > Hi Luke, > > [...] >> dump the d

Re: [Puppet Users] could not find file

2011-08-12 Thread Scott Smith
Hm, weird. Been running a small cluster on 2.7.1 for a month or so and haven't experienced this myself. On Aug 12, 2011 10:03 AM, "Craig White" wrote: > > On Aug 11, 2011, at 5:04 PM, Alan Batie wrote: > >> I'm playing with puppet 2.7.1 on centos 5.6; as I read the docs at >> http://docs.puppetlab

Re: [Puppet Users] Accessing node variable in class and using it in a conditionnal

2011-08-12 Thread Scott Smith
I experienced something similar to this. Try it without quoting the RHS. E.g if $smcvhost = belleville { } Also, what you are doing is code smell. On Fri, Aug 12, 2011 at 4:34 AM, Antoine Benkemoun < antoine.benkem...@gmail.com> wrote: > Hello, > > First of all, thank you for making the awesome

Re: [Puppet Users] Re: scoping question - I want a node specific "global" var

2011-08-16 Thread Scott Smith
Some times doing things the right way requires going through the pain of changing your current practices for the better. On Tue, Aug 16, 2011 at 9:24 AM, Rich Rauenzahn wrote: > On Tue, Aug 16, 2011 at 6:23 AM, jcbollinger > wrote: > [Lots of good ideas] > > > > Of those, I would recommend eith

Re: [Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Scott Smith
There should probably be a rake task for this (tbh, all that stuff should be rewritten, loading the whole Rails env to do it is ...ugly), but you can probably (caveat emptor, I don't know this table very well) do something like *delete from resource_statuses where time <= date_sub(now(), interval

Re: [Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Scott Smith
laim the space used by the datafiles is > to do a mysqldump and then restore after clearing out the older reports. > >-- Sandy > > On Aug 16, 2011, at 5:44 PM, Scott Smith wrote: > > > There should probably be a rake task for this (tbh, all that stuff should > be

Re: [Puppet Users] Dependency Cycle Weirdness

2011-08-17 Thread Scott Smith
Don't think you need to include if there is a require On Aug 17, 2011 9:50 AM, "Douglas Garstang" wrote: > If I have: > > class service::common { > file { > '/etc/foo': > ensure => directory; > > '/etc/init.d/ss-functions': > content => template('service/etc/init.d/ss-functions.erb'), > require =>

Re: [Puppet Users] Puppet agent hangs for over a minute, no info in --summarize

2011-08-17 Thread Scott Smith
Do you have any arp entries for which there is no PTR? On Aug 17, 2011 10:23 AM, "Dragonfyre13" wrote: > Hoping you guys might be able to help me out, I'm not sure what's > wrong but puppet agent hangs for over a minute, no resource spikes > (CPU, memory, etc all stay basically the same as without

Re: [Puppet Users] Re: Puppet agent hangs for over a minute, no info in --summarize

2011-08-17 Thread Scott Smith
> than happy to try. Not entirely sure to check existing PTR entries > against the ARP cache. > > On Aug 17, 12:54 pm, Scott Smith wrote: > > Do you have any arp entries for which there is no PTR? > > On Aug 17, 2011 10:23 AM, "Dragonfyre13" wrote: > > > >

Re: [Puppet Users] Re: Corrupted inventory.txt - how to rebuild?

2011-08-17 Thread Scott Smith
You guys do realize that it's not necessary to share node certs with puppetmasters if your CA is separated, right? It's signed for a reason :) On Aug 16, 2011 8:13 AM, "Luke Bigum" wrote: > Also I think Nigel posted a load balanced solution using entirely > Apache that's floating around on the li

Re: [Puppet Users] ssh_authorized_keys with array

2011-08-19 Thread Scott Smith
Use ssh::authorized_key On Aug 19, 2011 8:25 AM, "Tim Schmeling" wrote: > Hi, > > i have written a class called ssh to manage authorized_keys. > > First i define my authorized_keys in this array: > $authorized_key = { > tim_at_caesium => ".",} > > Then i have a define: > define authori

Re: [Puppet Users] ssh_authorized_keys with array

2011-08-19 Thread Scott Smith
Fuuu, responding to Puppet list on my phone is off limits from now on... On Aug 19, 2011 9:43 AM, "Stefan Schulte" wrote: > On Fri, Aug 19, 2011 at 01:22:46AM -0700, Tim Schmeling wrote: >> Hi, >> >> i have written a class called ssh to manage authorized_keys. >> >> First i define my authorized_ke

Re: [Puppet Users] Announce: Dashboard 1.2.0 is available now

2011-08-27 Thread Scott Smith
wat On Sat, Aug 27, 2011 at 4:36 AM, Tim Connors wrote: > On Fri, 26 Aug 2011, Michael Stahnke wrote: > > > * Dashboard now requires Ruby 1.8.7 to operate > > I've always found it odd that sysadmins would opt for such an unstable > language. One where minor revisions are often backwards incompat

Re: [Puppet Users] Need some advice: Clients that change name and IP address

2011-08-30 Thread Scott Smith
http://docs.puppetlabs.com/references/stable/configuration.html#certname On Tue, Aug 30, 2011 at 8:32 PM, Dan White wrote: > > On Aug 30, 2011, at 9:45 PM, Gary Larizza wrote: > > > > On Tue, Aug 30, 2011 at 8:43 PM, Dan White wrote: > >> >> On Aug 30, 2011, at 9:17 PM, Nigel Kersten wrote: >>

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
A directory is a directory. That a directory has a parent directory in which other files exist is pretty moot. On Thu, Sep 1, 2011 at 12:13 PM, Aaron Grewell wrote: > We don't put our manifests under /etc/puppet at all. It's convenient for > small installations but as we scaled up I found mixin

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control On Thu, Sep 1, 2011 at 11:47 AM, Douglas Garstang wrote: > I have a real-world, best practices, procedural question. > > How do you manage the he puppet master, under /etc/puppet, where multiple > people may be editing files? T

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
Also, setgid directories with umask 002 can help if you don't want to use a VCS. On Thu, Sep 1, 2011 at 11:47 AM, Douglas Garstang wrote: > I have a real-world, best practices, procedural question. > > How do you manage the he puppet master, under /etc/puppet, where multiple > people may be editi

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
I can't say I've ever met someone who had trouble with this. On Thu, Sep 1, 2011 at 1:10 PM, Aaron Grewell wrote: > Technically true, but administratively confusing IMHO. > > On Thu, Sep 1, 2011 at 1:08 PM, Scott Smith wrote: > >> A directory is a directory. T

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
orking copy, right? > > Doug. > > On Thu, Sep 1, 2011 at 1:09 PM, Scott Smith wrote: > >> http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control >> >> On Thu, Sep 1, 2011 at 11:47 AM, Douglas Garstang < >> doug.garst...@gmail.com> wrote: >

Re: [Puppet Users] Weird passenger problem

2011-09-01 Thread Scott Smith
md5sum your apache configs and compare, then diff if necessary On Thu, Sep 1, 2011 at 5:06 PM, Marek Dohojda wrote: > I have multiple server (rhel5.3) running puppet server. 2 of these > servers are also running passenger. However on the third server I am > running into a weird problem: > C

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Scott Smith
That's a feature in newish versions, right? On Sep 6, 2011 12:55 PM, "R.I.Pienaar" wrote: > > > - Original Message - >> > class platform::common { >> > file { >> > '/etc/somedir': >> > ensure => directory; >> > } >> > >> > class webapp::common { >> > require "platform::common" >> > file {

Re: [Puppet Users] Re: Community Package Repos for Puppet Labs products

2011-09-13 Thread Scott Smith
fpm ;) On Tue, Sep 13, 2011 at 12:35 AM, Michael Stahnke wrote: > On Mon, Sep 12, 2011 at 3:39 PM, Vlad wrote: > > Are there any plans to get the latest puppet and facter into > > apt.puppetlabs.com? > > > Of course. I started with yum simply because it was asked for more > loudly, and I know r

Re: [Puppet Users] Re: Facter variable $puppetversion

2011-09-13 Thread Scott Smith
If that were true the job of QA would be much easier On Sep 13, 2011 10:48 AM, "Douglas Garstang" wrote: > On Tue, Sep 13, 2011 at 10:46 AM, R.I.Pienaar wrote: >> >> >> - Original Message - >>> On Tue, Sep 13, 2011 at 1:45 AM, Luke Bigum >>> wrote: >>> > Err, what is that 0.25-5 doc fol

Re: [Puppet Users] Email Protection? (NON SUBJECT ORIENTED)

2011-09-15 Thread Scott Smith
I blame Luke himself. ...wait what?! It's google groups, bro On Sep 15, 2011 7:08 AM, "Matthew Hand" wrote: > Are you guys doing anything to protect our email addresses? Ever since I > made my first post on here, I have been getting some VERY malicious stuff > coming to my account? > > -- > You r

Re: [Puppet Users] debugging new custom type

2011-09-15 Thread Scott Smith
Hm, doesn't address your issue but you could probably do thus with just a definition instead of writing a new type. On Sep 15, 2011 1:22 PM, "Guy Matz" wrote: > hi! Does anyone have any advice on debugging a new custom type? > > Any thoughts would be greatly appreciated . . . > > BTW, I'm getting

Re: [Puppet Users] Source of external node data?

2011-09-15 Thread Scott Smith
I wrote my own with a Redis storage backend. So I use the external node exec terminus. On Sep 15, 2011 5:43 PM, "Aaron Grewell" wrote: > I'm pulling Hiera data inside the modules. It's less conceptually elegant > than passing the data but much easier to actually make work. > On Sep 15, 2011 2:33 P

Re: [Puppet Users] Re: Ubuntu Execution of '/etc/puppet/etckeeper-commit-pre' returned 1:

2011-09-16 Thread Scott Smith
That is a package used to store /etc in git. Slightly redundant if you ask me On Sep 16, 2011 7:33 AM, "Jussi Heinonen" wrote: > I ran into same problem after installing puppet as gem on Ubuntu 10.04. > I don't know what's the purpose of '/etc/puppet/etckeeper-commit-pre' but at > least such execu

Re: [Puppet Users] Puppet - Update a custom debian pkg

2011-09-20 Thread Scott Smith
Use apt On Sep 20, 2011 11:24 AM, "Sidarta" wrote: > Hello folks, > > We're starting using Puppet in our production environment and now > we're with some preformance issues. > For example, we've some large(200MB) recursives directories for > puppet's deploy, and that was totally inefficient. (Mini

Re: [Puppet Users] Root User

2011-09-23 Thread Scott Smith
You realize that you can set the RHS of the from address to an fqdn, right? On Fri, Sep 23, 2011 at 6:00 PM, Peter Berghold wrote: > Hi folks, > > I thought I'd get clever tonight and add to my base class for node > configuation the statement: > > user { root : comment => "Root User on ${hostname

Re: [Puppet Users] Re: Templating question:

2011-09-24 Thread Scott Smith
You must be new to Ruby. On Sep 24, 2011 3:30 PM, "Peter Berghold" wrote: > Hmmm looks suspiciously Perl-ish. ;) > > On Sep 24, 2011 4:19 PM, "Steve Snodgrass" wrote: > > Peter, I'm not sure about your specific question but there is a much > easier way of doing what you are trying to do. > >

Re: [Puppet Users] Trying to get a basic connection going between master and agent

2011-09-25 Thread Scott Smith
Is your Puppet client's hostname puppet-slave? On Sep 24, 2011 10:16 AM, "mlove" wrote: > Hi all, > > I am trying to get a simple example going with one master and one > puppet. I am on Debian and used apt-get install puppetmaster for the > master and apt-get install puppet for the puppet. I was a

Re: [Puppet Users] Re: Official puppetlabs position on cron vs puppet as a service?

2011-09-25 Thread Scott Smith
Ohad, was rand_fqdn not sufficient for you? On Sep 25, 2011 1:03 PM, "Ohad Levy" wrote: > On Sun, Sep 25, 2011 at 10:33 PM, treydock wrote: >> >> >> On Sep 24, 9:42 pm, Aaron Grewell wrote: >>> We had frequent inexplicable daemon crashes on Solaris, but not on RHEL5 (at >>> least not yet) . Gi

Re: [Puppet Users] [Dashboard] permission denied error when using apache

2011-09-27 Thread Scott Smith
Check the exception. It's trying to rm all.js On Sep 27, 2011 3:02 AM, "Tom De Vylder" wrote: > Hi all, > > I'm running into javascript errors using Puppet Dashboard behind an Apache2/Passenger setup. > > "Permission denied - /usr/share/puppet-dashboard/public/javascripts/all.js" > > The permissio

Re: [Puppet Users] SU on client servers

2011-09-27 Thread Scott Smith
I just change everyone's uidgid to 0:0 *trollface* -scott On Tue, Sep 27, 2011 at 11:31 AM, Richard Clark wrote: > On 27 Sep 2011, at 18:55, Damien Bridges wrote: > > > Hi All, > > > > How do you configure puppet nodes on the puppet master to allow SUing > > to root? I want

Re: [Puppet Users]

2011-09-29 Thread Scott Smith
You should totally boycott the list On Sep 29, 2011 7:15 AM, "Nathan Clemons" wrote: > *sigh* And how did these spammers know I was so flat-chested? > > Seriously, can you guys enlighten us as to what's being done to prevent spam > coming in on the list? It's been pretty prevalent lately. I'm not

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Scott Smith
Except that is the fqdn. On Sep 29, 2011 7:05 PM, "Doug Balmer" wrote: >> >> but I don't think that RFC quoting alone is going to give us the right >> answer as to whether we should do it or not. >> > > 100% agree. > > To add to my point, facter should be reporting facts. If the hostname, > albeit

Re: [Puppet Users] Re: weekend maintennce schedule

2011-10-01 Thread Scott Smith
It has been, that's what cron does. On Sat, Oct 1, 2011 at 6:51 AM, Kanishka Hettiarachchi wrote: > Thanks. > I was hoping someone may have solved this issue. We intend to run > reporting ($noop=true) every (say hour) and action/change only during > weekend maintenance schedule. > > > > On Sep 30

Re: [Puppet Users] apply.pp module missing?

2011-10-02 Thread Scott Smith
you should see it via gem or your package manager, depending on how it was installed. On Sun, Oct 2, 2011 at 3:29 PM, olympus stance wrote: > Hello Dan, > > It seems that you are correct, I couldnt find any particular command to > find out the version number, but looking at the changelog which is

Re: [Puppet Users] AW: How best to monitor puppet?

2011-10-04 Thread Scott Smith
It doesn't matter if puppetmasterd or puppetd are running and working if your clients are failing catalog runs. Send reports, write a check that alerts on N hosts with failed reports over X timeframe or something. On Tue, Oct 4, 2011 at 8:09 PM, Tim Connors wrote: > On Tue, 4 Oct 2011, Bernd Ad

Re: [Puppet Users] Re: I can't seem to create mountpoint and change permissions after mounting in 2.7.3

2011-10-06 Thread Scott Smith
Not really On Wed, Oct 5, 2011 at 8:54 PM, Chris McDermott wrote: > I haven't used them yet, but isn't this what stages are meant to > facilitate? > > http://docs.puppetlabs.com/references/stable/metaparameter.html#stage > > -- > You received this message because you are subscribed to the Google

Re: [Puppet Users] /etc/init.d/mysql =fail mysqld=success

2011-10-10 Thread Scott Smith
1) not a puppet problem 2) run initdb On Oct 10, 2011 7:47 PM, "John Bower" wrote: > Hello. > > This is my mysql-server.pp file, both master and client are runing > ubuntu. > > > > > class mysql-server { > > package { "mysql-server": ensure => installed } > package { "mysql

Re: [Puppet Users] Re: Official puppetlabs position on cron vs puppet as a service?

2011-10-10 Thread Scott Smith
Most things are ok if you only have 10 servers On Oct 8, 2011 1:22 PM, "Chris Phillips" wrote: > My take on it is to run it from our nagios server. What better way to > monitor the puppet runs than by executing that run as part of the check? > retry intervals also help push changes out much quick

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Scott Smith
Use fpm. On Tue, Oct 18, 2011 at 1:21 PM, Dan White wrote: > Are there any exapmples out there that show an intelligent way to do this ? > > My searches are not turning up anything useful > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none

Re: [Puppet Users] 2.7.2 or higher repository for Ubuntu 10.04

2011-10-20 Thread Scott Smith
Use fpm. On Thu, Oct 20, 2011 at 1:53 PM, Dan Sheffner wrote: > *ruby 1.9.2 not puppet 1.9.2 > > > On Thu, Oct 20, 2011 at 3:51 PM, Dan Sheffner wrote: > >> I'm compiling from source w/ rvm, and puppet 1.9.2, then installing puppet >> through gems. I might be able to publish my python script t

Re: [Puppet Users] Restore Storconfig Data

2011-10-20 Thread Scott Smith
Run puppet. On Thu, Oct 20, 2011 at 8:57 PM, dime cyborgian wrote: > I Get the initial table structure. But the tables are not populated with > the data such as hosts, resources... etc. > > > > > On Thu, Oct 20, 2011 at 5:30 PM, Bernd Adamowicz < > bernd.adamow...@esailors.de> wrote: > >> If you

Re: [Puppet Users] Re: Puppet 2.7 allows dash in variable names: bug or feature?

2011-10-21 Thread Scott Smith
Funny, I accidentally avoided problems caused by this change because I always suffix variables when possible. On Fri, Oct 21, 2011 at 10:49 PM, Jason Koppe wrote: > We have interpolations like "$name-tomcat" all over our manifests. > It's possible to adjust them all to "${name}-tomcat" but it's n

Re: [SPAM] Re: [Puppet Users] help with the firewall puppet forge module

2011-10-25 Thread Scott Smith
FWIW, I use this as `puppetlabs-firewall' and the resource name `firewall'. On Tue, Oct 25, 2011 at 6:54 PM, Ken Barber wrote: > Did you run puppet agent -t on your master? > > Check your /var/lib/puppet/lib/puppet/util directory ... and let me > know if there is a copy of firewall.rb in there b

Re: [Puppet Users] serialized or limited parallelism

2010-10-11 Thread Scott Smith
One word: Idempotence. If you have to do what you are asking, ur doin' it wrong. On Mon, Oct 11, 2010 at 2:09 PM, Philip Brown wrote: > I've been poking around the web docs, and dont see an answer to this > yet: > > Is there any pre-existing functionality in puppet, to allow limiting > paralleli

Re: [Puppet Users] Puppet client log events, centralized?

2010-10-13 Thread Scott Smith
Syslog server On Wed, Oct 13, 2010 at 4:09 PM, Forrie wrote: > I've noticed that events for puppet client are logged locally (I'm > just starting out with puppet). Is there a way to have these events > sent to a central parser so they might be easily parsed/sorted/acted- > upon? > > I probably

Re: [Puppet Users] Puppet Application Server Deployment

2010-10-19 Thread Scott Smith
I highly suggest you refrain from using Puppet to manage service-level applications. On Mon, Oct 18, 2010 at 1:19 AM, ajax wrote: > Hello all, > > I wanted to know can i deploy Application Severs like JOnAS (java) > using Puppet from the server. > > > -- > You received this message because you a

Re: [Puppet Users] /etc/puppet

2010-11-04 Thread Scott Smith
http://docs.puppetlabs.com/guides/introduction.html On Thu, Nov 4, 2010 at 2:27 PM, Russell Perkins < rperk...@digitalshiftstudios.com> wrote: > I installed factor and puppet but it didn't seem to make an /etc/ > puppet/ is this something I have to manually create or did I mess up > my install so

Re: [Puppet Users] Can one definition require another definition?

2010-11-16 Thread Scott Smith
defines are neither macros nor objects, they are resources On Nov 16, 2010 12:16 PM, "Russell Jackson" wrote: > On 11/16/2010 11:33 AM, Nan Liu wrote: >> On Tue, Nov 16, 2010 at 11:21 AM, Yushu Yao wrote: >>> Hi Experts, >>> >>> I am in a situation that need one definition to require another (to e

Re: [Puppet Users] Multiple CA / Puppet master environment

2010-11-17 Thread Scott Smith
nfs mount the puppetmaster ssl dir. seperate puppetca (set on clients) play with it and you'll figure it out :) On Nov 11, 2010 9:18 AM, "luke.bigum" wrote: > Hi, > > Does anyone know if this document is up to date (besides the comment > at the top saying it's not): > > http://projects.puppetlabs.

Re: [Puppet Users] Multiple CA / Puppet master environment

2010-11-17 Thread Scott Smith
Oh, that's for sharing the puppetmaster SSL keypair between each other, that's all. On Nov 17, 2010 3:53 PM, "Nigel Kersten" wrote: > On Wed, Nov 17, 2010 at 1:29 PM, Scott Smith wrote: >> nfs mount the puppetmaster ssl dir. seperate puppetca (set on clients) play &g

Re: [Puppet Users] Multiple CA / Puppet master environment

2010-11-18 Thread Scott Smith
non-CA servers there should > be no need to ever write to that directory. > > > On Wed, Nov 17, 2010 at 7:55 PM, Scott Smith wrote: > > Oh, that's for sharing the puppetmaster SSL keypair between each other, > > that's all. > > > > On Nov 17, 2010 3:53 PM,

Re: [Puppet Users] networkinterface type proposal

2011-03-01 Thread Scott Smith
Probably better to use network::interface, so you can add support for other network resources. Also: https://github.com/ohlol/puppet-network Old, out of date, not complete, but it's a start. On Tue, Mar 1, 2011 at 5:50 PM, Eric Sorenson wrote: > Hi - I've searched around and haven't found any

Re: [Puppet Users] puppetca and /etc/puppet/ssl

2011-03-31 Thread Scott Smith
Set ssldir? On Mar 31, 2011 1:41 PM, "Douglas Garstang" wrote: > All, > > I have --confdir=/etc/puppet/common in my /etc/init.d/puppetmaster and > /etc/init.d/puppet files, vardir set to /var/lib/puppet in > /etc/puppet/common/puppet.conf, and yet, every time I run puppetca it > creates /etc/puppe

Re: [Puppet Users] ssh_authorized_keys - not adding keys ... (??)

2011-04-01 Thread Scott Smith
Don't you want to require => User["test.user"] in your @ssh_authorized_keys resource? On Apr 1, 2011 12:24 PM, "Nick Steel" wrote: -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.co

  1   2   3   >