On Sat, Apr 3, 2010 at 3:46 AM, Eric Shamow wrote:
> A not-so-elegant solution is to write your own yum provider that
> allows you to do this. In my case I found one online -- if you google
> yum_plus.rb you should be able to find it. If not let me know and
> I'll post the work here.
>
> On Thu
On Tue, Jun 9, 2009 at 6:54 PM, David Lutterkort wrote:
>
> On Tue, 2009-06-09 at 11:57 -0400, Bryan Kearney wrote:
> > Ok.. lets try this (lutter knows this voodoo better)
>
> It's not voodoo, it's XPath ;)
>
> > "match *[alias ='usb-storage'] size = 0 "
>
> That almost works, though shouldn't t
On Wed, Jun 10, 2009 at 9:15 AM, Bryan Kearney wrote:
>
> lance dillon wrote:
> > O
> >>
> >> That doesn't quite work either:
> >
> > ### print /files/etc/modprobe.conf
> > ...
> > /files/etc/modprobe.conf/alias[5] = "usb-
On Wed, Jun 10, 2009 at 12:08 PM, paul matthews <
paulsmatth...@googlemail.com> wrote:
> An alternate, non Puppet method is to add a pam_mkhomedir module to
> /etc/pam.d/system-auth (on a RedHat machine at least) by including the
> following line:-
>
> session required /lib/security/$IS
On Wed, Jun 10, 2009 at 12:16 PM, Jason Antman wrote:
>
> Unfortunately I haven't been able to find anything in the docs...
>
> I just built a new puppetmaster to replace my testing install on an old
> box. The hostname is different, and obviously the master certificates
> are different. What need
On Fri, Jun 19, 2009 at 2:41 PM, RijilV wrote:
>
> 2009/6/19 Swati Tiwari :
> > Hey Guys,
> >
> > I am sorry if this sounds silly but I am new to puppet. I am trying to
> > append a particular line to the apt.conf file on all the clients that are
> > running puppetd. Is there any way to do this u
How can I have a module/class that is dependent on another class?
Say, /etc/puppet/modules:
module1
module2
in module2/manifests/init.pp
class module2 {
file { # blah blah blah
require => Class["module1"],
}
package { }
}
Usually this gives me an error (can't remember what; I'm writ
I need to be able to include a line in a template, based on presence and
value of a variable, something like this:
# file.erb
blah
blah blah
<% if role == "fast" -%>
this line is here now
<% end -%>
I only want the line to be included if $role exists and is equal to fast.
If $role doesn't exis
Try with something like:
>
> <%- if role == "fast" -%>
><%- line = "The line you want to print" -%>
> <%- end -%>
> <%= line -%>
>
>
>
> A bit to quick there. For this to work you have to feed the template with
> the variable. You can just feed $role with a default value. eg default..
>
>
The
I tried to post this to puppet-dev but it doesn't look like I have
permission, so here it is on puppet-users for anybody to do something with.
There seems to be a typo in the following file:
[riffr...@hobbes puppet-0.25.0]$ diff -u ext/nagios/check_puppet.rb.orig
ext/nagios/check_puppet.rb
--- ext
On Thu, Nov 12, 2009 at 2:36 PM, Russ Allbery wrote:
>
> Nigel Kersten writes:
>
> > Ugh. This is particularly sucky, and I vote this fact needs to be fixed
> > for this irrespective of the plugin loading issue.
>
> > The problem is:
>
> > if Facter.value(:lsbdistid) == "Ubuntu"
> >
On Mon, Apr 6, 2009 at 12:46 PM, Trevor Vaughan wrote:
>
> It's because 'service puppetd status' reports that puppetd is running
> while puppetd is running in test mode.
>
> Trevor
I had to replace the puppet init script to fix the status problem. I have
it as a recipe to automatically replace
You could also use augeas to manage those options.
On Thu, Jun 4, 2009 at 7:12 PM, Mike Renfro wrote:
>
> On 6/4/2009 5:59 PM, Brandon Whalen wrote:
> > I've spent some time looking at the example recipes and reading the docs
> on
> > a problem, but I'm still stumped. I'm trying to add some opti
I need to be able to add:
alias usb-storage off
to /etc/modprobe.conf
I have this so far:
augeas { "usb-storage":
context => "/files/etc/modprobe.conf",
changes => [ "set alias[last()+1] usb-storage",
"set alias[last()]/modulename off",
],
onlyif =>
On Tue, Jun 9, 2009 at 11:16 AM, Bryan Kearney wrote:
>
> lance dillon wrote:
> > I need to be able to add:
> >
> > alias usb-storage off
> >
> > to /etc/modprobe.conf
> >
> > I have this so far:
> >
> > augeas { "usb-storage
On Tue, Jun 9, 2009 at 11:57 AM, Bryan Kearney wrote:
>
> lance dillon wrote:
> > On Tue, Jun 9, 2009 at 11:16 AM, Bryan Kearney
> wrote:
> >
> >> lance dillon wrote:
> >>> I need to be able to add:
> >>>
> >>> alias usb-storag
On Tue, Jun 9, 2009 at 1:09 PM, Bryan Kearney wrote:
>
> Bryan Kearney wrote:
> >> thanks
> >
> >
> > ok.. I think this is it in augtool:
> >
> > match /files/etc/modprobe.conf/*[.="foo"]
> >
> > so.. in the plugin you can do
> >
> > 'match /files/etc/modprobe.conf/*[.="foo"] size = 0'
> >
>
> mo
> > The problem with modprobe.conf is that it is more like:
> >
> > command args
> >
> > than
> >
> > key value
> >
> >
> > key value usually has unique keys, but command args doesn't.
> >
> > It's kind of weird A lot of those commands work on something else, say
> > /etc/hosts, or /etc/fstab, som
18 matches
Mail list logo