Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

SimpleFinance/chef-handler-motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChefMOTD handler

Update your MOTD after a Chef run with various data

Prerequisites

Mostly, just having MOTD configured. We use Estately's motd cookbook

Usage

Either just pull the handler file into a files directory of one of your cookbooks, or download as a Rubygem and source it that way.

# Option 1
cookbook_file "#{node[:chef_handler][:handler_path]}/chef-handler-motd.rb" do
  source 'chef-handler-motd.rb'
  mode 00600
end

chef_handler 'ChefMOTD' do
  source "#{node[:chef_handler][:handler_path]}/chef-handler-motd.rb"
  action :enable
end

# Option 2
chef_gem 'chef-handler-motd' do
  action :install
end

chef_handler 'ChefMOTD' do
  source ::File.join(Gem.all_load_paths.grep(/chef-handler-motd/).first,
                     'chef-handler-motd.rb')
  action :enable
end

Arguments

  • priority - Determines where the Chef data is displayed in MOTD (default 05)

Questions?

Hop on ##simple on Freenode with any questions or concerns.

Author

Simple Finance ops@simple.com

License

Apache License, Version 2.0

About

Handler for updating MOTD with latest Chef run info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages