Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
grid5000
reference-repository
Commits
29bedcdd
Commit
29bedcdd
authored
Jun 19, 2019
by
DELABROYE Dimitri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[lib/refrepo/gen/puppet/kadeploy] make kadeploy use data instead if input
parent
c240961c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/refrepo/gen/puppet/kadeployg5k.rb
lib/refrepo/gen/puppet/kadeployg5k.rb
+4
-6
No files found.
lib/refrepo/gen/puppet/kadeployg5k.rb
View file @
29bedcdd
...
...
@@ -26,16 +26,14 @@ end
# Extract the node ip from the node hash
def
get_ip
(
node
)
node
[
'network_adapters'
].
each
{
|
device
,
network_adapter
|
if
network_adapter
[
'mounted'
]
&&
/^eth[0-9]$/
.
match
(
device
)
return
network_adapter
[
'ip'
]
end
}
return
node
[
'network_adapters'
].
select
{
|
n
|
n
[
'mounted'
]
&&
n
[
'device'
]
=~
/eth/
}[
0
][
'ip'
]
end
def
generate_puppet_kadeployg5k
(
options
)
global_hash
=
load_
yaml_file
_hierarchy
global_hash
=
load_
data
_hierarchy
if
not
options
[
:conf_dir
]
options
[
:conf_dir
]
=
"
#{
options
[
:output_dir
]
}
/platforms/production/generators/kadeploy"
...
...
Write
Preview
Markdown
is supported
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