cernops / puppet-motd

Manages entries dynamically in a /etc/motd file with puppet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation for use with hiera?

westbywest opened this issue · comments

Is supplying header and news content via hiera a supported method of specifying MOTD content? Peering into the manifest code suggests that something like this will work, at least for headers, but I'm not sure if this usage is one you anticipate.


---
motd_header :
  - "Welcome to %{::fqdn}, %{::operatingsystem}, %{::operatingsystemrelease}."
  - "This machine is managed by puppet.  Please tread lightly."

This is exactly what we use:

motd_header:
   - Welcome to %{fqdn}, %{operatingsystem}, %{operatingsystemrelease}
   - Archive of news is available in /etc/motd-archive
   - "Reminder: You have agreed to comply with the CERN computing rules"
   - http://cern.ch/ComputingRules
   - "Puppet environment: %{environment}"
   - "Puppet hostgroup: %{hostgroup}"