Difference between revisions of "Chef-apply"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 +
[[chef apply --help]]
  
  
Line 6: Line 7:
 
  end
 
  end
  
 +
 +
 +
== Examples ==
 +
<pre>
 +
chef-apply kk.rb
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/provider.rb:337: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/resource.rb:1379: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/platform/priority_map.rb:36: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/property.rb:546: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
 +
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/property.rb:121: warning: The called method `initialize' is defined here
 +
[2021-07-27T11:01:53+04:00] FATAL: Stacktrace dumped to /var/cinc/cache/cinc-stacktrace.out
 +
[2021-07-27T11:01:53+04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
 +
[2021-07-27T11:01:53+04:00] FATAL: NoMethodError: undefined method `replace_or_add' for cookbook: (chef-apply cookbook), recipe: (chef-apply recipe) :Chef::Recipe
 +
</pre>
  
 
== Related commands ==
 
== Related commands ==
* [[Ansible]]
+
* [[Ansible]]: [[Examples of Ansible execution modules]]
 
+
* <code>[[knife exec]]</code>
 +
* [[replace_or_add]]
  
 
== See also ==
 
== See also ==
 
* {{puppet}}
 
* {{puppet}}
 +
* {{Chef}}
 +
 +
[[Category:Chef]]

Latest revision as of 07:13, 27 July 2021

chef apply --help


execute 'Execute a shell' do
    command "bash -c 'cmd1 && cmd2 && ..'"
end


Examples[edit]

chef-apply kk.rb
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/provider.rb:337: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/resource.rb:1379: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/platform/priority_map.rb:36: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/node_map.rb:58: warning: The called method `set' is defined here
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/property.rb:546: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/chef-15.8.25/lib/chef/property.rb:121: warning: The called method `initialize' is defined here
[2021-07-27T11:01:53+04:00] FATAL: Stacktrace dumped to /var/cinc/cache/cinc-stacktrace.out
[2021-07-27T11:01:53+04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-07-27T11:01:53+04:00] FATAL: NoMethodError: undefined method `replace_or_add' for cookbook: (chef-apply cookbook), recipe: (chef-apply recipe) :Chef::Recipe

Related commands[edit]

See also[edit]

Advertising: