Commit 66320027 authored by Victor Penso's avatar Victor Penso
Browse files

example for a resource added by base.resources attribute

parent ce80683d
......@@ -47,6 +47,8 @@ if not node['base']['resources'].empty?
resource_list += node['base']['resources']
end
puts resource_list.inspect
resource_list.each do |resource|
next unless node.has_key? resource
......
name 'cron'
description 'Cron configuration'
run_list( 'recipe[base]' )
default_attributes(
base: { resources: [ 'cron' ] },
cron: {
'noop': {
hour: '5',
minute: '0',
command: '/bin/true'
}
}
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment