knife-kvm 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +16 -6
- data/lib/chef/knife/kvm_vm_delete.rb +1 -1
- data/lib/knife-kvm/version.rb +1 -1
- metadata +9 -9
data/README.rdoc
CHANGED
@@ -1,14 +1,21 @@
|
|
1
1
|
= Knife KVM
|
2
2
|
|
3
|
+
http://github.com/rubiojr/knife-kvm
|
4
|
+
|
3
5
|
= DESCRIPTION:
|
4
6
|
|
5
|
-
This is the unofficial Opscode Knife plugin for KVM. This plugin gives knife the ability to create, bootstrap, and manage virtual machines in a
|
7
|
+
This is the unofficial Opscode Knife plugin for KVM. This plugin gives knife the ability to create, bootstrap, and manage virtual machines in a Linux KVM host.
|
6
8
|
|
7
|
-
|
9
|
+
= PRE-REQUISITES
|
8
10
|
|
9
|
-
You'll
|
11
|
+
* You'll need an KVM host with SSH enabled and a privileged user account to connect to it via SSH
|
12
|
+
* libguestfs-tools (virt-cat in particular) installed in the hypervisor host
|
13
|
+
* A special VM template (in QCOW2/RAW) with CentOS/Ubuntu/Fedora and installed. I've got a couple of them to share:
|
10
14
|
|
11
|
-
http://
|
15
|
+
- http://download.frameos.org/appliances/centos5-jeos-ip-info.qcow2
|
16
|
+
- http://download.frameos.org/appliances/centos6-jeos-with-ip-info.qcow2
|
17
|
+
|
18
|
+
These templates have a script (ip-info) that is executed when the OS boots and writes all the ip addresses available in the guest to the /tmp/ip-info file (https://gist.github.com/1405266). This information is used to retrieve the VM ip addresses so that knife-kvm can bootstrap the Chef client.
|
12
19
|
|
13
20
|
= INSTALLATION:
|
14
21
|
|
@@ -34,10 +41,13 @@ You also have the option of passing your KVM Host/Username/Password into the ind
|
|
34
41
|
|
35
42
|
# provision a new Ubuntu 11.10 VM
|
36
43
|
knife kvm vm create --template-file ~/.chef/bootstrap/ubuntu11.10-gems.erb \
|
37
|
-
--vm-disk /path-to/ubuntu1110-x64
|
44
|
+
--vm-disk /path-to/ubuntu1110-x64.qcow2 \
|
38
45
|
--vm-name knife-kvm-test-ubuntu \
|
39
|
-
--
|
46
|
+
--ssh-user ubuntu \
|
47
|
+
--ssh-password ubuntu \
|
48
|
+
--pool default \
|
40
49
|
--kvm-host my-test-host \
|
50
|
+
--kvm-user root \
|
41
51
|
--kvm-password secret
|
42
52
|
|
43
53
|
= SUBCOMMANDS:
|
data/lib/knife-kvm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-kvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
16
|
-
requirement: &
|
16
|
+
requirement: &12162280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *12162280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: terminal-table
|
27
|
-
requirement: &
|
27
|
+
requirement: &12161860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *12161860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: alchemist
|
38
|
-
requirement: &
|
38
|
+
requirement: &12161400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *12161400
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: chef
|
49
|
-
requirement: &
|
49
|
+
requirement: &12160900 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0.10'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *12160900
|
58
58
|
description: KVM Support for Chef's Knife Command
|
59
59
|
email:
|
60
60
|
- rubiojr@frameos.org
|