vagrant-ovirt3 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/Gemfile +0 -0
  4. data/LICENSE +0 -0
  5. data/README.md +3 -0
  6. data/Rakefile +0 -0
  7. data/example_box/README.md +0 -0
  8. data/example_box/Vagrantfile +2 -1
  9. data/example_box/dummy.box +0 -0
  10. data/example_box/metadata.json +0 -0
  11. data/lib/vagrant-ovirt3/action/connect_ovirt.rb +0 -0
  12. data/lib/vagrant-ovirt3/action/create_network_interfaces.rb +0 -0
  13. data/lib/vagrant-ovirt3/action/create_vm.rb +10 -7
  14. data/lib/vagrant-ovirt3/action/destroy_vm.rb +0 -0
  15. data/lib/vagrant-ovirt3/action/halt_vm.rb +0 -0
  16. data/lib/vagrant-ovirt3/action/is_created.rb +0 -0
  17. data/lib/vagrant-ovirt3/action/message_already_created.rb +0 -0
  18. data/lib/vagrant-ovirt3/action/message_already_up.rb +0 -0
  19. data/lib/vagrant-ovirt3/action/message_not_created.rb +0 -0
  20. data/lib/vagrant-ovirt3/action/message_not_suspended.rb +0 -0
  21. data/lib/vagrant-ovirt3/action/message_not_up.rb +0 -0
  22. data/lib/vagrant-ovirt3/action/message_saving_state.rb +0 -0
  23. data/lib/vagrant-ovirt3/action/read_ssh_info.rb +0 -0
  24. data/lib/vagrant-ovirt3/action/read_state.rb +0 -0
  25. data/lib/vagrant-ovirt3/action/resize_disk.rb +0 -0
  26. data/lib/vagrant-ovirt3/action/set_name_of_domain.rb +0 -0
  27. data/lib/vagrant-ovirt3/action/start_vm.rb +0 -0
  28. data/lib/vagrant-ovirt3/action/suspend_vm.rb +0 -0
  29. data/lib/vagrant-ovirt3/action/sync_folders.rb +0 -0
  30. data/lib/vagrant-ovirt3/action/wait_till_up.rb +0 -0
  31. data/lib/vagrant-ovirt3/action.rb +0 -0
  32. data/lib/vagrant-ovirt3/cap/nic_mac_addresses.rb +0 -0
  33. data/lib/vagrant-ovirt3/config.rb +6 -0
  34. data/lib/vagrant-ovirt3/errors.rb +0 -0
  35. data/lib/vagrant-ovirt3/plugin.rb +0 -0
  36. data/lib/vagrant-ovirt3/provider.rb +0 -0
  37. data/lib/vagrant-ovirt3/util/collection.rb +0 -0
  38. data/lib/vagrant-ovirt3/util/timer.rb +0 -0
  39. data/lib/vagrant-ovirt3/util.rb +0 -0
  40. data/lib/vagrant-ovirt3/version.rb +1 -1
  41. data/lib/vagrant-ovirt3.rb +0 -0
  42. data/locales/en.yml +0 -0
  43. data/vagrant-ovirt3.gemspec +0 -0
  44. metadata +14 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04923cda3ffdd819d799a79f36f4eb95b32eca7f
4
- data.tar.gz: 44f15f42bbcef3924ec8c8dc9be86b4425d33025
3
+ metadata.gz: 10e956175d14443a1c190093f60c29853797ce20
4
+ data.tar.gz: 524c422af0325672b8ad3f2eb45f36b010c060b8
5
5
  SHA512:
6
- metadata.gz: 9aefea98057b34f65620423bb35593caddf0c786f58667cd75b644230086a96c070ce4ec3a87a3bebab70f65ed0e414c8b5570bb0988dced6bf6f4465bbcbc08
7
- data.tar.gz: a6d6e45f7ef43f96217f9376769bd165c5bd59a9e93de0d4fa0dc9074c15587978db9d7df17cd35faa0809c8424415e05ee26fd52e24daa2441a9bb1313ebc5e
6
+ metadata.gz: d7864453b2709987db2e1296166206138bdd897f33c8be91c1e479d329b31fb31537f313ab0a2ae4f2739a67f3e671d4e6f3a471927f237566d11c7eb7239bec
7
+ data.tar.gz: 67081afe1cc7ea57feb4e3ab2b09301d7de5e7fa5836cb71c54df97f5e1ab0b3df8bcfb427506e775dbf76c2d6c23c9af67104782a5a8d08c3c84e15d5fbc515
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -41,6 +41,8 @@ Vagrant.configure('2') do |config|
41
41
  ovirt.username = 'username'
42
42
  ovirt.password = 'password'
43
43
  ovirt.datacenter = 'datacenter'
44
+ ovirt.quota = "e92124b9-22f4-4cef-bcd6-b9ae22155dcd"
45
+ ovirt.ca_no_verify = true
44
46
  end
45
47
  end
