Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
73da375a
Commit
73da375a
authored
Apr 11, 2016
by
Jérémie Gaidamour
Browse files
[dev] conmang5k: added a missing 'sort'
parent
3d218120
Changes
1
Show whitespace changes
Inline
Side-by-side
dev/puppet/templates/conman.erb
View file @
73da375a
...
@@ -11,13 +11,13 @@ server logfile="/var/log/conman.log"
...
@@ -11,13 +11,13 @@ server logfile="/var/log/conman.log"
# network_address: node_uid-bmc.site.grid5000.fr
# network_address: node_uid-bmc.site.grid5000.fr
# conman:
# conman:
# device: /usr/lib/conman/exec/ipmitool.exp
# device: /usr/lib/conman/exec/ipmitool.exp
# or
#
/
or
/
# conman:
# conman:
# device: ipmi
# device: ipmi
# workaround_flag: solpayloadsize
# workaround_flag: solpayloadsize
[
site
[
'clusters'
],
{
'servers'
=>
{
'nodes'
=>
site
[
'servers'
]
||
{}
}
}].
each
{
|
clusters
|
[
site
[
'clusters'
],
{
'servers'
=>
{
'nodes'
=>
site
[
'servers'
]
||
{}
}
}].
each
{
|
clusters
|
clusters
.
each
{
|
cluster_uid
,
cluster
|
clusters
.
sort
.
each
{
|
cluster_uid
,
cluster
|
cluster
[
'nodes'
].
each_sort_by_node_uid
{
|
node_uid
,
node
|
cluster
[
'nodes'
].
each_sort_by_node_uid
{
|
node_uid
,
node
|
cluster_uid
=
/[A-Za-z]*/
.
match
(
node_uid
).
to_s
if
cluster_uid
==
'servers'
# deduce cluster_uid from node_uid for 'servers' entries
cluster_uid
=
/[A-Za-z]*/
.
match
(
node_uid
).
to_s
if
cluster_uid
==
'servers'
# deduce cluster_uid from node_uid for 'servers' entries
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment