Re: [Puppet Users] questions about verifying template paths and variables with rspec

2013-09-23 Thread Ashley Gould
On Wed, Sep 18, 2013 at 09:52:27AM -0700, Corey Osman wrote: > Hi, > > How can I verify the template exists in the given path? Example, > > Given the following in my manifest: > > if $somevar == 'true' { > $templatefile='mymodule/mytemplate.xml.erb' > } > else { > $templatefile='mym

Re: [Puppet Users] Re: The security of the puppet master

2013-09-17 Thread Ashley Gould
On Tue, Sep 17, 2013 at 06:18:48AM -0700, jcbollinger wrote: > > > On Tuesday, September 17, 2013 1:20:40 AM UTC-5, huangm...@gmail.com wrote: > > > > I want the puppetmaster can sign the manifest. avoid some guys publish > > dangerous manifest to agent. like exec{"foo": command=>"rm / -rf";} >

Re: [Puppet Users] Apache module

2013-01-29 Thread Ashley Gould
Hi, On Mon, Jan 28, 2013 at 10:05:21PM -0800, Alex Harvey wrote: > Hi all, > > I've spent a bit of time today investigating whether or not I can use the > Puppet Labs Apache module - > https://forge.puppetlabs.com/puppetlabs/apache > > I've noted this helpful blog post - > http://blog.akquinet.

[Puppet Users] How do I manage puppet.conf? Let me count the ways.

2013-01-17 Thread Ashley Gould
In a recent post Nikola Petrov summerized methods for managing config files such as puppet.conf: * use augeas with virtual resources * use the concat module * use the standard template function with multiple arguments; look at http://docs.puppetlabs.com/guides/templating.html and scroll down to

Re: [Puppet Users] ssh::auth and other ways of managing ssh keys

2013-01-14 Thread Ashley Gould
On Mon, Jan 14, 2013 at 08:41:38AM +1000, Peter Brown wrote: > On 12 January 2013 01:53, Jist Anidiot wrote: > > > With puppet 3.x I was wondering if the ssh::auth module ( > > http://projects.puppetlabs.com/projects/puppet/wiki/Module_Ssh_Auth_Patterns) > > is still the preferred way of creating

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-11-30 Thread Ashley Gould
On Mon, Nov 26, 2012 at 10:35:55PM -0800, Niels Abspoel wrote: > Darin has given the right answer, > > Just branch the package, and submit a request. > Don't forget to add a comment in puppet.changes file before you submit it. > Thank you for this tip. OBS is sweet, but I'm still feeling my way

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-11-21 Thread Ashley Gould
Hello Niels, I found this thread and I am installing puppet-3.0.1-2.1.x86_64.rpm from http://download.opensuse.org/repositories/systemsmanagement:/puppet/SLE_11_SP2/ The init script /etc/init.d/puppet in this rpm has an error and will not run on puppet 3.0, because the script sets the puppet bin

[Puppet Users] agent runs mysteriously truncated

2012-01-30 Thread Ashley Gould
Recently I rigged up a script to email me a list of agents that did not send any reports to puppet server in last 24 hours. Each night it lists about a dozen agents, mostly but not always the same ones. They share a common pattern: Agent is running in deamon mode but makes no updates. Each time

Re: [Puppet Users] Re: tagmail issue

2012-01-11 Thread Ashley Gould
Hi Nan, On Tue, Jan 10, 2012 at 11:56:20PM -0600, Nan Liu wrote: > See below: > > On Tue, Jan 10, 2012 at 2:18 PM, Ashley Gould wrote: > > I have found a work around, but I would still like to understand what > > is correct behavior. > > Not sure what you mean, th

[Puppet Users] Re: tagmail issue

2012-01-10 Thread Ashley Gould
- common - suse - node - default time: 2012-01-10 03:58:15.641953 -08:00 Clearly this does not correspond to any tagmail documentation, and it seems a round-about way to configure things. Is this a recommended approach? On Fri, Jan 06, 2012 at 05:45:42PM -0800,

[Puppet Users] tagmail issue

2012-01-06 Thread Ashley Gould
Hi list, I am setting up tagmail. I have it working fine for loglevel tags such as "all" and "err" and "notice". puppetmaster send email, and I recieve them. all good. but when I setup tagmail for user defined tags no email is sent. (I varified by checking postfix logs on the puppetmaster se

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-17 Thread Ashley Gould
ude firewall_wrapper > kbarber:tmp ken$ puppet apply -v inherits.pp > info: Applying configuration version '1308330991' > notice: 22 100 2323 > notice: > /Stage[main]/Firewall/Firewall::Firewall_conf[default]/Notify[msg1]/message: > defined 'message' as '

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-16 Thread Ashley Gould
On Wed, Jun 15, 2011 at 07:48:50PM -0700, Ashley Gould wrote: > > On Wed, Jun 15, 2011 at 06:13:52PM +0100, Ken Barber wrote: > > Certainly works for me in a simplified example ... can you simplify > > your example so it just does a notify? > > > > class fire

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-15 Thread Ashley Gould
ot using cache on failed catalog err: Could not retrieve catalog; skipping run --- looks like a syntax error, but I don't see it. line 93 is    $services   = undef > > ken. > > On Wed, Jun 15, 2011 at 5:41 PM, Ashley Gould wrote: > > On Wed, Jun 15, 2

[Puppet Users] dashboard ENC and parameterized classes

2011-06-14 Thread Ashley Gould
Looking at the release notes for dashboard 1.1.1, I see that param classes are not yet supported within dashboard's external node classifier feature. A few months ago I saw a post suggesting the following work around until there is support: class foo ($var="default") { notify { $var: } } Para

Re: [Puppet Users] Re: parameterized classes and variable inheritance

2011-03-22 Thread Ashley Gould
On Mon, Mar 21, 2011 at 01:05:56PM -0700, jcbollinger wrote: > > On Mar 21, 1:20 pm, Ashley Gould wrote: > > Please forgive my ignorance.  I find myself, a linux admin brought > > up on howtos and books with animals on the cover, suddenly plunged > > by puppet into a

Re: [Puppet Users] Re: parameterized classes and variable inheritance

2011-03-21 Thread Ashley Gould
On Mon, Mar 21, 2011 at 04:23:40AM -0700, Bill Proud wrote: > The following would work: > > node default { > class { sudoers: } > } > > node 'sl11lab02' { > class { sudoers: additional_rules => [ "$rules_uas" ] } > } > This does work, but I lose inheritance from node default. In fact, t

Re: [Puppet Users] Re: parameterized classes and variable inheritance

2011-03-21 Thread Ashley Gould
On Mon, Mar 21, 2011 at 07:47:14AM -0700, jcbollinger wrote: > > Parameterized classes are not resources any more than ordinary classes > are, syntax similarity notwithstanding. You cannot override the > parameters of a parameterized class. > > Defined types are effectively custom resource type

Re: [Puppet Users] Re: parameterized classes and variable inheritance

2011-03-18 Thread Ashley Gould
On Fri, Mar 18, 2011 at 11:15:56AM -0700, jcbollinger wrote: > > > On Mar 17, 6:03 pm, Ashley Gould wrote: > > I'm hoping to avoid using subclasses, because there would have to > > be oodles of them to accomodate the all the variations between nodes. > >

[Puppet Users] parameterized classes and variable inheritance

2011-03-17 Thread Ashley Gould
I am exploring usage of parameterized classes. I hit a wall when trying to override values of parameters in a node definition that inherits the class from a parent node. Is there a way to do this, or must I include the class only in the child node? I'm hoping to avoid using subclasses, because

Re: [Puppet Users] nodes: internal, external, or LDAP?

2011-03-09 Thread Ashley Gould
On Mon, Mar 07, 2011 at 09:23:58PM -0800, Douglas Garstang wrote: > On Mon, Mar 7, 2011 at 4:06 PM, LarsP wrote: > > > > > I was told recently at a Puppet workshop that using LDAP for managing > > node information is not advised. Anybody care to comment? What is it > > about using LDAP that's not

Re: [Puppet Users] Making dependencies work with variable resource names

2011-02-12 Thread Ashley Gould
On Fri, Feb 11, 2011 at 12:42:58PM -0500, Matthew Pounsett wrote: > I'm having an issue solving dependencies inside defines, where the paths to > various resources are variable. It seems like puppet isn't expanding all of > the variables when it constructs the catalog, so it's unable to find the

Re: [Puppet Users] convert yum repos into manifest

2011-02-12 Thread Ashley Gould
ore (0.25.5). > It hasn't been updated it for 2.6.x yet, works fine, but I noticed > some warnings about 'audit' when I tried ralsh on it. > > > On 11/02/11 2:27 AM, Ashley Gould wrote: > >hey Michael, > > > >Where did you get zypprepo type? Did you

Re: [Puppet Users] convert yum repos into manifest

2011-02-10 Thread Ashley Gould
hey Michael, Where did you get zypprepo type? Did you write it? Can you post it? On Wed, Feb 09, 2011 at 11:30:25AM +1100, Michael Knox wrote: > Try ralsh yumrepo > > Just discovered that ralsh can even use custom types out of my > modules ... cool > > $ ralsh zypprepo > zypprepo { 'repo-oss

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-02-02 Thread Ashley Gould
On Mon, Jan 31, 2011 at 06:27:20PM -0800, Daniel Pittman wrote: > In the longer term I would hope to have that information pushed out > from the puppet system, so that if a node *should* be joined with > centrifyDC puppet will make it so, but until then what you have is > great. I have considered

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-01-31 Thread Ashley Gould
fo { source => "puppet:///pam/centrify", } else { source => "puppet:///pam/no_centrify", } recurse => true, } } On Mon, Jan 31, 2011 at 03:46:32PM -0800, Daniel Pi

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-01-31 Thread Ashley Gould
On Mon, Jan 31, 2011 at 02:14:29PM -0800, jcbollinger wrote: > > On Jan 31, 3:12 pm, Ashley Gould wrote: > > if [ "/usr/bin/my_harmless_binary 2>&1 >/dev/null" ]; then > >   echo "my_harmless_binary succeeded" > >   cp /tmp/file1 /data/

[Puppet Users] using return value of a shell command as a puppet conditional

2011-01-31 Thread Ashley Gould
Hi all, My first post. I am just getting started with puppet and have made good progress with some basics using templates and files. I would like to perform and an action based on whether or not a particular system binary executes successfully, but I don't see an obvious way to set puppet condit