teamd-installer 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5deb653d58f2e0ffde2d58c83d4daacdb021b5f
4
- data.tar.gz: 82ba362357bfd45962fe2f2987a3258ef7de734e
3
+ metadata.gz: f02d805c542d4d113b188105614d3706f29f90eb
4
+ data.tar.gz: 5183d155fe6664af8a0af5480169ec424133ce2d
5
5
  SHA512:
6
- metadata.gz: 7e9a44cf8a051d2dae29717bff601661ae052f4b705b4c577e232d9c69b60be7ee7bb25e4c9b8972cb92c76979b8b7baa5b8643b956709225f1082d9ad741bdd
7
- data.tar.gz: 472d02efb180e00665685f2331c924f89f55a955cdeddd3a2cb30c08b20e3f38024e92696181212ce049ff1b591e9172ede750ce3de8568435dd6f98fbbf24ce
6
+ metadata.gz: 3b49f80cc865529a571b4d4d6fd121be3646ef72581d02b786fc0c59092897bf093b1f37f9cf3f8894713914aaade4f76d0ce03160510d4c1f4bcfc7b3dc36dc
7
+ data.tar.gz: 656c8406f433708aef78639c60de32d444b3e37e5b1fcc7f2ef948937f5e989db7725c8b8115054da16495b6711f43900ce76d3fa7b4fe416cf4d626c214fb87
data/docker/Dockerfile CHANGED
@@ -4,6 +4,6 @@ MAINTAINER Mathias Kaufmann <me@stei.gr>
4
4
  RUN apk update && \
5
5
  apk add ruby ruby-dev ca-certificates bash wget gnupg util-linux coreutils bzip2 && \
6
6
  gem update --system --no-ri --no-rdoc
7
- RUN gem install --no-ri --no-rdoc --version 0.0.14 teamd-installer
7
+ RUN gem install --no-ri --no-rdoc --version 0.0.15 teamd-installer
8
8
 
9
9
  ENTRYPOINT ["/usr/bin/teamd-installer"]
@@ -29,7 +29,7 @@ module Teamd
29
29
  Script.store options[:installer_script],@installer
30
30
  @disk,@major,@minor = Disk.default
31
31
  Disk.create @disk, @major, @minor
32
- File.write options[:command_file],[options[:installer_script],"-d",@disk,"-C",(ENV["GROUP"] || "stable"),"-c",options[:cloud_config]].join(" ")
32
+ File.write options[:installer_args_file],[options[:installer_script],"-d",@disk,"-C",(ENV["GROUP"] || "stable"),"-c",options[:cloud_config]].join(" ")
33
33
  end
34
34
  end
35
35
 
@@ -41,21 +41,21 @@ module Teamd
41
41
  method_option :installer_script, type: :string, default: "/tmp/installer"
42
42
  method_option :cloud_config, type: :string, default: "/tmp/user_data"
43
43
  method_option :reboot, type: :boolean, default: :true
44
- method_option :command_file, type: :string, default: "/tmp/install_command"
44
+ method_option :installer_args_file, type: :string, default: "/tmp/install_args"
45
45
  def install
46
46
  Cli.build_cloud_config options
47
47
  Cli.build_install_command options
48
- Script.run [File.read(options[:command_file])]
48
+ Script.run [options[:installer_script],File.read(options[:installer_args_file])]
49
49
  Reboot.hard! if options[:reboot]
50
50
  end
51
51
 
52
52
  desc "prepare", "Write cloud-config to linked file and exit"
53
53
  method_option :etcd_discovery_id, type: :string
54
54
  method_option :cloud_config, type: :string, default: "/tmp/user_data"
55
- method_option :command_file, type: :string, default: "coreos-install"
55
+ method_option :installer_args_file, type: :string, default: "/tmp/install_args"
56
56
  def prepare
57
57
  Cli.build_cloud_config options
58
- File.write options[:command_file],"-c #{options[:cloud_config]} -d /dev/#{Disk.default[0]}"
58
+ File.write options[:installer_args_file],"-c #{options[:cloud_config]} -d /dev/#{Disk.default[0]}"
59
59
  end
60
60
  end
61
61
  end
@@ -1,5 +1,5 @@
1
1
  module Teamd
2
2
  module Installer
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamd-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann