Skip to content

Knife set_attribute is a plugin to knife to change attributes values in your nodes

Notifications You must be signed in to change notification settings

amian84/knife-set-attribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

knife-set-atrribute

A plugin for Chef::Knife which will change attributes values of your nodes or roles.

Usage

Supply nested attributes and the values can be strings or array.

% knife set_attribute node|role <node_name|role> <attribute.sub_attribute> 'value'

% knife set_attribute node|role <node_name|role> <attribute.sub_attribute> "['\'value1\'','\'value2\'']"

% knife set_attribute node|role <node_name|role> <attribute.sub_attribute> "[\"{\'key1\'=>\'value1\'}\", \"{\'key2\'=>\'value2\'}\"]" 

Installation

Script install

Copy the knife-set-attribute script from set_attribute.rb to your ~/.chef/plugins/knife directory.

$ git clone https://github.com/amian84/knife-set-attribute.git
$ mkdir -p ~/.chef/plugins/knife/
$ cp knife-set-attribute/set_attribute.rb ~/.chef/plugins/knife/

About

Knife set_attribute is a plugin to knife to change attributes values in your nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages