Version information
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet 3.x
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'fvoges-motd', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
#motd
##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 :)
0.3.0 / 2015-03-26
- Removed tests for old ruby/puppet versions
- Disabling all the hiera spec helper stuff (not needed and causing issues with Travis-ci)
- Adding some extra facts to make the spec tests work with strict variables turned on
- Some gems were in the wrong place and causing travis-ci build failures
- typo
- First pass at adding spec tests
- concat::target no longer uses the ensure attribute to specify the fragment content
- motd::fragmet nows includes main class to ensure that it's in the catalog
- Added Travis-CI badge
0.2.2 / 2015-03-02
- Version 0.2.2
- Fixed minor issues with formatting
0.2.1 / 2015-03-02
- Version 0.2.1
- Some minor cosmetic changes to README.md
- Improved docs
- Added more documentation
0.2.0 / 2015-02-25
- Moved to metadata.json
- Added pkg to .gitignore (we don't want the packaged module in the repo)
- Fixing puppet-lint warnings
0.1.0 / 2014-05-09
- Fixed typo
- Added stdlib dependency
- Initial commit
Dependencies
- puppetlabs/stdlib (>= 2.4.0)
- puppetlabs/concat (>= 1.1.1)