46
48
  ```
@@ -60,6 +62,7 @@ This provider exposes quite a few provider-specific configuration options:
60
62
  option will be replaced with `ca_cert` in a future version).
61
63
  * `ca_cert_file` - Like `ca_cert_store`, but provides a file containing a single
62
64
  certificate.
65
+ * `quota` - The ID of the quota to use. This can be retrieved via the REST API
63
66
 
64
67
  ### Domain Specific Options
65
68
 
data/Rakefile CHANGED
File without changes
File without changes
@@ -11,8 +11,9 @@ Vagrant.configure("2") do |config|
11
11
  ovirt.password = "secret"
12
12
  ovirt.datacenter = "Datacenter name"
13
13
  ovirt.template = "Template name"
14
- ovirt.quota = "Quota name"
14
+ ovirt.quota = "e92124b9-22f4-4cef-bcd6-b9ae22155dcd"
15
15
  ovirt.cpus = 1
16
16
  ovirt.memory = 512
17
+ ovirt.ca_no_verify = true
17
18
  end
18
19
  end
File without changes
File without changes
File without changes
@@ -17,9 +17,10 @@ module VagrantPlugins
17
17
  config = env[:machine].provider_config
18
18
 
19
19
  # Gather some info about domain
20
- name = env[:domain_name]
20
+ name = config.name.nil? ? env[:domain_name] : config.name
21
21
  console = config.console
22
22
  cpus = config.cpus
23
+ quota = config.quota
23
24
  memory_size = config.memory*1024
24
25
  user_data = config.user_data ?
25
26
  Base64::encode64(config.user_data) :
@@ -67,6 +68,7 @@ module VagrantPlugins
67
68
  env[:ui].info(" -- Datacenter: #{config.datacenter}")
68
69
  env[:ui].info(" -- Cluster: #{cluster.name}")
69
70
  env[:ui].info(" -- Console: #{console}")
71
+ env[:ui].info(" -- Quota: #{quota}")
70
72
  if config.disk_size
71
73
  env[:ui].info(" -- Disk size: #{config.disk_size}G")
72
74
  end
@@ -76,13 +78,14 @@ module VagrantPlugins
76
78
 
77
79
  # Create oVirt VM.
78
80
  attr = {
79
- :name => name,
80
- :cores => cpus,
81
- :memory => memory_size*1024,
82
- :cluster => cluster.id,
83
- :template => template.id,
84
- :display => {:type => console },
81
+ :name => name,
82
+ :cores => cpus,
83
+ :memory => memory_size*1024,
84
+ :cluster => cluster.id,
85
+ :template => template.id,
86
+ :display => {:type => console },
85
87
  :user_data => user_data,
88
+ :quota => quota,
86
89
  }
87
90
 
88
91
  begin
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,6 +19,8 @@ module VagrantPlugins
19
19
  attr_accessor :console
20
20
  attr_accessor :disk_size
21
21
  attr_accessor :user_data
22
+ attr_accessor :name
23
+ attr_accessor :quota
22
24
 
23
25
  # TODO: change 'ca_cert_store' to 'ca_cert' once rbovirt PR #55 merges.
24
26
  attr_accessor :ca_no_verify
@@ -36,11 +38,13 @@ module VagrantPlugins
36
38
  # Domain specific settings.
37
39
  @memory = UNSET_VALUE
38
40
  @cpus = UNSET_VALUE
41
+ @quota = UNSET_VALUE
39
42
  @template = UNSET_VALUE
40
43
  @template_version = UNSET_VALUE
41
44
  @console = UNSET_VALUE
42
45
  @disk_size = UNSET_VALUE
43
46
  @user_data = UNSET_VALUE
47
+ @name = UNSET_VALUE
44
48
 
45
49
  @ca_no_verify = UNSET_VALUE
46
50
  @ca_cert_store = UNSET_VALUE
@@ -58,11 +62,13 @@ module VagrantPlugins
58
62
  # Domain specific settings.
59
63
  @memory = 512 if @memory == UNSET_VALUE
60
64
  @cpus = 1 if @cpus == UNSET_VALUE
65
+ @quota = nil if @quota == UNSET_VALUE
61
66
  @template = 'Blank' if @template == UNSET_VALUE
62
67
  @template_version = nil if @template_version == UNSET_VALUE
63
68
  @console = 'spice' if @console == UNSET_VALUE
64
69
  @disk_size = nil if @disk_size == UNSET_VALUE
65
70
  @user_data = nil if @user_data == UNSET_VALUE
71
+ @name = nil if @name == UNSET_VALUE
66
72
 
67
73
  @ca_no_verify = false if @ca_no_verify == UNSET_VALUE
68
74
  @ca_cert_store = nil if @ca_cert_store == UNSET_VALUE
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module OVirtProvider
3
- VERSION = '1.5.0'
3
+ VERSION = '1.6.0'
4
4
  end
5
5
  end
6
6
 
File without changes
data/locales/en.yml CHANGED
File without changes
File without changes
metadata CHANGED
@@ -1,61 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-ovirt3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-25 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.27'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.27'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rbovirt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.0'
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 0.0.31
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0.0'
44
- - - '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.0.31
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  description: Vagrant provider for oVirt and RHEV v3
@@ -65,7 +65,7 @@ executables: []
65
65
  extensions: []
66
66
  extra_rdoc_files: []
67
67
  files:
68
- - .gitignore
68
+ - ".gitignore"
69
69
  - Gemfile
70
70
  - LICENSE
71
71
  - README.md
@@ -118,17 +118,17 @@ require_paths:
118
118
  - lib
119
119
  required_ruby_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - '>='
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.4.1
131
+ rubygems_version: 2.4.8
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: This vagrant plugin provides the ability to create, control, and destroy