hetzner-bootstrap-coreos 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +1 -1
- data/example.rb +13 -4
- data/lib/hetzner/bootstrap/coreos/target.rb +1 -0
- data/lib/hetzner/bootstrap/coreos/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: 9880ead6866bb87eab948a60e6244dee092bbc2a
|
4
|
+
data.tar.gz: bc014aa8d736d9448aeb259ea1a5f30bf19c26dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
[](http://badge.fury.io/rb/hetzner-bootstrap-coreos)
|
6
6
|
|
7
7
|
## What it does:
|
8
|
-
|
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
|
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['
|
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 =>
|
35
|
+
bs << { :ip => ENV['HBC_IP_ADDRESS'],
|
27
36
|
:cloud_config => cloud_config,
|
28
|
-
:hostname => '
|
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
|
}
|