kitchen-linode 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +43 -11
- data/lib/kitchen/driver/linode.rb +4 -4
- data/lib/kitchen/driver/linode_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec51aec36f89f3503b97aa6fd3bcf6cbcc725cb
|
4
|
+
data.tar.gz: ca237ece7e7065f5fdcb74f3d9c55ba63b0965f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673fe3f5c1d1e83fbb9d63345d41a13db1b1da1c6d3324ec0c7b847a0afa3a737ab5f303084886e4c0face2531dd4097617cfd698fae23bf605a30ba64551478
|
7
|
+
data.tar.gz: 724418a084bd25d62d17af7688397bb1bea3a79c12efe1956a52ae1cb903eaffee4197a51ac584adc2c8289313f99c6846de8d1a4d387547248fccf01af7eaea
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -23,13 +23,16 @@ For many of these, you can specify an ID number, a full name, or a partial name
|
|
23
23
|
LINODE_API_KEY Linode API Key environment variable, default: nil
|
24
24
|
:username ssh user name, default: 'root'
|
25
25
|
:password password for user, default: randomly generated hash
|
26
|
-
:image Linux distribution, default:
|
27
|
-
:data_center data center, default:
|
28
|
-
:flavor linode type/amount of RAM, default:
|
26
|
+
:image Linux distribution, default: "Debian 8.1"
|
27
|
+
:data_center data center, default: "Atlanta"
|
28
|
+
:flavor linode type/amount of RAM, default: "Linode 1024"
|
29
29
|
:payment_terms if you happen to have legacy default: 1
|
30
|
-
:kernel Linux kernel, default:
|
30
|
+
:kernel Linux kernel, default: "Latest 64 bit"
|
31
31
|
:private_key_path Location of your private key file, default: "~/.ssh/id_rsa"
|
32
32
|
:public_key_path Location of your public key file, default: "~/.ssh/id_rsa.pub"
|
33
|
+
:ssh_timeout ssh timeout, default: 600 (seconds)
|
34
|
+
:sudo use sudo, default: True
|
35
|
+
:port ssh port, default: 22
|
33
36
|
```
|
34
37
|
|
35
38
|
## <a name="usage"></a> Usage
|
@@ -46,7 +49,6 @@ driver:
|
|
46
49
|
|
47
50
|
provisioner:
|
48
51
|
name: salt_solo
|
49
|
-
salt_bootstrap_options: -P
|
50
52
|
formula: vim
|
51
53
|
state_top:
|
52
54
|
base:
|
@@ -55,20 +57,50 @@ provisioner:
|
|
55
57
|
|
56
58
|
platforms:
|
57
59
|
- name: debian_jessie
|
58
|
-
driver:
|
59
|
-
flavor: 1024
|
60
|
-
data_center: Dallas
|
61
|
-
kernel: 4.0.2-x86_64-linode56
|
62
|
-
image: Debian 8.1
|
63
60
|
|
64
61
|
suites:
|
65
62
|
- name: default
|
66
|
-
|
67
63
|
```
|
68
64
|
then you're ready to run `kitchen test` or `kitchen converge`
|
69
65
|
```
|
70
66
|
$ kitchen test
|
71
67
|
```
|
68
|
+
If you want to create a second yaml config; one for using Vagrant locally but a second to use the Linode driver when run on your CI server, create a config with a name like `.kitchen-ci.yml`:
|
69
|
+
```
|
70
|
+
---
|
71
|
+
driver:
|
72
|
+
name: linode
|
73
|
+
|
74
|
+
provisioner:
|
75
|
+
name: salt_solo
|
76
|
+
formula: vim
|
77
|
+
state_top:
|
78
|
+
base:
|
79
|
+
"*":
|
80
|
+
- vim
|
81
|
+
|
82
|
+
platforms:
|
83
|
+
- name: debian_jessie
|
84
|
+
|
85
|
+
suites:
|
86
|
+
- name: default
|
87
|
+
```
|
88
|
+
Then you can run the second config by changing the KITCHEN_YAML environment variable:
|
89
|
+
```
|
90
|
+
$ KITCHEN_YAML="./.kitchen-ci.yml" kitchen test
|
91
|
+
```
|
92
|
+
If you want to change any of the default settings, you can do it in the 'platforms' area:
|
93
|
+
```
|
94
|
+
...
|
95
|
+
platforms:
|
96
|
+
- name: debian_jessie
|
97
|
+
driver:
|
98
|
+
flavor: 2048
|
99
|
+
data_center: Dallas
|
100
|
+
kernel: 4.0.2-x86_64-linode56
|
101
|
+
image: Debian 7
|
102
|
+
...
|
103
|
+
```
|
72
104
|
|
73
105
|
### <a name="config-require-chef-omnibus"></a> require\_chef\_omnibus
|
74
106
|
|
@@ -32,12 +32,12 @@ module Kitchen
|
|
32
32
|
|
33
33
|
default_config :username, 'root'
|
34
34
|
default_config :password, nil
|
35
|
-
default_config :image,
|
36
|
-
default_config :data_center,
|
37
|
-
default_config :flavor,
|
35
|
+
default_config :image, 140
|
36
|
+
default_config :data_center, 4
|
37
|
+
default_config :flavor, 1
|
38
38
|
default_config :payment_terms, 1
|
39
39
|
default_config :ssh_key_name, nil
|
40
|
-
default_config :kernel,
|
40
|
+
default_config :kernel, 138
|
41
41
|
|
42
42
|
default_config :sudo, true
|
43
43
|
default_config :port, 22
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-linode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|