vagrant-ovirt3 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) 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 +0 -0
  6. data/Rakefile +0 -0
  7. data/example_box/README.md +0 -0
  8. data/example_box/Vagrantfile +0 -0
  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 +0 -0
  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 +5 -3
  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 +0 -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/tools/prepare_redhat_for_box.sh +1 -1
  44. data/vagrant-ovirt3.gemspec +0 -0
  45. metadata +14 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fb362eeebf30f0e1d109ce52d8bb8a029ab3691
4
- data.tar.gz: 198805928ad0a94bd360c73a4f125e9de6788804
3
+ metadata.gz: 04923cda3ffdd819d799a79f36f4eb95b32eca7f
4
+ data.tar.gz: 44f15f42bbcef3924ec8c8dc9be86b4425d33025
5
5
  SHA512:
6
- metadata.gz: 6d9cbe468e42a106b64e76ab71560241f4d0f64560fc5cefe0832d464afe73d259caace72c96b1acf28938c9c5a4ffa5e16d35e5cb89c3a78433f37421fbe8e4
7
- data.tar.gz: 28e7e1569c41e43a9189adffb96fd918321127aad4db721bf795dcfc62090786e98a530549c79b81b848c48b34bdff96994a841aec8cc239acf5c8c0c5fb0cb9
6
+ metadata.gz: 9aefea98057b34f65620423bb35593caddf0c786f58667cd75b644230086a96c070ce4ec3a87a3bebab70f65ed0e414c8b5570bb0988dced6bf6f4465bbcbc08
7
+ data.tar.gz: a6d6e45f7ef43f96217f9376769bd165c5bd59a9e93de0d4fa0dc9074c15587978db9d7df17cd35faa0809c8424415e05ee26fd52e24daa2441a9bb1313ebc5e
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
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
@@ -4,14 +4,16 @@ module VagrantPlugins
4
4
 
5
5
  # Setup name for domain and domain volumes.
6
6
  class SetNameOfDomain
7
+ @@MAX_NAME_LENGTH = 64
7
8
  def initialize(app, env)
8
9
  @app = app
9
10
  end
10
11
 
11
12
  def call(env)
12
- env[:domain_name] = env[:root_path].basename.to_s.dup
13
- env[:domain_name].gsub!(/[^-a-z0-9_]/i, "")
14
- env[:domain_name] << "_#{Time.now.to_f}"
13
+ dir_name = env[:root_path].basename.to_s.dup.gsub(/[^-a-z0-9_]/i, "")
14
+ timestamp = "_#{Time.now.to_f}"
15
+ max_dir_name_length = dir_name.length-[(dir_name + timestamp).length-(@@MAX_NAME_LENGTH-1), 0].max
16
+ env[:domain_name] = dir_name[0..max_dir_name_length] << timestamp
15
17
 
16
18
  # Check if the domain name is not already taken
17
19
  domain = OVirtProvider::Util::Collection.find_matching(
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
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module OVirtProvider
3
- VERSION = '1.4.0'
3
+ VERSION = '1.5.0'
4
4
  end
5
5
  end
6
6
 
File without changes
data/locales/en.yml CHANGED
File without changes
@@ -80,7 +80,7 @@ sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
80
80
  vagrant_home=/home/vagrant
81
81
  [ -d $vagrant_home/.ssh ] || mkdir $vagrant_home/.ssh
82
82
  chmod 700 $vagrant_home/.ssh
83
- curl https://raw2.github.com/mitchellh/vagrant/master/keys/vagrant.pub > $vagrant_home/.ssh/authorized_keys
83
+ curl -k -L --silent https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub > $vagrant_home/.ssh/authorized_keys
84
84
  chmod 600 $vagrant_home/.ssh/authorized_keys
85
85
  chown -R vagrant:vagrant $vagrant_home/.ssh
86
86
 
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.4.0
4
+ version: 1.5.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-07 00:00:00.000000000 Z
11
+ date: 2015-04-25 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.2.2
131
+ rubygems_version: 2.4.1
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: This vagrant plugin provides the ability to create, control, and destroy