teamd-installer 0.0.13 → 0.0.14
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 +2 -12
- 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: c5deb653d58f2e0ffde2d58c83d4daacdb021b5f
|
4
|
+
data.tar.gz: 82ba362357bfd45962fe2f2987a3258ef7de734e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e9a44cf8a051d2dae29717bff601661ae052f4b705b4c577e232d9c69b60be7ee7bb25e4c9b8972cb92c76979b8b7baa5b8643b956709225f1082d9ad741bdd
|
7
|
+
data.tar.gz: 472d02efb180e00665685f2331c924f89f55a955cdeddd3a2cb30c08b20e3f38024e92696181212ce049ff1b591e9172ede750ce3de8568435dd6f98fbbf24ce
|
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.14 teamd-installer
|
8
8
|
|
9
9
|
ENTRYPOINT ["/usr/bin/teamd-installer"]
|
data/lib/teamd/installer/cli.rb
CHANGED
@@ -37,10 +37,6 @@ module Teamd
|
|
37
37
|
|
38
38
|
desc "install","Install CoreOS"
|
39
39
|
method_option :etcd_discovery_id, type: :string
|
40
|
-
method_option :private_interface, type: :string, default: "eth0"
|
41
|
-
method_option :public_interface, type: :string, default: "eth1"
|
42
|
-
method_option :etcd_initialize_cluster, type: :boolean, default: :false
|
43
|
-
method_option :etcd_cluster_size, type: :numeric, default: 3
|
44
40
|
method_option :installer_url, type: :string, default: "https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install"
|
45
41
|
method_option :installer_script, type: :string, default: "/tmp/installer"
|
46
42
|
method_option :cloud_config, type: :string, default: "/tmp/user_data"
|
@@ -55,17 +51,11 @@ module Teamd
|
|
55
51
|
|
56
52
|
desc "prepare", "Write cloud-config to linked file and exit"
|
57
53
|
method_option :etcd_discovery_id, type: :string
|
58
|
-
method_option :private_interface, type: :string, default: "eth0"
|
59
|
-
method_option :public_interface, type: :string, default: "eth1"
|
60
|
-
method_option :etcd_initialize_cluster, type: :boolean, default: :false
|
61
|
-
method_option :etcd_cluster_size, type: :numeric, default: 3
|
62
54
|
method_option :cloud_config, type: :string, default: "/tmp/user_data"
|
63
|
-
method_option :command_file, type: :string, default: "
|
64
|
-
method_option :installer_url, type: :string, default: "https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install"
|
65
|
-
method_option :installer_script, type: :string, default: "/tmp/installer"
|
55
|
+
method_option :command_file, type: :string, default: "coreos-install"
|
66
56
|
def prepare
|
67
57
|
Cli.build_cloud_config options
|
68
|
-
|
58
|
+
File.write options[:command_file],"-c #{options[:cloud_config]} -d /dev/#{Disk.default[0]}"
|
69
59
|
end
|
70
60
|
end
|
71
61
|
end
|