- From: Sam Su <
>
- To: "
" <
>
- Subject: [chef] How to search node info in the chef server
- Date: Wed, 26 Mar 2014 15:05:57 -0700
Hi,
I want to get a node list with role[os-controller] in it's run list, so I tried "knife search" command at my chef server CML however I got a weird result as follow:
~]# knife search node role:os-controller
2 items found
Node Name: centos-10-145-88-153
Environment: _default
FQDN:
IP: 10.145.88.153
Run List: recipe[keepalived], recipe[haproxy::tcp_lb]
Roles:
Recipes: keepalived, haproxy::tcp_lb, keepalived::default, haproxy::install_package
Platform: centos 6.5
Tags:
Node Name: centos-10-145-88-152
Environment: testing
FQDN:
IP: 10.145.88.152
Run List: recipe[keepalived], recipe[haproxy::tcp_lb], role[os-controller]
Roles:
Recipes: keepalived, haproxy::tcp_lb, keepalived::default, haproxy::install_package
Platform: centos 6.5
Tags:
~]#In my understanding, chef server should only return one node info with
role[os-controller] (here is
centos-10-145-88-152), but it return two nodes. I have no idea how to figure it out.
If someone can point it out, it will be much appreciated.
Thanks,
Sam
- [chef] How to search node info in the chef server, Sam Su, 03/26/2014
Archive powered by MHonArc 2.6.16.