Sha256: 0b86412f4b9b23af6cdac9cca4e4ed87e8eab477fe60b1a024ba9344cf08ed08

Contents?: true

Size: 699 Bytes

Versions: 8

Compression:

Stored size: 699 Bytes

Contents

module ChefAPI
  class Resource::Node < Resource::Base
    include ChefAPI::AclAble
    collection_path "/nodes"

    schema do
      attribute :name,         type: String, primary: true, required: true
      attribute :automatic,    type: Hash,   default: {}
      attribute :default,      type: Hash,   default: {}
      attribute :normal,       type: Hash,   default: {}
      attribute :override,     type: Hash,   default: {}
      attribute :run_list,     type: Array,  default: []
      attribute :policy_name,  type: String
      attribute :policy_group, type: String

      # Enterprise Chef attributes
      attribute :chef_environment, type: String, default: "_default"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
chef-infra-api-0.10.10 lib/chef-api/resources/node.rb
chef-api-0.10.10 lib/chef-api/resources/node.rb
chef-infra-api-0.10.7 lib/chef-api/resources/node.rb
chef-api-0.10.7 lib/chef-api/resources/node.rb
chef-infra-api-0.10.5 lib/chef-api/resources/node.rb
chef-api-0.10.5 lib/chef-api/resources/node.rb
chef-infra-api-0.10.2 lib/chef-api/resources/node.rb
chef-api-0.10.2 lib/chef-api/resources/node.rb