diff options
| -rwxr-xr-x | bootstrap/pillar_config.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bootstrap/pillar_config.rb b/bootstrap/pillar_config.rb index 44fa02c..6fb94cc 100755 --- a/bootstrap/pillar_config.rb +++ b/bootstrap/pillar_config.rb @@ -7,21 +7,13 @@ require "json" require "socket" require "yaml" -def sha() - seed = "" - File.open("/dev/urandom", "r") do |f| - seed = "#{f.sysread(24)}" - end - Digest::SHA1.hexdigest(seed) -end - def process_yaml(build_basedir, local_build) env_yaml_path = "#{File.dirname($0)}/config.yaml" if ! File.file?(env_yaml_path) STDERR.puts "Unable to find config.yaml. Exiting." exit(1) end - tag = sha()[0..23] + tag = "latest" yml = YAML.load_file(env_yaml_path) yml["gentoo_baseimage"] = {} yml["gentoo_baseimage"]["image_name"] = "gentoo_baseimage" |
