| 1 |
define :definition_example, key: 'default' do |
| 2 |
execute "echo 'name:#{params[:name]},key:#{params[:key]},message:#{node[:message]}' > /tmp/created_by_definition" |
| 3 |
|
| 4 |
remote_file "/tmp/remote_file_in_definition" |
| 5 |
end |
| 6 |
|
| 7 |
define :definition_example_2, key: 'default' do |
| 8 |
execute "echo 'name:#{params[:name]},key:#{params[:key]},message:#{node[:message]}' > /tmp/created_by_definition_2_#{params[:name]}" |
| 9 |
|
| 10 |
remote_file "/tmp/remote_file_in_definition_2_#{params[:name]}" do |
| 11 |
source "files/remote_file_in_definition_2" |
| 12 |
end |
| 13 |
end |
| 14 |
|
| 15 |
define :definition_example_3, key: 'default' do |
| 16 |
execute "echo 'name:#{params[:name]},key:#{params[:key]},message:#{node[:message]}' > /tmp/created_by_definition_3_#{params[:name]}" |
| 17 |
|
| 18 |
remote_file "/tmp/remote_file_in_definition_3_#{params[:name]}" do |
| 19 |
source "files/remote_file_in_definition_3" |
| 20 |
end |
| 21 |
end |