Hi,
As wiki says we could apply roles list on the node through the “run_list”. Also I see that node has attribute “roles”. Question: how does roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev
master.alff@gmail.comwrote:
Hi,
As wiki says we could apply roles list on the node through the "run_list".
Also I see that node has attribute "roles". Question: how does roles from
run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
It's strange, after all this steps I see that my run_list contain role, but "roles" still hasn't any role. Any suggestions?
Best regards
Alexander Khalkuziev
26.06.2012, в 16:42, Max Gorbul max@gorbul.net написал(а):
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev master.alff@gmail.com wrote:
Hi,
As wiki says we could apply roles list on the node through the "run_list". Also I see that node has attribute "roles". Question: how does roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
are you sure your node has been saved and indexed correctly ? have you
tried to rebuild index ?
--max
On Tue, Jun 26, 2012 at 3:58 PM, Alexander Halkuziev
master.alff@gmail.comwrote:
It's strange, after all this steps I see that my run_list contain role,
but "roles" still hasn't any role. Any suggestions?
Best regards
Alexander Khalkuziev
26.06.2012, в 16:42, Max Gorbul max@gorbul.net написал(а):
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev <
master.alff@gmail.com> wrote:
Hi,
As wiki says we could apply roles list on the node through the
"run_list". Also I see that node has attribute "roles". Question: how does
roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
Yes, I have. But still no luck.
➜ knife role from file foo.rb
Updated Role foo!
➜
➜
➜ roles git:(stable) ✗ knife node run_list add testing 'role[foo]'
run_list: role[foo]
➜ roles git:(stable) ✗ knife node show testing -a run_list.roles
run_list.roles: foo
➜ roles git:(stable) ✗ knife node show testing -a roles
roles:
➜ roles git:(stable) ✗ knife node show testing
Node Name: testing
Environment: _default
FQDN:
IP: 192.168.6.55
Run List: role[foo]
Roles:
Recipes:
Platform: centos 6.2
I want to put role 'foo' to 'roles' attribute too. What I should to do?
On 26.06.2012, at 17:07, Max Gorbul wrote:
are you sure your node has been saved and indexed correctly ? have you tried to rebuild index ?
--max
On Tue, Jun 26, 2012 at 3:58 PM, Alexander Halkuziev master.alff@gmail.com wrote:
It's strange, after all this steps I see that my run_list contain role, but "roles" still hasn't any role. Any suggestions?
Best regards
Alexander Khalkuziev
26.06.2012, в 16:42, Max Gorbul max@gorbul.net написал(а):
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev master.alff@gmail.com wrote:
Hi,
As wiki says we could apply roles list on the node through the "run_list". Also I see that node has attribute "roles". Question: how does roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
===
Best regards,
Alexander Halkuziev
master.alff@gmail.com
Converge the node in question. recipes and roles come from the actual
list of executed roles/recipes, which requires a node convergence.
Adam
On Tue, Jun 26, 2012 at 7:37 AM, Alexander Halkuziev
master.alff@gmail.com wrote:
Yes, I have. But still no luck.
➜ knife role from file foo.rb
Updated Role foo!
➜
➜
➜ roles git:(stable) ✗ knife node run_list add testing 'role[foo]'
run_list: role[foo]
➜ roles git:(stable) ✗ knife node show testing -a run_list.roles
run_list.roles: foo
➜ roles git:(stable) ✗ knife node show testing -a roles
roles:
➜ roles git:(stable) ✗ knife node show testing
Node Name: testing
Environment: _default
FQDN:
IP: 192.168.6.55
Run List: role[foo]
Roles:
Recipes:
Platform: centos 6.2
I want to put role 'foo' to 'roles' attribute too. What I should to do?
On 26.06.2012, at 17:07, Max Gorbul wrote:
are you sure your node has been saved and indexed correctly ? have you tried
to rebuild index ?
--max
On Tue, Jun 26, 2012 at 3:58 PM, Alexander Halkuziev master.alff@gmail.com
wrote:
It's strange, after all this steps I see that my run_list contain role,
but "roles" still hasn't any role. Any suggestions?
Best regards
Alexander Khalkuziev
26.06.2012, в 16:42, Max Gorbul max@gorbul.net написал(а):
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev
master.alff@gmail.com wrote:
Hi,
As wiki says we could apply roles list on the node through the
"run_list". Also I see that node has attribute "roles". Question: how does
roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
===
Best regards,
Alexander Halkuziev
master.alff@gmail.com
--
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com
Thanks a lot Adam.
I have created simple recipe, and after successful chef-run i got attributes 'roles' and 'recipes' filed.
Thanks everyone for help.
On 26.06.2012, at 18:52, Adam Jacob wrote:
Converge the node in question. recipes and roles come from the actual
list of executed roles/recipes, which requires a node convergence.
Adam
On Tue, Jun 26, 2012 at 7:37 AM, Alexander Halkuziev
master.alff@gmail.com wrote:
Yes, I have. But still no luck.
➜ knife role from file foo.rb
Updated Role foo!
➜
➜
➜ roles git:(stable) ✗ knife node run_list add testing 'role[foo]'
run_list: role[foo]
➜ roles git:(stable) ✗ knife node show testing -a run_list.roles
run_list.roles: foo
➜ roles git:(stable) ✗ knife node show testing -a roles
roles:
➜ roles git:(stable) ✗ knife node show testing
Node Name: testing
Environment: _default
FQDN:
IP: 192.168.6.55
Run List: role[foo]
Roles:
Recipes:
Platform: centos 6.2
I want to put role 'foo' to 'roles' attribute too. What I should to do?
On 26.06.2012, at 17:07, Max Gorbul wrote:
are you sure your node has been saved and indexed correctly ? have you tried
to rebuild index ?
--max
On Tue, Jun 26, 2012 at 3:58 PM, Alexander Halkuziev master.alff@gmail.com
wrote:
It's strange, after all this steps I see that my run_list contain role,
but "roles" still hasn't any role. Any suggestions?
Best regards
Alexander Khalkuziev
26.06.2012, в 16:42, Max Gorbul max@gorbul.net написал(а):
node.roles - is the expanded list of all roles applied to the node
node.run_list.roles - is the list of roles defined for the run_list
for example
roles/foo.rb
run_list("role[bar]")
knife node run_list add node1 'role[foo]'
knife node show node1 -a roles
foo
bar
knife node show node1 -a run_list.roles
foo
--max
On Tue, Jun 26, 2012 at 3:03 PM, Alexander Halkuziev
master.alff@gmail.com wrote:
Hi,
As wiki says we could apply roles list on the node through the
"run_list". Also I see that node has attribute "roles". Question: how does
roles from run_list moving to this attribute?
Chef server and client version is 0.10.10.
Thanks for help!
Best regards
Alexander Khalkuziev
===
Best regards,
Alexander Halkuziev
master.alff@gmail.com
--
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com
===
Best regards,
Alexander Halkuziev
master.alff@gmail.com