cookbook 'motd', '= 0.6.4', :supermarket
motd (12) Versions 0.6.4 Follow18
Installs/Configures motd
cookbook 'motd', '= 0.6.4'
knife supermarket install motd
knife supermarket download motd
Description
Installs message of the day (respects update-motd, if installed)
Recipes
default
The default recipe includes the cow and the knife_status recipes
cow
Displays a friendly warning-cow, logging onto a server in the production environment.
This is example, a domain.com production server
just in case you didn't notice the line above, maybe this cow helps:
___________________________________
< YOU ARE ON A PRODUCTION SERVER! >
-----------------------------------
\ ^__^
\ (oo)\_______
(__))\/\ \
||----w |
|| ||
knife_status
plus a knife_status line that displays the knife status of this node. (only when the node supports update-motd)
Last chef run: 10 minutes ago
Attributes
You can specify whether to use colors in your attributes (defaults to true)
node['motd']['color'] = true
Providers
To use the provider in your cookbook, make sure you put the following line in your metadata.rb
depends 'motd'
default
The name attribute is only used if update-motd is installed on the system. If not, it has no meaning.
Create motd using the shipped cow template
motd '50-mymotd'
Create a motd using a custom template
motd '50-mymotd' do
cookbook 'my cookbook'
source 'test.erb'
end
Use the default cow template, but do not use colors
motd '50-mymotd' do
color false
end
Remove a motd (if update-motd is used only)
motd '50-mymotd' do
action :delete
end
motd CHANGELOG
This file is used to list changes made in each version of the motd cookbook.
0.6.4
- Fix
source_url
andissues_url
compatibility for older chef-clients
0.6.3
- Add
source_url
attributes inmetadata.rb
0.6.2
- Only show red in a colorful motd when it's been longer than interval and splay minutes.
0.6.1
- Use
node['root_group']
attribute when setting file permissions
0.6.0
- Add tests
- Add support for spray setting when using knife-status plugin
0.5.0
- Fix an issue with
knife_status
integer parsing - Renamed
knife-status
recipe toknife_status
- Add linting tests
0.4.1
- Convert automatically detected interval to minutes
0.4.0
- Use a chef_handler instead of "knife status" to get the last successful chef run This is faster than invoking ruby on each login
0.1.0
- Initial release of motd
Collaborator Number Metric
0.6.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.6.4 failed this metric
FC066: Ensure chef_version is set in metadata: motd/metadata.rb:1
FC069: Ensure standardized license defined in metadata: motd/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.6.4 passed this metric
Publish Metric
0.6.4 passed this metric
Supported Platforms Metric
0.6.4 passed this metric
Testing File Metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.6.4 passed this metric
0.6.4 failed this metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.6.4 failed this metric
FC066: Ensure chef_version is set in metadata: motd/metadata.rb:1
FC069: Ensure standardized license defined in metadata: motd/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.6.4 passed this metric
Publish Metric
0.6.4 passed this metric
Supported Platforms Metric
0.6.4 passed this metric
Testing File Metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.6.4 passed this metric
0.6.4 failed this metric
FC069: Ensure standardized license defined in metadata: motd/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: motd/providers/default.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.6.4 passed this metric
Publish Metric
0.6.4 passed this metric
Supported Platforms Metric
0.6.4 passed this metric
Testing File Metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.6.4 passed this metric
0.6.4 passed this metric
0.6.4 passed this metric
Testing File Metric
0.6.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.6.4 passed this metric
0.6.4 failed this metric
0.6.4 passed this metric