virtualmaster 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +85 -84
- data/lib/vmaster/helpers.rb +9 -7
- data/lib/vmaster/version.rb +1 -1
- data/virtualmaster.gemspec +2 -2
- metadata +55 -18
data/README.mdown
CHANGED
@@ -1,84 +1,85 @@
|
|
1
|
-
# Virtualmaster command line interface
|
2
|
-
|
3
|
-
|
4
|
-
Proof of concept of Virtualmaster command line interface distributed as a RubyGem.
|
5
|
-
|
6
|
-
# virtualmaster config
|
7
|
-
Running virtualmaster for first time.
|
8
|
-
Setting up environment.
|
9
|
-
|
10
|
-
Your API credentials are available from http://www.virtualmaster.cz/en/api#settings
|
11
|
-
|
12
|
-
Enter your API username:
|
13
|
-
Enter your API password:
|
14
|
-
|
15
|
-
Settings stored within ~/.virtualmaster
|
16
|
-
|
17
|
-
# virtualmaster create demo1 --image ubuntu_lucid
|
18
|
-
Using image 'ubuntu_lucid' with ID 124
|
19
|
-
Creating 'micro' instance (512 MB memory/10 GB storage)
|
20
|
-
Instance launch request accepted. Instance ID 47135
|
21
|
-
|
22
|
-
Default password 'AdVc:PBi8&7L'.
|
23
|
-
|
24
|
-
Waiting for instance................
|
25
|
-
Instance ready.
|
26
|
-
|
27
|
-
Try to login using `ssh root@80.79.29.246'
|
28
|
-
|
29
|
-
# virtualmaster
|
30
|
-
|
31
|
-
| name | state | ip_address |
|
32
|
-
|
33
|
-
| demo1 | RUNNING | 195.140.253.88 |
|
34
|
-
|
35
|
-
|
36
|
-
## Install
|
37
|
-
|
38
|
-
The current version of `virtualmaster` command line interface should work with Ruby 1.8.7+.
|
39
|
-
|
40
|
-
To install you need to have Ruby. The CLI itself is available as RubyGem
|
41
|
-
|
42
|
-
gem install virtualmaster
|
43
|
-
|
44
|
-
## Automatically install SSH keys
|
45
|
-
|
46
|
-
Virtualmaster CLI can install your SSH keys to a remote machine automatically using `--identity IDENTITY_FILE` command-line option.
|
47
|
-
|
48
|
-
virtualmaster create demo1 --image ubuntu_lucid --identity ~/.ssh/id_rsa
|
49
|
-
Using image 'ubuntu_lucid' with ID 124
|
50
|
-
Creating 'micro' instance (512 MB memory/10 GB storage)
|
51
|
-
Instance launch request accepted. Instance ID 45387
|
52
|
-
|
53
|
-
Default password 'vBK7i!kK'
|
54
|
-
|
55
|
-
Waiting for instance............
|
56
|
-
Instance ready.
|
57
|
-
|
58
|
-
Loading identity file /Users/virtualmaster/.ssh/id_rsa
|
59
|
-
|
60
|
-
Try to login using `ssh root@195.140.253.130'
|
61
|
-
|
62
|
-
## Instance provisioning with shell scripts
|
63
|
-
|
64
|
-
First steps towards automated infrastructure is provision. Using Virtualmaster CLI shell provisioner you can launch a custom shell script once server is created and automate initial setup.
|
65
|
-
|
66
|
-
virtualmaster create demo1 --script ~/setup.sh
|
67
|
-
|
68
|
-
Callbacks (like script and identity) can be run at the same time.
|
69
|
-
|
70
|
-
## Instance size
|
71
|
-
|
72
|
-
Default hardware profile for instances are defined in the [helpers file](https://github.com/Virtualmaster/virtualmaster-cli/blob/master/lib/vmaster/helpers.rb). Profiles are stored in configuration file when user runs `virtualmaster config`.
|
73
|
-
|
74
|
-
Provided instance sizes are just guidance and you are free to create your own settings by editing `~/.virtualmaster` config file.
|
75
|
-
|
76
|
-
|
77
|
-
## More information
|
78
|
-
|
79
|
-
Additional topics are available in [the wiki](https://github.com/Virtualmaster/virtualmaster-cli/wiki).
|
80
|
-
|
81
|
-
## Changelog
|
82
|
-
|
83
|
-
* v0.
|
84
|
-
* v0.0.
|
1
|
+
# Virtualmaster command line interface
|
2
|
+
|
3
|
+
|
4
|
+
Proof of concept of Virtualmaster command line interface distributed as a RubyGem.
|
5
|
+
|
6
|
+
# virtualmaster config
|
7
|
+
Running virtualmaster for first time.
|
8
|
+
Setting up environment.
|
9
|
+
|
10
|
+
Your API credentials are available from http://www.virtualmaster.cz/en/api#settings
|
11
|
+
|
12
|
+
Enter your API username:
|
13
|
+
Enter your API password:
|
14
|
+
|
15
|
+
Settings stored within ~/.virtualmaster
|
16
|
+
|
17
|
+
# virtualmaster create demo1 --image ubuntu_lucid
|
18
|
+
Using image 'ubuntu_lucid' with ID 124
|
19
|
+
Creating 'micro' instance (512 MB memory/10 GB storage)
|
20
|
+
Instance launch request accepted. Instance ID 47135
|
21
|
+
|
22
|
+
Default password 'AdVc:PBi8&7L'.
|
23
|
+
|
24
|
+
Waiting for instance................
|
25
|
+
Instance ready.
|
26
|
+
|
27
|
+
Try to login using `ssh root@80.79.29.246'
|
28
|
+
|
29
|
+
# virtualmaster list
|
30
|
+
+-------+---------+----------------+--------------+
|
31
|
+
| name | state | ip_address | zone |
|
32
|
+
+-------+---------+----------------+--------------+
|
33
|
+
| demo1 | RUNNING | 195.140.253.88 | vm-prague-l1 |
|
34
|
+
+-------+---------+----------------+--------------+
|
35
|
+
|
36
|
+
## Install
|
37
|
+
|
38
|
+
The current version of `virtualmaster` command line interface should work with Ruby 1.8.7+.
|
39
|
+
|
40
|
+
To install you need to have Ruby. The CLI itself is available as RubyGem
|
41
|
+
|
42
|
+
gem install virtualmaster
|
43
|
+
|
44
|
+
## Automatically install SSH keys
|
45
|
+
|
46
|
+
Virtualmaster CLI can install your SSH keys to a remote machine automatically using `--identity IDENTITY_FILE` command-line option.
|
47
|
+
|
48
|
+
virtualmaster create demo1 --image ubuntu_lucid --identity ~/.ssh/id_rsa
|
49
|
+
Using image 'ubuntu_lucid' with ID 124
|
50
|
+
Creating 'micro' instance (512 MB memory/10 GB storage)
|
51
|
+
Instance launch request accepted. Instance ID 45387
|
52
|
+
|
53
|
+
Default password 'vBK7i!kK'
|
54
|
+
|
55
|
+
Waiting for instance............
|
56
|
+
Instance ready.
|
57
|
+
|
58
|
+
Loading identity file /Users/virtualmaster/.ssh/id_rsa
|
59
|
+
|
60
|
+
Try to login using `ssh root@195.140.253.130'
|
61
|
+
|
62
|
+
## Instance provisioning with shell scripts
|
63
|
+
|
64
|
+
First steps towards automated infrastructure is provision. Using Virtualmaster CLI shell provisioner you can launch a custom shell script once server is created and automate initial setup.
|
65
|
+
|
66
|
+
virtualmaster create demo1 --script ~/setup.sh
|
67
|
+
|
68
|
+
Callbacks (like script and identity) can be run at the same time.
|
69
|
+
|
70
|
+
## Instance size
|
71
|
+
|
72
|
+
Default hardware profile for instances are defined in the [helpers file](https://github.com/Virtualmaster/virtualmaster-cli/blob/master/lib/vmaster/helpers.rb). Profiles are stored in configuration file when user runs `virtualmaster config`.
|
73
|
+
|
74
|
+
Provided instance sizes are just guidance and you are free to create your own settings by editing `~/.virtualmaster` config file.
|
75
|
+
|
76
|
+
|
77
|
+
## More information
|
78
|
+
|
79
|
+
Additional topics are available in [the wiki](https://github.com/Virtualmaster/virtualmaster-cli/wiki).
|
80
|
+
|
81
|
+
## Changelog
|
82
|
+
|
83
|
+
* v0.1.6 - Fixed default config file generator - images and profiles
|
84
|
+
* v0.0.5 - Added support for availability zones and instance levels
|
85
|
+
* v0.0.3 - First public release
|
data/lib/vmaster/helpers.rb
CHANGED
@@ -3,15 +3,17 @@ module VirtualMaster
|
|
3
3
|
CONFIG_FILE = ".virtualmaster"
|
4
4
|
DEFAULT_URL = "https://www.virtualmaster.com/virtualmaster/services/deltacloud"
|
5
5
|
|
6
|
-
DEFAULT_IMAGE =
|
6
|
+
DEFAULT_IMAGE = 2664
|
7
7
|
DEFAULT_PROFILE = "micro"
|
8
8
|
|
9
9
|
# pre-defined list of images
|
10
10
|
IMAGES = {
|
11
|
-
:ubuntu_precise =>
|
12
|
-
:ubuntu_lucid =>
|
13
|
-
:debian_squeeze =>
|
14
|
-
:centos_6 =>
|
11
|
+
:ubuntu_precise => 2664,
|
12
|
+
:ubuntu_lucid => 2818,
|
13
|
+
:debian_squeeze => 2808,
|
14
|
+
:centos_6 => 2818,
|
15
|
+
:centos_5 => 2804,
|
16
|
+
:archlinux => 2668
|
15
17
|
}
|
16
18
|
|
17
19
|
PROFILES = {
|
@@ -36,8 +38,8 @@ module VirtualMaster
|
|
36
38
|
:storage => 40960,
|
37
39
|
},
|
38
40
|
:large => {
|
39
|
-
:memory =>
|
40
|
-
:storage =>
|
41
|
+
:memory => 7000,
|
42
|
+
:storage => 20480,
|
41
43
|
}
|
42
44
|
}
|
43
45
|
|
data/lib/vmaster/version.rb
CHANGED
data/virtualmaster.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "vmaster/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "virtualmaster"
|
7
7
|
s.version = VirtualMaster::VERSION
|
8
|
-
s.authors = ["Radim Marek"]
|
9
|
-
s.email = ["
|
8
|
+
s.authors = ["Adam Kliment", "Radim Marek"]
|
9
|
+
s.email = ["adam.kliment@virtualmaster.com"]
|
10
10
|
s.homepage = "https://github.com/virtualmaster/virtualmaster-cli"
|
11
11
|
s.summary = %q{Command line interface to Virtualmaster}
|
12
12
|
s.description = %q{Command line interface to Virtualmaster. Control your virtual infrastructure.}
|
metadata
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtualmaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
+
- Adam Kliment
|
8
9
|
- Radim Marek
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: commander
|
16
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ~>
|
@@ -21,10 +22,15 @@ dependencies:
|
|
21
22
|
version: 4.1.2
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 4.1.2
|
25
31
|
- !ruby/object:Gem::Dependency
|
26
32
|
name: deltacloud-client
|
27
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
28
34
|
none: false
|
29
35
|
requirements:
|
30
36
|
- - ~>
|
@@ -32,10 +38,15 @@ dependencies:
|
|
32
38
|
version: 0.5.0
|
33
39
|
type: :runtime
|
34
40
|
prerelease: false
|
35
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.5.0
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: terminal-table
|
38
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,10 +54,15 @@ dependencies:
|
|
43
54
|
version: 1.4.4
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.4.4
|
47
63
|
- !ruby/object:Gem::Dependency
|
48
64
|
name: net-ssh
|
49
|
-
requirement:
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
50
66
|
none: false
|
51
67
|
requirements:
|
52
68
|
- - ~>
|
@@ -54,10 +70,15 @@ dependencies:
|
|
54
70
|
version: 2.3.0
|
55
71
|
type: :runtime
|
56
72
|
prerelease: false
|
57
|
-
version_requirements:
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 2.3.0
|
58
79
|
- !ruby/object:Gem::Dependency
|
59
80
|
name: rspec
|
60
|
-
requirement:
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
61
82
|
none: false
|
62
83
|
requirements:
|
63
84
|
- - ~>
|
@@ -65,10 +86,15 @@ dependencies:
|
|
65
86
|
version: '2'
|
66
87
|
type: :development
|
67
88
|
prerelease: false
|
68
|
-
version_requirements:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '2'
|
69
95
|
- !ruby/object:Gem::Dependency
|
70
96
|
name: simplecov
|
71
|
-
requirement:
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
72
98
|
none: false
|
73
99
|
requirements:
|
74
100
|
- - ! '>='
|
@@ -76,10 +102,15 @@ dependencies:
|
|
76
102
|
version: '0'
|
77
103
|
type: :development
|
78
104
|
prerelease: false
|
79
|
-
version_requirements:
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
80
111
|
- !ruby/object:Gem::Dependency
|
81
112
|
name: simplecov-rcov
|
82
|
-
requirement:
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
83
114
|
none: false
|
84
115
|
requirements:
|
85
116
|
- - ! '>='
|
@@ -87,10 +118,15 @@ dependencies:
|
|
87
118
|
version: '0'
|
88
119
|
type: :development
|
89
120
|
prerelease: false
|
90
|
-
version_requirements:
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
91
127
|
description: Command line interface to Virtualmaster. Control your virtual infrastructure.
|
92
128
|
email:
|
93
|
-
-
|
129
|
+
- adam.kliment@virtualmaster.com
|
94
130
|
executables:
|
95
131
|
- virtualmaster
|
96
132
|
extensions: []
|
@@ -137,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
173
|
version: '0'
|
138
174
|
requirements: []
|
139
175
|
rubyforge_project: vmaster
|
140
|
-
rubygems_version: 1.8.
|
176
|
+
rubygems_version: 1.8.24
|
141
177
|
signing_key:
|
142
178
|
specification_version: 3
|
143
179
|
summary: Command line interface to Virtualmaster
|
@@ -145,3 +181,4 @@ test_files:
|
|
145
181
|
- spec/commands_spec.rb
|
146
182
|
- spec/deltacloud_spec.rb
|
147
183
|
- spec/spec_helper.rb
|
184
|
+
has_rdoc:
|