teamd-installer 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docker/Dockerfile +1 -1
- data/lib/teamd/installer/cli.rb +5 -5
- data/lib/teamd/installer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f02d805c542d4d113b188105614d3706f29f90eb
|
4
|
+
data.tar.gz: 5183d155fe6664af8a0af5480169ec424133ce2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
7
|
+
RUN gem install --no-ri --no-rdoc --version 0.0.15 teamd-installer
|
8
8
|
|
9
9
|
ENTRYPOINT ["/usr/bin/teamd-installer"]
|
data/lib/teamd/installer/cli.rb
CHANGED
@@ -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[:
|
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 :
|
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[:
|
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 :
|
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[:
|
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
|