lib/ridley/resources/node_resource.rb in ridley-1.0.0.rc1 vs lib/ridley/resources/node_resource.rb in ridley-1.0.0.rc2

- old
+ new

@@ -158,9 +158,35 @@ end update(node.merge_data(options)) end + # Uninstall Chef from a node + # + # @param [String] host + # the host to perform the action on + # + # @option options [Boolena] :skip_chef (false) + # skip removal of the Chef package and the contents of the installation + # directory. Setting this to true will only remove any data and configurations + # generated by running Chef client. + # @option options [Hash] :ssh + # * :user (String) a shell user that will login to each node and perform the bootstrap command on + # * :password (String) the password for the shell user that will perform the bootstrap + # * :keys (Array, String) an array of key(s) to authenticate the ssh user with instead of a password + # * :timeout (Float) timeout value for SSH bootstrap (5.0) + # * :sudo (Boolean) run as sudo (true) + # @option options [Hash] :winrm + # * :user (String) a user that will login to each node and perform the bootstrap command on + # * :password (String) the password for the user that will perform the bootstrap (required) + # * :port (Fixnum) the winrm port to connect on the node the bootstrap will be performed on (5985) + # + # @return [HostConnector::Response] + def uninstall_chef(host, options = {}) + options = options.reverse_merge(ssh: ssh, winrm: winrm) + host_commander.uninstall_chef(host, options) + end + private # @return [Ridley::HostCommander] attr_reader :host_commander