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
3d248efa
Commit
3d248efa
authored
Apr 22, 2016
by
Jérémie Gaidamour
Browse files
[dev] Check ruby version
Otherwise we get inexplicable errors with pathname or hash.select ...
parent
102a7984
Changes
5
Hide whitespace changes
Inline
Side-by-side
dev/puppet/bind.rb
View file @
3d248efa
#!/usr/bin/ruby
if
RUBY_VERSION
<
"2.1"
puts
"This script requires ruby >= 2.1"
exit
end
# See also: https://www.grid5000.fr/mediawiki/index.php/DNS_server
require
'pp'
...
...
dev/puppet/conmang5k.rb
View file @
3d248efa
#!/usr/bin/ruby
if
RUBY_VERSION
<
"2.1"
puts
"This script requires ruby >= 2.1"
exit
end
# This script generates conmang5k/files/<site_uid>/conman.conf from input/, conf/console.yaml and conf/console-password.yaml
require
'pp'
...
...
dev/puppet/dhcp.rb
View file @
3d248efa
#!/usr/bin/ruby
if
RUBY_VERSION
<
"2.1"
puts
"This script requires ruby >= 2.1"
exit
end
require
'pp'
require
'erb'
require
'pathname'
...
...
dev/puppet/kadeployg5k.rb
View file @
3d248efa
#!/usr/bin/ruby
if
RUBY_VERSION
<
"2.1"
puts
"This script requires ruby >= 2.1"
exit
end
# This script generates:
# - kadeployg5k/files/<site_uid>/server_conf[_dev]/clusters.conf from input/
# - kadeployg5k/files/<site_uid>/server_conf[_dev]/<cluster_uid>-cluster.conf from conf/kadeployg5k.yaml and template/kadeployg5k.yaml.Erb
...
...
dev/puppet/lanpowerg5k.rb
View file @
3d248efa
#!/usr/bin/ruby
if
RUBY_VERSION
<
"2.1"
puts
"This script requires ruby >= 2.1"
exit
end
# This script generates lanpowerg5k/files/<site_uid>/lanpower.conf from conf/console.yaml and conf/console-password.conf
require
'pp'
...
...
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