On Mon, 2010-02-22 at 10:45 +0100, Frederik Wagner wrote:
> MODULES_LOADED_ON_BOOT="module1 module2"
> 
> My goal ist to have a type, which can append a "module3" to this
> entry, or replace the whole list, etc. (to stay generic for different
> files in /etc/sysconfig).

If you can live with replacing the entire list, you can just use augeas:

        augeas { "my_boot_modules":
                changes => "set 
/files/etc/sysconfig/kernel/MODULES_LOADED_ON_BOOT '$mymodules'"
        }
        
If you need to build the list up from something else, you might want to
wrap the above into a define that computes $mymodules from that
something.

There's also ways to make this just append a specific module, but that
would require some work on the Augeas side.

David


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to