hetzner-bootstrap-coreos 0.0.3 → 0.0.4

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: b7e89605913827e4091e46f7c2b7265caa61bbbe
4
- data.tar.gz: 288877a5f80d7907f5bb3f7158ad73388a655e11
3
+ metadata.gz: 9880ead6866bb87eab948a60e6244dee092bbc2a
4
+ data.tar.gz: bc014aa8d736d9448aeb259ea1a5f30bf19c26dc
5
5
  SHA512:
6
- metadata.gz: 11f1de7226eff977677521df5cd2e957cf8ccc711b4cb5c8cf929968b5051d77b5d49b270632c5f5885ff4d01446788f055e139e1c4cb92cbd05ae9bdb99fdc4
7
- data.tar.gz: e3ebb7d90cb49e02594ceb5b0f0f309b36b5b07599042bd7e48841a696443ef8b6feef52901f7ca5372800f47618b40c284c439cf5d432c5f94cc7cef4abe706
6
+ metadata.gz: 79f578d9199da9dcb02d92b05f13119fcea6f90c7133303a254739ffac4ee7cb4e80fae5dacbe7ae48b3161ee4aff8f5695fd05d67867d6ddaf4b311ebad2cac
7
+ data.tar.gz: 989c8faa144137ebc63f271f98f1dde3d48678f68ea792a45db6fa1de6c7f96b57e20e5cf5622063493a0d97b1a11e441c1f8f7dd1f0c7646833d0363cdcd56e
data/README.md CHANGED
@@ -5,7 +5,7 @@ This gem allows you to bootstrap CoreOS on a Hetzner root server.
5
5
  [![Gem Version](https://badge.fury.io/rb/hetzner-bootstrap-coreos.png)](http://badge.fury.io/rb/hetzner-bootstrap-coreos)
6
6
 
7
7
  ## What it does:
8
- /3.
8
+
9
9
  In our case we are running a large [CoreOS](https://coreos.com) cluster and which uses bare metal servers hosted at Hetzner. This Ruby gem helps to fully automate the provisioning of CoreOS on a Hetzner root server.
10
10
 
11
11
  Warning: All existing data on the system will be lost!
data/example.rb CHANGED
@@ -4,10 +4,19 @@ require "hetzner-bootstrap-coreos"
4
4
 
5
5
  # Retrieve your API login credentials from the Hetzner admin interface
6
6
  # at https://robot.your-server.de and assign the appropriate environment
7
- # variables ENV['ROBOT_USER'] and ENV['ROBOT_PASSWORD']
7
+ # variables:
8
+ #
9
+ # $~ export HBC_ROBOT_USER="hetzner_user"
10
+ # $~ export HBC_ROBOT_PASSWORD="verysecret"
11
+ # $~ export HBC_IP_ADDRESS="1.2.3.4"
12
+ # $~ export HBC_HOSTNAME="core-01.example.com"
13
+ #
14
+ # Next launch the bootstrap script:
15
+ #
16
+ # $~ ./example.rb
8
17
 
9
18
  bs = Hetzner::Bootstrap::CoreOS.new(
10
- :api => Hetzner::API.new(ENV['ROBOT_USER'], ENV['ROBOT_PASSWORD'])
19
+ :api => Hetzner::API.new(ENV['HBC_ROBOT_USER'], ENV['HBC_ROBOT_PASSWORD'])
11
20
  )
12
21
 
13
22
  # Main configuration (cloud-config)
@@ -23,9 +32,9 @@ post_install = <<EOT
23
32
  # TODO
24
33
  EOT
25
34
 
26
- bs << { :ip => "213.133.109.169",
35
+ bs << { :ip => ENV['HBC_IP_ADDRESS'],
27
36
  :cloud_config => cloud_config,
28
- :hostname => 'artemis.massive-insights.com',
37
+ :hostname => ENV['HBC_HOSTNAME']
29
38
  :public_keys => 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxpbPqgja8qK0pRBu423nuj7ZqJY/VPyABvBtcHQBpnaz20hSo89K+yEJmdg4upKk54906u7OT5tGaFpTYQKUxGgdKO1my8y2tXHDdTGw1A3BZotgIwDDvNTrIYW8JlGOBTVQuHGm6EYf8tEVut+dhueSe0VsK3keTQQwwatSf4uBgYxRMorsVWFVwk+YH2RKC25pbh0teoagL1TVts4OqGTcRJtrO9PHkuHFNCqA5IQVf+BRzwyCNWGaLuX3W/+DOOx3u76UhKBWrWXicVksFUD7tnFJrZohLu6PtKBoSSlVYVO/YgXQEJtsvG1EmEaoMnM2TvdzIWcopdd2jIo8Cw== c.pilka@asconix.com',
30
39
  :post_install => post_install
31
40
  }
@@ -41,6 +41,7 @@ module Hetzner
41
41
 
42
42
  def enable_rescue_mode(options = {})
43
43
  result = @api.enable_rescue! @ip, @rescue_os, @rescue_os_bit
44
+ puts ">>> >>> >>> #{result.inspect}"
44
45
 
45
46
  if result.success? && result['rescue']
46
47
  @password = result['rescue']['password']
@@ -1,7 +1,7 @@
1
1
  module Hetzner
2
2
  class Bootstrap
3
3
  class CoreOS
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Pilka