0 votes
in DevOps by
What happens when you don’t specify a Resource’s action in Chef

1 Answer

0 votes
by
In case, if you don't specify a resource’s action, then Chef applies the default action.

For example, in resource 1, the action is not specified, still, it will take a default action.

file 'C:UsersAdministratorchef-reposettings.ini' do

content 'greeting=hello world'

end

In resource 2, when you define the action with create command, it is also used to create the default action.

file 'C:UsersAdministratorchef-reposettings.ini' do

action :create

content 'greeting=hello world'

end

Related questions

0 votes
asked Jun 20, 2023 in HDFS by john ganales
0 votes
asked Aug 30, 2021 in DevOps by SakshiSharma
...