[Mageia-sysadm] [1267] update init.pp to split script in different classes

nicolas vigier boklm at mars-attacks.org
Tue Mar 8 19:49:41 CET 2011


On Tue, 08 Mar 2011, Damien Lallement wrote:

> Le 04/03/2011 12:24, Michael Scherer a écrit :
>> Le jeudi 03 mars 2011 à 19:01 +0100, root at mageia.org a écrit :
>>> Revision: 1267
>>> Author:   dams
>>> Date:     2011-03-03 19:01:31 +0100 (Thu, 03 Mar 2011)
>>> Log Message:
>>> -----------
>>> update init.pp to split script in different classes
>>
>>
>>> +    class champagne inherits base {
>>> +        package { ['wget','php-mysql']:
>>> +            ensure =>  installed
>>> +        }
>>
>> IMHO, a better class name that "champagne" can be found. Is it used for
>> test, production ?
>
> It's in production.
> I called it "champagne" as this is the "blog" part for this machine. The 
> "user" class is for both "krampouezh" and "champagne". And if needed I was 
> thinking about creating a class "krampouezh".
> I don't see a better name for it. I thought it was clear enough. :-)
> Any proposals?

Names should not be hostnames, but name of what the class is doing (as
we may move class to other servers later).

For blogs, it seems there is two different things :
 - install of blog software (wordpress)
 - install of a script to check new blog posts

So I think it should be done using two different modules. One can be
called wordpress, as it is doing an install of wordpress. The other one
can be called blogcheck (or maybe you can find a better name for this).
The 2nd one is specific for Mageia, so it should probably go to
deployement instead of modules directory.



More information about the Mageia-sysadm mailing list