Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.0.0 < 7.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'fvoges-motd', '2.0.0'
Learn more about managing modules with a PuppetfileDocumentation
Puppet MOTD module
WARNING: Version 2.0 drops support for Puppet 3.x.
Overview
This is a simple message of the day 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'. That way, you can add content from different parts in your code.
License
Apache License, Version 2.0
Usage
See REFERENCE.
Contact
Federico Voges fvoges@gmail.com
Support
Please report issues on the project page.
Pull requests are welcome :)
Reference
Table of Contents
Classes
motd
: This is a simple class that manages /etc/motd using puppetlabs-concat
Defined types
motd::fragment
: Defined type to add fragments to /etc/motd
Classes
motd
Copyright 2014 Federico Voges, unless otherwise noted.
Examples
Simple example
class { 'motd':
motd_local_enabled => false,
add_puppet_warning => true,
}
Parameters
The following parameters are available in the motd
class.
motd_file
Data type: Stdlib::Unixpath
Absolute path to MOTD file
Default value: '/etc/motd'
motd_local_enabled
Data type: Boolean
If true, Puppet will append the contents of /etc/motd.local. The contents of /etc/motd.local are not managed by Puppet
Default value: true
add_puppet_warning
Data type: Boolean
Adds a warning to the top of the MOTD ("${trusted['certname']} is managed by Puppet")
Default value: false
Defined types
motd::fragment
Defined type to add fragments to /etc/motd
Examples
Simple example
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'),
}
Parameters
The following parameters are available in the motd::fragment
defined type.
content
Data type: Optional[String]
Content of the fragment
Default value: undef
source
Data type: Optional[String]
Source of the fragment
Default value: undef
order
Data type: Variant[String,Integer]
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
Default value: '10'
2.0.0 / 2020-04-13
- update docs
- update dependencies verions
- update class to use better data type
- update fixture to use latest forge module versions
- add pdk tuning
- remove Gemfile.lock for PDK compatibility
- update Jenkins test to match PDK
- convert to PDK and drop support for Puppet 3.x
- Merge pull request #16 from fvoges/2.x
- Merge branch 'master' into 2.x
- Merge pull request #19 from fvoges/update
- add parallel stages
- bump ruby to 2.5.1
- Merge branch 'master' into update
- Merge branch 'update' of github.com:fvoges/fvoges-motd into update
- ignore .DS_Store files
- [blacksmith] Bump version to 2.0.0
- update supported puppet/ruby versions
- convert to puppet 4 including puppet strings docs
- Merge pull request #15 from fvoges/fix_unit_tests
- fix broken unit tests for Puppet < 4.9.0
- Merge pull request #14 from fvoges/jenkinsfile
- Add Jenkinsfile
- [blacksmith] Bump version to 2.0.0
- update supported puppet/ruby versions
- convert to puppet 4 including puppet strings docs
- Merge pull request #13 from fvoges/maintenance
- (maint) Cleanup tests
- (maint) Update all gems
- (maint) Update puppet version to 4.10
- (maint) Cleanup Rakefile
- Merge pull request #12 from fvoges/fix_travis
- remove .z from version ruby version in travis config as recommended by Travis
- add warning about drop of puppet 3 support in 2.x
- change class and defined type to use Puppet 4 data types instead of stdlib for input validation
- remove Puppet 3.x support
- [blacksmith] Bump version to 1.0.4
v1.0.3 / 2017-04-03
- update spec tests to use rspec-puppet-facts
- add rspec-puppet-facts ruby gem
- update changelog
v1.0.2 / 2017-04-03
- fix README formatting
- update ruby gems
- add 4.9.0 to test matrix
- bump default puppet to v4.9.x
v1.0.1 / 2016-12-17
- Merge pull request #10 from fvoges/remove_rubies
- Remove all Ruby versions from test matrix except 2.1
- Merge pull request #7 from fvoges/fix_travis_ci_badge
- Merge branch 'master' into fix_travis_ci_badge
- Update issue tracker URL
- Merge pull request #4 from fvoges/updates
- Merge pull request #9 from fvoges/update_contributing_rules
- Update Travis CI badge URL
- Update contributing rules
- Merge pull request #8 from fvoges/remove_ruby_193
- remove Ruby 1.9.3 fromtest matrix
- test
- Fix README
- Update Travis CI configuration
- Update metadata
- Change GitMagic rule to require ubjects to start with upper case
- Merge branch 'master' into updates
- Merge pull request #5 from gitmagic-bot/master
- add contributing.json file (https://gitmagic.io/rules)
- Update Changelog.md
- Update metadata
- Add coverage report to rspec tests
- Merge pull request #3 from fvoges/features/source_attribute
n.n.n / 2017-04-03
- [blacksmith] Bump version to 1.0.3
v1.0.1 / 2016-04-07
- Update metadata
- Add coverage report to rspec tests
v1.0.0 / 2016-03-06
- Fix travis matrix configuration
- Rename tests -> examples following current recommendations
- Add gem caching
- Update ruby/puppet versions exclusions
- Tighter Puppet/PE compatibility strings
- Update gems
- Update travis CI config
- Update define type documentation
- Bump version and improve deps specification
- Add source attribute
- No need specify FUTURE_PARSER=yes for 4.x (D'oh!)
- Adding more puppet versions
- Testing new travis ci infra
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 (>= 4.13.0 < 7.0.0)
- puppetlabs/concat (>= 4.0.0 < 7.0.0)