Forge Home

motd

Simple MOTD Puppet module

16,920 downloads

2,217 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.0.0 (latest)
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.3.1 (deleted)
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Mar 26th 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fvoges-motd', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fvoges-motd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fvoges-motd --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: motd, unix

Documentation

fvoges/motd — version 0.3.0 Mar 26th 2015

#motd

Build Status

##Overview

This is a simple motd module for Puppet. It's heavily based on the example from puppetlabs-concat.

##Module Description

This module allows you to build /etc/motd in 'chunks'. So you can add content from different modules.

##License

Apache License, Version 2.0

Usage

Class: motd

This is a simple class that manages /etc/motd using puppetlabs-concat.

Parameters

#####motd_file

MOTD file. Default value: '/etc/motd'

#####motd_local_enabled

If true, Puppet will append the contents of /etc/motd.local. The content of /etc/motd.local is not managed by Puppet.

#####add_puppet_warning Adds a warning to the top of the MOTD ("${fqdn} is managed by Puppet").

Defined Type: motd::fragment

Defined type to manage fragments of /etc/motd.

Parameters

#####content

Content of the fragment. Default value: $title.

#####order

By default all files gets a 10_ prefix in the directory you can set it to anything else using this to influence the order of the content in the file

Examples

 class { 'motd':
   motd_local_enabled => false,
   add_puppet_warning => true,
 }

 motd::fragment { 'extra motd':
   content => "This will be addded to /etc/motd\n",
 }

 motd::fragment { 'extra motd from template':
   content => template('some/template.erb'),
 }

##Contact Federico Voges fvoges@gmail.com

##Support

Please report issues on the project page.

Pull requests are welcome :)