hetzner-bootstrap-coreos 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d07dc6e9373f36a16bc6da8782dee0d1c9b958d2
4
- data.tar.gz: 0fc042ce7cfc437391037d4c6bc3e1b66ffb587e
3
+ metadata.gz: 17a9ee5a7524124e0df03b9cff9ca9b5ae20b298
4
+ data.tar.gz: 7a6be15f231298be2f119a5d4c59776aa7058c04
5
5
  SHA512:
6
- metadata.gz: e4a4e45ee787118c7094771f40c7a9bc4b5897d7e621161b6891a022f817be95b9ac99e20a34c659a66ce9e4426f08c4cac55fb90d8a1804c60448f28a5f843a
7
- data.tar.gz: 812962458371ed6c2d600120e8e38303a3b7379de10a5d6244773fd5c03cf9b1db9b6ae36af5524a79fb722180f8c8b41bd02812d22c21bd401a4036e8c5dca5
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 => "1.2.3.4",
27
- :cloud_config => cloud_config,
28
- :hostname => 'artemis.massive-insights.com',
29
- :public_keys => "~/.ssh/id_dsa.pub",
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
 
@@ -13,7 +13,7 @@ module Hetzner
13
13
  end
14
14
 
15
15
  def to_s
16
- @raw_clooud_config
16
+ @raw_cloud_config
17
17
  end
18
18
  end
19
19
  end
@@ -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] = @ip
183
+ params[:ip] = @ip
184
+ params[:public_keys] = @public_keys
182
185
 
183
186
  return eruby.result(params)
184
187
  end
@@ -1,7 +1,7 @@
1
1
  module Hetzner
2
2
  class Bootstrap
3
3
  class CoreOS
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hetzner-bootstrap-coreos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Pilka