vagrant-ovirt4 1.2.0 → 2.1.0
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 +5 -5
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/release.yml +20 -0
- data/.gitignore +1 -1
- data/CHANGELOG +31 -0
- data/Dockerfile +11 -0
- data/Gemfile +6 -7
- data/Gemfile.lock +98 -87
- data/README.md +27 -3
- data/Rakefile +1 -7
- data/SECURITY.md +23 -0
- data/lib/vagrant-ovirt4.rb +4 -0
- data/lib/vagrant-ovirt4/action.rb +29 -9
- data/lib/vagrant-ovirt4/action/connect_ovirt.rb +19 -6
- data/lib/vagrant-ovirt4/action/create_network_interfaces.rb +57 -43
- data/lib/vagrant-ovirt4/action/create_vm.rb +87 -7
- data/lib/vagrant-ovirt4/action/destroy_vm.rb +14 -1
- data/lib/vagrant-ovirt4/action/disconnect_ovirt.rb +25 -0
- data/lib/vagrant-ovirt4/action/halt_vm.rb +11 -0
- data/lib/vagrant-ovirt4/action/read_ssh_info.rb +6 -1
- data/lib/vagrant-ovirt4/action/read_state.rb +7 -1
- data/lib/vagrant-ovirt4/action/resize_disk.rb +18 -17
- data/lib/vagrant-ovirt4/action/snapshot_list.rb +15 -19
- data/lib/vagrant-ovirt4/action/start_vm.rb +37 -23
- data/lib/vagrant-ovirt4/action/wait_til_suspended.rb +1 -1
- data/lib/vagrant-ovirt4/action/wait_till_down.rb +13 -2
- data/lib/vagrant-ovirt4/action/wait_till_up.rb +35 -6
- data/lib/vagrant-ovirt4/config.rb +60 -2
- data/lib/vagrant-ovirt4/errors.rb +20 -0
- data/lib/vagrant-ovirt4/plugin.rb +3 -3
- data/lib/vagrant-ovirt4/version.rb +1 -1
- data/locales/en.yml +17 -1
- data/spec/vagrant-ovirt4/config_spec.rb +33 -8
- data/templates/Vagrantfile.erb +199 -0
- data/tools/prepare_redhat_for_box.sh +6 -1
- data/vagrant-ovirt4.gemspec +2 -1
- metadata +26 -15
- data/lib/vagrant-ovirt4/action/sync_folders.rb +0 -69
- data/lib/vagrant-ovirt4/cap/nic_mac_addresses.rb +0 -15
- data/test.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 032a8a924b7d7f1870fc319f4d4ed13f33910d0bb6bccde70fce977f25c8cafd
|
4
|
+
data.tar.gz: d3495cebef0d0daf9c5d2d9bbd09a3c271844844c4a334258049dc55a0f31062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b04cf43df3269c745ffb0bb7d503f9f192da7e3b7939d2b2428e3597684e4ed6dbebca051c16ff20529415f4a85ea506070658d84089e47bf9fbf9e16ae8c28
|
7
|
+
data.tar.gz: e6f60e4dbb661bcfa8cc39f8cd0fcb4633949490abf8910a5fc8f792c9ef45451aff4d6aed449e4e52e7d1cb020f6327a1dcf2d4743a1a342463263cf114782c
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
paths:
|
6
|
+
- lib/vagrant-ovirt4/version.rb
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: fregante/setup-git-user@v1
|
15
|
+
- name: Release Gem
|
16
|
+
uses: cadwallion/publish-rubygems-action@master
|
17
|
+
env:
|
18
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
19
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
20
|
+
RELEASE_COMMAND: rake release
|
data/.gitignore
CHANGED
data/CHANGELOG
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
v2.1.0
|
2
|
+
41b8c63 Move where rspec-mocks is included.
|
3
|
+
0015c45 Update engine binding.
|
4
|
+
b2a0015 Not actually using the vagrant-spec thing.
|
5
|
+
a598043 Address the change in parsing.
|
6
|
+
0ad3b72 Get the tests runnable.
|
7
|
+
a8f1d5f Test the connection before passing it on for use.
|
8
|
+
8adf277 list only snapshots for vm's defined in the environment
|
9
|
+
a2ee89b Add security.md
|
10
|
+
3399aab Add CHANGELOG
|
11
|
+
|
12
|
+
v2.0.0
|
13
|
+
|
14
|
+
1810832 Attempt to fix gem push
|
15
|
+
9d1ef6b handle fallback with rescue
|
16
|
+
6cc0f90 fix for backwards compatibility with ovirt 4.3
|
17
|
+
2298314 Make no assumptions on biosdevname/systemd device naming
|
18
|
+
1d870df Support for network interfaces named by biosdevname
|
19
|
+
5c8035a add missing translation
|
20
|
+
f9b6e28 fixed double disconnect due to action_up used in combination wth with_ovirt
|
21
|
+
96f17c0 fixed doule disconnect on reload due to use of with_ovirt
|
22
|
+
697e3d4 fixed inconsistent usages of memory units (MB/MiB and GB/GiB)
|
23
|
+
5a68e8b vagrant destroy only calls halt if vm is up
|
24
|
+
8772ee9 fix for erroneous rsync and state error due to missing ip address
|
25
|
+
5b49114 Bump nokogiri from 1.10.9 to 1.11.0
|
26
|
+
b8314fb fix for waiting indefinitely for an ip when deploying on ovirt 4.4
|
27
|
+
722f2e0 Default to rsync instead of NFS like before
|
28
|
+
2582f53 Use vagrant builtin rsync folder sync
|
29
|
+
84c6c53 In case graceful shutdown failed, fallback to stopping VM immediately
|
30
|
+
640d640 Fix up dependencies
|
31
|
+
029b53b give guests a chance to shutdown gracefully before pulling the plug with a poweroff
|
data/Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
FROM ruby:2.2.6
|
2
|
+
ARG jenkins_uid=997
|
3
|
+
ARG jenkins_gid=994
|
4
|
+
ENV JENKINS_UID=$jenkins_uid
|
5
|
+
ENV JENKINS_GID=$jenkins_gid
|
6
|
+
RUN apt-get update && apt-get install -y sudo
|
7
|
+
RUN groupadd -g $JENKINS_GID jenkins
|
8
|
+
RUN useradd jenkins -u $JENKINS_UID -g $JENKINS_GID --shell /bin/bash --create-home
|
9
|
+
RUN echo '%jenkins ALL=NOPASSWD: ALL' >> /etc/sudoers
|
10
|
+
RUN chown -R :jenkins /usr/local/bundle /usr/local/bin
|
11
|
+
USER jenkins
|
data/Gemfile
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem '
|
4
|
+
gem 'rake'
|
5
|
+
gem 'rspec-core'
|
6
|
+
gem 'rspec-its'
|
7
|
+
gem "rspec-mocks", "~> 3.5"
|
5
8
|
gem 'pry'
|
6
9
|
gem 'byebug'
|
7
10
|
gem 'pry-byebug'
|
8
|
-
|
9
|
-
|
10
|
-
group :testing do
|
11
|
-
gem 'rspec-its'
|
12
|
-
gem 'rspec'
|
13
|
-
gem 'rake'
|
11
|
+
gem 'rake-release'
|
12
|
+
gem "vagrant", git: "https://github.com/hashicorp/vagrant.git"
|
14
13
|
end
|
15
14
|
|
16
15
|
group :plugins do
|
data/Gemfile.lock
CHANGED
@@ -1,140 +1,149 @@
|
|
1
1
|
GIT
|
2
|
-
remote:
|
3
|
-
revision:
|
2
|
+
remote: https://github.com/hashicorp/vagrant.git
|
3
|
+
revision: 22795b161bf67a4c0ebbe32c9ce8777cb888c4a7
|
4
4
|
specs:
|
5
|
-
vagrant (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
vagrant (2.2.11.dev)
|
6
|
+
bcrypt_pbkdf (~> 1.0.0)
|
7
|
+
childprocess (~> 4.0.0)
|
8
|
+
ed25519 (~> 1.2.4)
|
9
|
+
erubi
|
10
|
+
hashicorp-checkpoint (~> 0.1.5)
|
11
|
+
i18n (~> 1.8)
|
12
|
+
listen (~> 3.1)
|
11
13
|
log4r (~> 1.1.9, < 1.1.11)
|
12
|
-
|
13
|
-
net-
|
14
|
-
net-
|
15
|
-
|
14
|
+
mime (~> 0.4.4)
|
15
|
+
net-scp (~> 1.2.0)
|
16
|
+
net-sftp (~> 3.0)
|
17
|
+
net-ssh (~> 6.0)
|
16
18
|
rb-kqueue (~> 0.2.0)
|
17
19
|
rest-client (>= 1.6.0, < 3.0)
|
18
20
|
ruby_dep (<= 1.3.1)
|
21
|
+
rubyzip (~> 2.0)
|
22
|
+
vagrant_cloud (~> 2.0.3)
|
19
23
|
wdm (~> 0.1.0)
|
20
|
-
winrm (
|
21
|
-
winrm-elevated (
|
22
|
-
winrm-fs (
|
24
|
+
winrm (>= 2.3.4, < 3.0)
|
25
|
+
winrm-elevated (>= 1.2.1, < 2.0)
|
26
|
+
winrm-fs (>= 1.3.4, < 2.0)
|
23
27
|
|
24
28
|
PATH
|
25
29
|
remote: .
|
26
30
|
specs:
|
27
|
-
vagrant-ovirt4 (
|
31
|
+
vagrant-ovirt4 (2.1.0)
|
28
32
|
filesize (~> 0)
|
29
|
-
|
33
|
+
nokogiri (~> 1)
|
34
|
+
ovirt-engine-sdk (~> 4)
|
30
35
|
|
31
36
|
GEM
|
32
37
|
remote: http://rubygems.org/
|
33
38
|
specs:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
coderay (1.1.
|
39
|
-
|
40
|
-
|
39
|
+
bcrypt_pbkdf (1.0.1)
|
40
|
+
builder (3.2.4)
|
41
|
+
byebug (11.1.3)
|
42
|
+
childprocess (4.0.0)
|
43
|
+
coderay (1.1.3)
|
44
|
+
concurrent-ruby (1.1.8)
|
45
|
+
diff-lcs (1.4.4)
|
46
|
+
domain_name (0.5.20190701)
|
41
47
|
unf (>= 0.0.5, < 1.0.0)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
48
|
+
ed25519 (1.2.4)
|
49
|
+
erubi (1.10.0)
|
50
|
+
ffi (1.15.0)
|
51
|
+
filesize (0.2.0)
|
52
|
+
gssapi (1.3.1)
|
46
53
|
ffi (>= 1.0.1)
|
47
54
|
gyoku (1.3.1)
|
48
55
|
builder (>= 2.1.2)
|
49
|
-
hashicorp-checkpoint (0.1.
|
56
|
+
hashicorp-checkpoint (0.1.5)
|
50
57
|
http-cookie (1.0.3)
|
51
58
|
domain_name (~> 0.5)
|
52
59
|
httpclient (2.8.3)
|
53
|
-
i18n (
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
rb-
|
58
|
-
|
60
|
+
i18n (1.8.10)
|
61
|
+
concurrent-ruby (~> 1.0)
|
62
|
+
json (2.5.1)
|
63
|
+
listen (3.5.1)
|
64
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
65
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
59
66
|
little-plugger (1.1.4)
|
60
67
|
log4r (1.1.10)
|
61
|
-
logging (2.
|
68
|
+
logging (2.3.0)
|
62
69
|
little-plugger (~> 1.1)
|
63
|
-
multi_json (~> 1.
|
64
|
-
method_source (0.
|
65
|
-
mime
|
70
|
+
multi_json (~> 1.14)
|
71
|
+
method_source (1.0.0)
|
72
|
+
mime (0.4.4)
|
73
|
+
mime-types (3.3.1)
|
66
74
|
mime-types-data (~> 3.2015)
|
67
|
-
mime-types-data (3.
|
68
|
-
mini_portile2 (2.
|
69
|
-
multi_json (1.
|
70
|
-
net-scp (1.1
|
71
|
-
net-ssh (>= 2.6.5)
|
72
|
-
net-sftp (2.1.2)
|
75
|
+
mime-types-data (3.2021.0225)
|
76
|
+
mini_portile2 (2.5.0)
|
77
|
+
multi_json (1.15.0)
|
78
|
+
net-scp (1.2.1)
|
73
79
|
net-ssh (>= 2.6.5)
|
74
|
-
net-
|
80
|
+
net-sftp (3.0.0)
|
81
|
+
net-ssh (>= 5.0.0, < 7.0.0)
|
82
|
+
net-ssh (6.1.0)
|
75
83
|
netrc (0.11.0)
|
76
|
-
nokogiri (1.
|
77
|
-
mini_portile2 (~> 2.
|
84
|
+
nokogiri (1.11.3)
|
85
|
+
mini_portile2 (~> 2.5.0)
|
86
|
+
racc (~> 1.4)
|
78
87
|
nori (2.6.0)
|
79
|
-
ovirt-engine-sdk (4.1
|
80
|
-
json
|
81
|
-
pry (0.
|
82
|
-
coderay (~> 1.1
|
83
|
-
method_source (~> 0
|
84
|
-
|
85
|
-
|
86
|
-
byebug (~> 9.0)
|
88
|
+
ovirt-engine-sdk (4.4.1)
|
89
|
+
json (>= 1, < 3)
|
90
|
+
pry (0.14.1)
|
91
|
+
coderay (~> 1.1)
|
92
|
+
method_source (~> 1.0)
|
93
|
+
pry-byebug (3.8.0)
|
94
|
+
byebug (~> 11.0)
|
87
95
|
pry (~> 0.10)
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
rb-
|
96
|
+
racc (1.5.2)
|
97
|
+
rake (13.0.3)
|
98
|
+
rake-release (1.3.0)
|
99
|
+
bundler (>= 1.11, < 3)
|
100
|
+
rb-fsevent (0.10.4)
|
101
|
+
rb-inotify (0.10.1)
|
102
|
+
ffi (~> 1.0)
|
103
|
+
rb-kqueue (0.2.6)
|
93
104
|
ffi (>= 0.5.0)
|
94
|
-
rest-client (2.0.
|
105
|
+
rest-client (2.0.2)
|
95
106
|
http-cookie (>= 1.0.2, < 2.0)
|
96
107
|
mime-types (>= 1.16, < 4.0)
|
97
108
|
netrc (~> 0.8)
|
98
|
-
rspec (3.
|
99
|
-
rspec-
|
100
|
-
|
101
|
-
rspec-mocks (~> 3.5.0)
|
102
|
-
rspec-core (3.5.4)
|
103
|
-
rspec-support (~> 3.5.0)
|
104
|
-
rspec-expectations (3.5.0)
|
109
|
+
rspec-core (3.10.1)
|
110
|
+
rspec-support (~> 3.10.0)
|
111
|
+
rspec-expectations (3.10.1)
|
105
112
|
diff-lcs (>= 1.2.0, < 2.0)
|
106
|
-
rspec-support (~> 3.
|
107
|
-
rspec-its (1.
|
113
|
+
rspec-support (~> 3.10.0)
|
114
|
+
rspec-its (1.3.0)
|
108
115
|
rspec-core (>= 3.0.0)
|
109
116
|
rspec-expectations (>= 3.0.0)
|
110
|
-
rspec-mocks (3.
|
117
|
+
rspec-mocks (3.10.2)
|
111
118
|
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
-
rspec-support (~> 3.
|
113
|
-
rspec-support (3.
|
119
|
+
rspec-support (~> 3.10.0)
|
120
|
+
rspec-support (3.10.2)
|
114
121
|
ruby_dep (1.3.1)
|
115
|
-
rubyntlm (0.6.
|
116
|
-
rubyzip (
|
117
|
-
slop (3.6.0)
|
122
|
+
rubyntlm (0.6.3)
|
123
|
+
rubyzip (2.3.0)
|
118
124
|
unf (0.1.4)
|
119
125
|
unf_ext
|
120
|
-
unf_ext (0.0.7.
|
126
|
+
unf_ext (0.0.7.7)
|
127
|
+
vagrant_cloud (2.0.3)
|
128
|
+
rest-client (~> 2.0.2)
|
121
129
|
wdm (0.1.1)
|
122
|
-
winrm (2.
|
130
|
+
winrm (2.3.6)
|
123
131
|
builder (>= 2.1.2)
|
124
|
-
|
132
|
+
erubi (~> 1.8)
|
125
133
|
gssapi (~> 1.2)
|
126
134
|
gyoku (~> 1.0)
|
127
135
|
httpclient (~> 2.2, >= 2.2.0.2)
|
128
136
|
logging (>= 1.6.1, < 3.0)
|
129
137
|
nori (~> 2.0)
|
130
|
-
rubyntlm (~> 0.6.0, >= 0.6.
|
131
|
-
winrm-elevated (1.
|
138
|
+
rubyntlm (~> 0.6.0, >= 0.6.3)
|
139
|
+
winrm-elevated (1.2.3)
|
140
|
+
erubi (~> 1.8)
|
132
141
|
winrm (~> 2.0)
|
133
142
|
winrm-fs (~> 1.0)
|
134
|
-
winrm-fs (1.
|
135
|
-
|
143
|
+
winrm-fs (1.3.5)
|
144
|
+
erubi (~> 1.8)
|
136
145
|
logging (>= 1.6.1, < 3.0)
|
137
|
-
rubyzip (~>
|
146
|
+
rubyzip (~> 2.0)
|
138
147
|
winrm (~> 2.0)
|
139
148
|
|
140
149
|
PLATFORMS
|
@@ -145,10 +154,12 @@ DEPENDENCIES
|
|
145
154
|
pry
|
146
155
|
pry-byebug
|
147
156
|
rake
|
148
|
-
|
157
|
+
rake-release
|
158
|
+
rspec-core
|
149
159
|
rspec-its
|
160
|
+
rspec-mocks (~> 3.5)
|
150
161
|
vagrant!
|
151
162
|
vagrant-ovirt4!
|
152
163
|
|
153
164
|
BUNDLED WITH
|
154
|
-
1.
|
165
|
+
1.17.2
|
data/README.md
CHANGED
@@ -56,13 +56,19 @@ $ vagrant up --provider=ovirt4
|
|
56
56
|
```
|
57
57
|
Vagrant.configure("2") do |config|
|
58
58
|
config.vm.box = 'ovirt4'
|
59
|
-
config.vm.hostname = "foo"
|
59
|
+
config.vm.hostname = "foo"
|
60
60
|
config.vm.box_url = 'https://github.com/myoung34/vagrant-ovirt4/blob/master/example_box/dummy.box?raw=true'
|
61
61
|
|
62
62
|
config.vm.network :private_network,
|
63
63
|
:ovirt__network_name => 'ovirtmgmt' #DHCP
|
64
64
|
# Static configuration
|
65
65
|
#:ovirt__ip => '192.168.2.198', :ovirt__network_name => 'ovirtmgmt', :ovirt__gateway => '192.168.2.125', :ovirt__netmask => '255.255.0.0', :ovirt__dns_servers => '192.168.2.1', :ovirt__dns_search => 'test.local'
|
66
|
+
# Static configuration with biosdevname. Guest OS assigns interface names (ens3, em1 or something else). ovirt__interface_name has to match that name.
|
67
|
+
#:ovirt__ip => '192.168.2.198', :ovirt__network_name => 'ovirtmgmt', :ovirt__gateway => '192.168.2.125', :ovirt__netmask => '255.255.0.0', :ovirt__dns_servers => '192.168.2.1', :ovirt__dns_search => 'test.local', :ovirt__interface_name => 'ens3'
|
68
|
+
|
69
|
+
# configure additional interface
|
70
|
+
# config.vm.network :private_network,
|
71
|
+
# :ovirt__ip => '192.168.2.199', :ovirt__network_name => 'ovirtmgmt', :ovirt__netmask => '255.255.0.0', :ovirt__interface_name => 'ens4'
|
66
72
|
|
67
73
|
config.vm.provider :ovirt4 do |ovirt|
|
68
74
|
ovirt.url = 'https://server/ovirt-engine/api'
|
@@ -70,14 +76,18 @@ Vagrant.configure("2") do |config|
|
|
70
76
|
ovirt.password = "password"
|
71
77
|
ovirt.insecure = true
|
72
78
|
ovirt.debug = true
|
79
|
+
ovirt.filtered_api = true #see http://www.ovirt.org/develop/release-management/features/infra/user-portal-permissions/
|
73
80
|
ovirt.cluster = 'Default'
|
74
81
|
ovirt.template = 'Vagrant-Centos7-test'
|
75
82
|
ovirt.console = 'vnc'
|
83
|
+
ovirt.disk_size = '15 GiB' # only growing is supported. works the same way as below memory settings
|
76
84
|
ovirt.memory_size = '1 GiB' #see https://github.com/dominikh/filesize for usage
|
77
|
-
ovirt.memory_guaranteed = '256
|
85
|
+
ovirt.memory_guaranteed = '256 MiB' #see https://github.com/dominikh/filesize for usage
|
78
86
|
ovirt.cpu_cores = 2
|
79
87
|
ovirt.cpu_sockets = 2
|
80
88
|
ovirt.cpu_threads = 2
|
89
|
+
ovirt.bios_serial = aaabbbb-ccc-dddd
|
90
|
+
ovirt.optimized_for = 'server'
|
81
91
|
ovirt.cloud_init =<<EOF
|
82
92
|
write_files:
|
83
93
|
- content: |
|
@@ -86,6 +96,8 @@ write_files:
|
|
86
96
|
permissions: '0644'
|
87
97
|
EOF
|
88
98
|
|
99
|
+
# additional disks
|
100
|
+
ovirt.storage :file, size: "8 GiB", type: 'qcow2', storage_domain: "mystoragedomain"
|
89
101
|
end
|
90
102
|
end
|
91
103
|
```
|
@@ -107,7 +119,6 @@ end
|
|
107
119
|
1. `password` => The password for the API. Required. String. No default value.
|
108
120
|
1. `insecure` => Allow connecting to SSL sites without certificates. Optional. Bool. Default is `false`
|
109
121
|
1. `debug` => Turn on additional log statements. Optional. Bool. Default is `false`.
|
110
|
-
1. `datacenter` => The name of the ovirt datacenter to create within. Required. String. No Default value.
|
111
122
|
1. `template` => The name of the template to use for creation. Required. String. No Default value.
|
112
123
|
1. `cluster` => The name of the ovirt cluster to create within. Required. String. No Default value.
|
113
124
|
1. `console` => The type of remote viewing protocol to use. Required. String. No Default value.
|
@@ -119,6 +130,12 @@ end
|
|
119
130
|
1. `cloud_init` => The cloud-init data to pass. Must be properly formatted as yaml. [Docs here](http://cloudinit.readthedocs.io/en/latest/topics/examples.html)
|
120
131
|
1. `affinity` => The affinity to use. [See this for possible uses](http://www.rubydoc.info/gems/ovirt-engine-sdk/OvirtSDK4/VmAffinity). Optional. Invalid will cause a `RuntimeError`
|
121
132
|
1. `placement_host` => The host to start the VM on. Optional.
|
133
|
+
1. `bios_serial` => The BIOS serial number to assign. Optional.
|
134
|
+
1. `optimized_for` => The "optimized for" setting. Can be one of 'Desktop' or 'Server' (case insensitive). Optional.
|
135
|
+
1. `storage` => adds a new storage disk to the VM
|
136
|
+
a. `size`: the size of the disk
|
137
|
+
a. `type`: the type of disk. It can be either `qcow2` or `raw`
|
138
|
+
a. `storage_domain`: the storage domain where the disk should be created
|
122
139
|
|
123
140
|
|
124
141
|
## Contributing
|
@@ -128,3 +145,10 @@ end
|
|
128
145
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
129
146
|
4. Push to the branch (`git push origin my-new-feature`)
|
130
147
|
5. Create new Pull Request
|
148
|
+
|
149
|
+
Some pointers:
|
150
|
+
|
151
|
+
* To install the requirements when developing:
|
152
|
+
* `bundle install`
|
153
|
+
* To run the test suite:
|
154
|
+
* `bundle exec rspec spec/`
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'bundler/setup'
|
3
|
+
require 'rake/release'
|
3
4
|
require 'rspec/core/rake_task'
|
4
5
|
|
5
6
|
# Immediately sync all stdout so that tools like buildbot can
|
@@ -13,10 +14,3 @@ Dir.chdir(File.expand_path("../", __FILE__))
|
|
13
14
|
# This installs the tasks that help with gem creation and
|
14
15
|
# publishing.
|
15
16
|
Bundler::GemHelper.install_tasks
|
16
|
-
|
17
|
-
# Install the `spec` task so that we can run tests.
|
18
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
19
|
-
t.rspec_opts = "--order defined"
|
20
|
-
end
|
21
|
-
# Default task is to run the unit tests
|
22
|
-
task :default => :spec
|