hetzner-bootstrap-coreos 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a9ee5a7524124e0df03b9cff9ca9b5ae20b298
|
4
|
+
data.tar.gz: 7a6be15f231298be2f119a5d4c59776aa7058c04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71bde2ab81fe8ef4b186a8059c7729957c1c68f0065a23da7defdb9924e84cce5ef7e5a8e0459bce787523f2c63f97dd4d924d1477ca94e300e6dc6bfcc3b35a
|
7
|
+
data.tar.gz: 3b6967a70a50979c45f3b4f0c9741c03c8fa4230a7dbd14db92ac49851192ca3f61e0df2f85c3ef2948d4cf10f5e9b24cea0cc8eff6f1221d7e9cb6a52df152c
|
data/example.rb
CHANGED
@@ -23,10 +23,10 @@ post_install = <<EOT
|
|
23
23
|
# TODO
|
24
24
|
EOT
|
25
25
|
|
26
|
-
bs << { :ip => "
|
27
|
-
|
28
|
-
|
29
|
-
:public_keys =>
|
26
|
+
bs << { :ip => "213.133.109.169",
|
27
|
+
:cloud_config => cloud_config,
|
28
|
+
:hostname => 'artemis.massive-insights.com',
|
29
|
+
:public_keys => 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxpbPqgja8qK0pRBu423nuj7ZqJY/VPyABvBtcHQBpnaz20hSo89K+yEJmdg4upKk54906u7OT5tGaFpTYQKUxGgdKO1my8y2tXHDdTGw1A3BZotgIwDDvNTrIYW8JlGOBTVQuHGm6EYf8tEVut+dhueSe0VsK3keTQQwwatSf4uBgYxRMorsVWFVwk+YH2RKC25pbh0teoagL1TVts4OqGTcRJtrO9PHkuHFNCqA5IQVf+BRzwyCNWGaLuX3W/+DOOx3u76UhKBWrWXicVksFUD7tnFJrZohLu6PtKBoSSlVYVO/YgXQEJtsvG1EmEaoMnM2TvdzIWcopdd2jIo8Cw== c.pilka@asconix.com',
|
30
30
|
:post_install => post_install
|
31
31
|
}
|
32
32
|
|
@@ -120,6 +120,8 @@ module Hetzner
|
|
120
120
|
|
121
121
|
remote do |ssh|
|
122
122
|
ssh.exec! "echo \"#{cloud_config}\" > /tmp/cloud-config.yaml"
|
123
|
+
ssh.exec! "wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install -P /tmp"
|
124
|
+
ssh.exec! "chmod a+x /tmp/coreos-install"
|
123
125
|
logger.info "Remote executing: #{@bootstrap_cmd}"
|
124
126
|
output = ssh.exec!(@bootstrap_cmd)
|
125
127
|
logger.info output
|
@@ -178,7 +180,8 @@ module Hetzner
|
|
178
180
|
|
179
181
|
params = {}
|
180
182
|
params[:hostname] = @hostname
|
181
|
-
params[:ip]
|
183
|
+
params[:ip] = @ip
|
184
|
+
params[:public_keys] = @public_keys
|
182
185
|
|
183
186
|
return eruby.result(params)
|
184
187
|
end
|