[Puppet Users] Re: What to do if something is not required on the clients?

2011-04-16 Thread Sans
On Apr 16, 2:36 am, Patrick wrote: > > > "ensure => absent" uses "rpm -e' to remove a package, which is a > > problem for the packages with related dependencies. Is there any way > > to use "yum remove" to do that? Cheers!! > > It's been too long since I use rpm.  Are you saying it refuses to re

[Puppet Users] How to create multi-option yum repo file?

2011-04-16 Thread Sans
Dear all, How can I create a yum repo like this? [rpmforge] name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 [rpmforge-extras] name = RHEL $relea

Re: [Puppet Users] How to create multi-option yum repo file?

2011-04-16 Thread Steven Acres
On Sat, Apr 16, 2011 at 7:07 AM, Sans wrote: > Dear all, > > How can I create a yum repo like this? > > [rpmforge] > name = RHEL $releasever - RPMforge.net - dag > baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge > enabled = 1 > protect = 0 > gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KE

[Puppet Users] Installing port on FreeBSD

2011-04-16 Thread fafaforza
New user trying to get a port to compile: I tried searching but all I get are links to the FreeBSD port of puppet. Easier to find a needle in a haystack. A class has: exec { "port-sudo": cwd => "/usr/ports/security/sudo", environment => "BATCH=yes", command =

[Puppet Users] is class inheritance misbehaving?

2011-04-16 Thread praddy
Hey Guys, I was experimenting with puppet lang ( as in just learning ), found something like below happening, i couldn't explain it to myself so thought asking here. I have installed puppet 2.6.7 using rubygems. here's the manifest: $ cat 7.stage_run_example.pp stage {"first": before => Sta

[Puppet Users] Defined types and stages

2011-04-16 Thread flzz
Greetings, I'm doing some experimentation with stages and can't quite figure out how to leverage stages when calling a defined type from within a node definition. For example if I have a class defined class hosts { define entry ($val) { # set some stuff in etc hosts } } node mynode {

[Puppet Users] Re: puppet can not set password for a local user account. Plus puppet can not add members to a group

2011-04-16 Thread hyzhang
Hey Post back to the group .. you'll probably get more out of it :) Anyways, on that page you linked to , there is a table: http://docs.puppetlabs.com/references/latest/type.html#user-3 You are using the useradd provider because puppet is using that provider behind the scenes. I know it sounds c