You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before suggesting a resource for inclusion please make sure your suggestion meets these criteria for resources built into Chef:
Automates an operating system component that ships by default on systems such as authentication, raid, disk partitions, firewalls, containers, or virtualization systems.
Does not attempt automate 3rd party applications such as database, web, or application servers, which are best suited for cookbooks due to their fast moving nature.
Describe the resource:
A resource that would allow you to set the content of the system's MTOD
Why should this be included out of the box?:
A lot of organizations want to set a security warning here and we should make that super simple.
What operating systems would it run on?
Linux at least
The text was updated successfully, but these errors were encountered:
@tas50 I think there are two potential used cases for motd.
Providing the content inline with the resource for the motd (give a simple motd)
Providing a path to a file or template with the content for the motd (complex motd)
Example of providing a simple motd
motd'message name'docontent"This is a secure system. blah blah blah"action:create# default action; other action :deleteend
Example of providing a source for a more complex motd
motd'message name'doprovide_sourcetrue# set to true to pass template/file (defaults to false)cookbook'current_cookbook'# defaults to current cookbooksource'path/to/template.erb'action:create# default action; other action :deleteend
You should be able to skip the provide_source bit and just use the source if a source is set. Other than that the design in the docs here lookos good to me.
Core Chef Resource Checklist
Before suggesting a resource for inclusion please make sure your suggestion meets these criteria for resources built into Chef:
Describe the resource:
A resource that would allow you to set the content of the system's MTOD
Why should this be included out of the box?:
A lot of organizations want to set a security warning here and we should make that super simple.
What operating systems would it run on?
Linux at least
The text was updated successfully, but these errors were encountered: