# Trying to group nodes with in an organization

**URL:** <https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102>\
**Category:** Chef Infra (archive)\
**Created:** [May 12, 2020, 11:52pm UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102 "2020-05-12T23:52:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkanne723](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nkanne723](https://discourse.chef.io/u/nkanne723)\
**Post date:** [May 12, 2020, 11:52pm UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102/1 "2020-05-12T23:52:45Z")

</div>

I am trying to find a best way to group nodes within an organization and manage them seperatly with respect to recipes. Is moving the nodes into seperate organization of its own is the only way to seperate nodes?  
Thanks

---

<div class="post-metadata">

**Author:** ![MattRay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/mattray/32/47_2.png) [@MattRay](https://discourse.chef.io/u/MattRay)\
**Post date:** [May 12, 2020, 11:59pm UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102/2 "2020-05-12T23:59:54Z")

</div>

Organizations are the strongest separation for your nodes. There's no sharing of cookbooks across those boundaries. That said, you can get strong separation of cookbooks by using Policyfiles and isolating the nodes with different policy groups, because cookbooks in policyfiles are kept in unique archives and not exposed outside of the policy name/group combination.

---

<div class="post-metadata">

**Author:** ![nkanne723](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nkanne723](https://discourse.chef.io/u/nkanne723)\
**Post date:** [May 13, 2020, 3:29am UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102/3 "2020-05-13T03:29:14Z")

</div>

Thank you MattRay, I will try that.

---

<div class="post-metadata">

**Author:** ![nkanne723](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nkanne723](https://discourse.chef.io/u/nkanne723)\
**Post date:** [May 26, 2020, 2:12am UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102/4 "2020-05-26T02:12:34Z")

</div>

## I am getting following error when I am trying to update the node with new policy Unexpected Error:

Chef::PolicyBuilder::Policyfile::UnsupportedFeature: Policyfile does not support setting the run\_list in json data.

{

"revision\_id": "...",

"name": "customapp",

"run\_list": [

```
"recipe[customapp::default]"

```

],

"included\_policy\_locks": [

],

"cookbook\_locks": {

```
"customapp": {

  "version": "0.1.0",

  "identifier": "----",

  "dotted_decimal_identifier": "...",

  "source": ".",

  "cache_key": null,

  "scm_info": {

    "scm": "git",

    "remote": null,

    "revision": null,

    "working_tree_clean": true,

    "published": false,

    "synchronized_remote_branches": [

    ]

  },

  "source_options": {

    "path": "."

  }

},

"my_base_xx": {

  "version": "0.1.0",

  "identifier": "fddfdf",

  "dotted_decimal_identifier": "zzzz",

  "source": "../my_base_xx",

  "cache_key": null,

  "scm_info": {

    "scm": "git",

    "remote": null,

    "revision": null,

    "working_tree_clean": true,

    "published": false,

    "synchronized_remote_branches": [

    ]

  },

  "source_options": {

    "path": "../my_base_xx"

  }

}

```

},

"default\_attributes": {

},

"override\_attributes": {

},

"solution\_dependencies": {

```
"Policyfile": [

  [

    "customapp",

    ">= 0.0.0"

  ],

  [

    "my_base_xx",

    ">= 0.0.0"

  ]

],

"dependencies": {

  "customapp (0.1.0)": [

    [

      "my_base_xx",

      ">= 0.0.0"

    ]

  ],

  "my_base_xx (0.1.0)": [

  ]

}

```

}

}

---

<div class="post-metadata">

**Author:** ![nkanne723](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nkanne723](https://discourse.chef.io/u/nkanne723)\
**Post date:** [May 31, 2020, 2:21pm UTC](https://discourse.chef.io/t/trying-to-group-nodes-with-in-an-organization/17102/5 "2020-05-31T14:21:00Z")

</div>

I am getting following error  
"Unexpected Error: ----------------- Chef::PolicyBuilder::Policyfile::UnsupportedFeature: Policyfile does not support setting the run\_list in json data."  
here are the steps I followed

```auto
include_recipe 'basecookbook::default'

directory 'C:/ProgramData/ChefFiles' do
   inherits true
   action :create 
end

```

Updated cooksbooks metadata to specify dependency on base

The policy file is as follows cookbooks/test01/Policyfile.rb Changed the policy file to

```auto
name 'test01'
    run_list 'test01::default'
    cookbook 'test01', path: '.'
    cookbook 'basecookbook', path: '../basecookbook'

```

the policyfile.lock.json file is as follows

```auto
"name": "test01",
"run_list": [
  "recipe[test01::default]"
],
"included_policy_locks": [
],
"cookbook_locks": {
  "test01": {

```

I pushed the policy to chef and set the node to policy group and policy

```auto
chef push test01 .\cookbooks\test01\Policyfile.lock.json
knife node policy set NodeName 'test01' 'test01'

```

When I run the chef client on the node, I am getting following error

> Unexpected Error: Chef::PolicyBuilder::Policyfile::UnsupportedFeature: Policyfile does not support setting the run\_list in json data.

Thank you for your help in advance
