On 10/21/16 4:03 PM, warron.french wrote:
> Hello all,
>    I have created a puppet module (and class) that manages the content
> of the banners of systems.
> 
> By banners, I am referring to:
> 
>   * /etc/issue
>   * /etc/issue.net <http://issue.net>
>   * /etc/motd
> 
> These are all controlled by a class in my module named
> *mas_shared_all_bannersmgmt *with the class for those three files named
> - *mas_shared_all_bannersmgmt::text.*
> 
> I have another empty class currently called
> *mas_shared_all_bannersmgmt::gdm* and I want it to be able to control
> the banner at the login prompt while logging in for Gnome Desktop.
> 
> I will also eventually want to create another class called
> *mas_shared_all_bannersmgmt::kdm* and it will be in association with
> commands for KDE desktop environments ( I know a little redundant), as
> managed by KDM.
> 
> Currently, I don't know if the same login banner (Legal Notice Text,
> whatever..) if set for Gnome will work for KDE... I will learn after I
> figure this out for Gnome (*GDM*).
> 
> Can someone please point me in the best direction to accomplish this?  I
> haven't found a single Puppet Module at the forge, and there isn't a
> resource for KDM/GDM type of behaviors either.
> 
> After I get it working I intend to share it with the Puppet Forge, after
> I figure out how to make that happen as well.
> 
> 
> Thanks for the advice and guidance,
> 
> --------------------------
> 
> Warron French

Hi Warron,

Suggest using Ericsson/motd[1]. It manages just those three files, is
actively maintained, has tests and works on a ton of platforms.

If you are using the roles and profiles approach, you could have
different data in Hiera depending on your profile and have profiles for
GDM, KDM, etc.

[1] - https://github.com/Ericsson/puppet-module-motd

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9430bf7a-b4aa-7fd5-f410-ff4f7e5d230c%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to