Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
7d4a1f56
Commit
7d4a1f56
authored
Apr 13, 2016
by
Jérémie Gaidamour
Browse files
[dev] conmang5k minor fix
parent
c61bfaef
Changes
1
Hide whitespace changes
Inline
Side-by-side
dev/puppet/conmang5k.rb
View file @
7d4a1f56
...
...
@@ -9,14 +9,14 @@ require '../lib/input_loader'
require
'../lib/hash/hash.rb'
global_hash
=
load_yaml_file_hierarchy
(
"../input/grid5000/"
)
output_dir
=
'output'
$
output_dir
=
'output'
conf_hash
=
YAML
::
load_file
(
'./conf/conman-password.yaml'
)
conf_hash
=
conf_hash
.
expand_square_brackets
()
def
write_conman_file
(
site_uid
,
site
,
passwd
)
erb
=
ERB
.
new
(
File
.
read
(
"templates/conman.erb"
))
output_file
=
File
.
join
(
output_dir
,
'conmang5k'
,
'files'
,
site_uid
,
'conman.conf'
)
output_file
=
File
.
join
(
$
output_dir
,
'conmang5k'
,
'files'
,
site_uid
,
'conman.conf'
)
# Create directory hierarchy
dirname
=
File
.
dirname
(
output_file
)
...
...
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