ovirt_provision_plugin 1.0.2 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 987af91401580e7023c66cc49a22417d58ff87fb
4
- data.tar.gz: bc322124c8a84e8520e4c1ab07991b6bf88ad040
3
+ metadata.gz: 3228d5d8e55503372c0b3e1b23e58e89a92df35e
4
+ data.tar.gz: c85c1ff3175bf804a5720d74b306b4e86a52b10a
5
5
  SHA512:
6
- metadata.gz: 55c9827d3010768699c5d728a00672e5ebebd5dca42d956158ba2e8ddd63c0ca1b5b5ac15a865a1b369ea72d5ce1657bdd34ba223d620b9f0e1e5afd032f3e06
7
- data.tar.gz: 13272639ffe1a85ea549d073498dfa093180f4516af98df05d9d36096ee465d8e7697814dd937b489c932794d81680611388452470604f79e31fae8328410d6c
6
+ metadata.gz: d5695b16939d88b4e5fb65a32f14c9b0bec7eda076da395ec914b1d6ba0d5c619f738d70a8e27fd6e96d073398f24ef59d6ebdaf162a0d2a7c9aae7b3b77663a
7
+ data.tar.gz: 85ecf7afb172c9061f196d55121aae4a164d512f23df5208f6043471cc4f1e6d2bb44e94676624c18855b540b9f73b13cf25ec0d4c37bc1ea05f12b60d0f1687
data/README.md CHANGED
@@ -32,9 +32,10 @@ Then run `bundle install` and from the same directory.
32
32
 
33
33
  ## Compatibility
34
34
 
35
- | Foreman | Plugin |
36
- | ---------------:| --------------:|
37
- | >= 1.6 | 1.0.2 |
35
+ | oVirt | Foreman | Plugin |
36
+ | ---------------:| ---------------:| --------------:|
37
+ | >= 4.0 | >= 1.6 | 2.0.0 |
38
+ | < 4.0 | >= 1.6 | 1.0.2 |
38
39
 
39
40
  ## Contributing
40
41
 
data/Rakefile CHANGED
@@ -20,10 +20,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
22
22
 
23
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
- load 'rails/tasks/engine.rake'
25
-
26
-
23
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
27
24
 
28
25
  Bundler::GemHelper.install_tasks
29
26
 
@@ -36,5 +33,15 @@ Rake::TestTask.new(:test) do |t|
36
33
  t.verbose = false
37
34
  end
38
35
 
39
-
40
36
  task :default => :test
37
+
38
+ begin
39
+ require 'rubocop/rake_task'
40
+ RuboCop::RakeTask.new
41
+ rescue StandardError => _
42
+ puts 'Rubocop not loaded.'
43
+ end
44
+
45
+ task :default do
46
+ Rake::Task['rubocop'].execute
47
+ end
@@ -1,115 +1,119 @@
1
+ require 'ovirtsdk4'
2
+
1
3
  module OvirtProvisionPlugin
2
4
  module HostExtensions
3
5
  extend ActiveSupport::Concern
4
6
 
5
7
  def ovirt_host_callback
6
8
  logger.info "OvirtProvisionPlugin:: Running provision callback.."
7
- max_tries = 10;
8
- if self.is_ovirt_node?
9
- logger.info "OvirtProvisionPlugin:: Node provisioning is done."
10
- else
11
- while max_tries > 0 && self.ovirt_host? && self.status_installing?
12
- if (self.error?)
13
- logger.warn "OvirtProvisionPlugin:: Failed to run classes. Trying again (#{max_tries})"
14
- puppetrun!
15
- max_tries = max_tries - 1
16
- else
17
- begin
18
- logger.info "OvirtProvisionPlugin:: Running ovirt_host_callback on \"#{self.get_ovirt_host_name}\""
19
- host_id = self.get_ovirt_host_id
20
- client = self.get_ovirt_client
21
- client.reinstall_host("#{host_id}")
22
- logger.info "OvirtProvisionPlugin:: Sent reinstall command successfully"
23
- rescue OVIRT::OvirtException
24
- logger.warn "OvirtProvisionPlugin:: Failed to reinstall host. Trying again (#{max_tries})"
25
- puppetrun!
26
- max_tries = max_tries - 1
27
- end
28
- end
9
+ return unless ovirt_host?
10
+
11
+ return if ovirt_node?
12
+
13
+ max_tries = 10
14
+ while max_tries.positive?
15
+ client = ovirt_client
16
+ if client.nil?
17
+ logger.warn "OvirtProvisionPlugin:: Failed to connect to ovirt-engine"
18
+ max_tries -= 1
19
+ next
20
+ end
21
+
22
+ ovirt_host = host_for_installing(client)
23
+ unless ovirt_host
24
+ client.close
25
+ return
26
+ end
27
+
28
+ unless errors.empty?
29
+ client.close
30
+ logger.warn "OvirtProvisionPlugin:: Failed to run classes. Trying again (#{max_tries})"
31
+ puppetrun!
32
+ max_tries -= 1
33
+ next
34
+ end
35
+
36
+ begin
37
+ logger.info "OvirtProvisionPlugin:: Running ovirt_host_callback on \"#{ovirt_host.name}\""
38
+ host_service(client).install(:ssh => { authentication_method: OvirtSDK4::SshAuthenticationMethod::PUBLICKEY })
39
+ logger.info "OvirtProvisionPlugin:: Sent reinstall command successfully"
40
+ return
41
+ rescue OvirtSDK4::Error
42
+ logger.warn "OvirtProvisionPlugin:: Failed to reinstall host. Trying again (#{max_tries})"
43
+ puppetrun!
44
+ max_tries -= 1
45
+ ensure
46
+ client.close
29
47
  end
30
48
  end
31
49
  end
32
50
 
33
- def is_ovirt_node?
34
- is_ovirt_node = self.operatingsystem.name == "oVirt-Node" or self.operatingsystem.name == "RHEV-H"
35
- if is_ovirt_node
36
- logger.info "OvirtProvisionPlugin:: Provisioned ovirt node host"
37
- return true
51
+ def host_for_installing(client)
52
+ begin
53
+ ovirt_host = host_service(client).get
54
+ unless status_installing?(ovirt_host)
55
+ return nil
56
+ end
57
+ rescue OvirtSDK4::Error
58
+ logger.warn "OvirtProvisionPlugin:: Host #{ovirt_host_id} does not exists on ovirt"
59
+ return nil
38
60
  end
39
- return false
61
+ ovirt_host
40
62
  end
41
63
 
42
- def ovirt_host?
43
- if self.get_ovirt_host_id
44
- logger.info "OvirtProvisionPlugin:: host related to oVirt"
45
- return true
46
- end
47
- return false
64
+ def host_service(client)
65
+ client.system_service.hosts_service.host_service(ovirt_host_id)
48
66
  end
49
67
 
50
- def status_installing?
51
- h = self.get_ovirt_host
52
- if h != "" && h.status.strip == "installing_os"
53
- logger.info "OvirtProvisionPlugin:: host in status installing"
54
- return true
55
- end
56
- return false
68
+ def status_installing?(host)
69
+ return false if host.status.strip != "installing_os"
70
+
71
+ logger.info "OvirtProvisionPlugin:: host in status '#{host.status}'"
72
+ true
57
73
  end
58
74
 
59
- def get_ovirt_client
60
- begin
61
- cr_id = parameters.find_by_name("compute_resource_id").value
62
- cr = ComputeResource.find_by_id(cr_id)
63
- connection_opts = {}
64
- if not cr.public_key.blank?
65
- connection_opts[:datacenter_id] = cr.uuid
66
- connection_opts[:ca_cert_store] = OpenSSL::X509::Store.new.add_cert(OpenSSL::X509::Certificate.new(cr.public_key))
67
- end
68
- return OVIRT::Client.new("#{cr.user}", "#{cr.password}", "#{cr.url}", connection_opts)
69
- rescue OVIRT::OvirtException
70
- logger.error "OvirtProvisionPlugin:: compute resource id was not found"
71
- return false
72
- rescue NoMethodError
73
- logger.error "OvirtProvisionPlugin:: fail to read compute_rescource_id on host #{self.name}, id #{cr_id}"
74
- return false
75
+ def ovirt_client
76
+ cr_id = parameters.find_by(:name => "compute_resource_id").value
77
+ cr = ComputeResource.find(cr_id)
78
+ connection_opts = {
79
+ :url => cr.url,
80
+ :username => cr.user,
81
+ :password => cr.password
82
+ }
83
+ if cr.public_key.blank?
84
+ connection_opts[:insecure] = true
75
85
  else
76
- logger.error "OvirtProvisionPlugin:: error occured during get_ovirt_client"
77
- return false
86
+ connection_opts[:ca_certs] = [cr.public_key]
78
87
  end
88
+ OvirtSDK4::Connection.new(connection_opts)
89
+ rescue NoMethodError
90
+ logger.error "OvirtProvisionPlugin:: fail to read compute_rescource_id on host #{name}, id #{cr_id}"
91
+ nil
92
+ rescue StandardError
93
+ logger.error "OvirtProvisionPlugin:: error occured during ovirt_client #{e}"
94
+ nil
79
95
  end
80
96
 
81
- def get_ovirt_host
82
- client = self.get_ovirt_client
83
- if not client
84
- logger.error "OvirtProvisionPlugin:: couldn't get ovirt_host"
85
- return ""
86
- else
87
- return client.host(get_ovirt_host_id)
88
- end
97
+ def ovirt_host?
98
+ host_id = ovirt_host_id
99
+ return false if host_id.nil?
100
+
101
+ logger.info "OvirtProvisionPlugin:: host #{host_id} is related to oVirt"
102
+ true
89
103
  end
90
104
 
91
- def get_ovirt_host_name
92
- h = self.get_ovirt_host
93
- if not h
94
- return ""
95
- else
96
- return h.name
97
- end
105
+ def ovirt_host_id
106
+ parameters.find_by(:name => "host_ovirt_id").value
107
+ rescue StandardError
108
+ logger.error "OvirtProvisionPlugin:: error occured during ovirt_host_id for #{name}"
109
+ nil
98
110
  end
99
111
 
100
- def get_ovirt_host_id
101
- begin
102
- return self.parameters.find_by_name("host_ovirt_id").value
103
- rescue OVIRT::OvirtException
104
- logger.error "OvirtProvisionPlugin:: host ovirt id was not found"
105
- return false
106
- rescue NoMethodError
107
- logger.error "OvirtProvisionPlugin:: fail to read host_ovirt_id on host #{self.name}"
108
- return false
109
- else
110
- logger.error "OvirtProvisionPlugin:: error occured during get_ovirt_host_id"
111
- return false
112
- end
112
+ def ovirt_node?
113
+ return false unless ["oVirt-Node", "RHEV-H"].include?(operatingsystem.name)
114
+
115
+ logger.info "OvirtProvisionPlugin:: Provisioned ovirt node host #{name}"
116
+ true
113
117
  end
114
118
  end
115
119
  end
@@ -7,10 +7,7 @@ module OvirtProvisionPlugin
7
7
  end
8
8
 
9
9
  def new_report_callback
10
- if host.reports.count == 2
11
- host.ovirt_host_callback
12
- end
10
+ host.ovirt_host_callback if host.reports.count == 2
13
11
  end
14
-
15
12
  end
16
13
  end
@@ -1,5 +1,2 @@
1
1
  Rails.application.routes.draw do
2
-
3
- get 'ovirt_hosts', :to => 'ovirt_provision_plugin/hosts#ovirt_hosts'
4
-
5
2
  end
@@ -1,50 +1,29 @@
1
- require 'deface'
2
-
3
1
  module OvirtProvisionPlugin
4
2
  class Engine < ::Rails::Engine
3
+ engine_name "ovirt_provision_plugin"
5
4
 
6
- config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
7
- config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
8
5
  config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
9
- config.autoload_paths += Dir["#{config.root}/app/overrides"]
10
-
11
- # Add any db migrations
12
- initializer "ovirt_provision_plugin.load_app_instance_data" do |app|
13
- OvirtProvisionPlugin::Engine.paths['db/migrate'].existent.each do |path|
14
- app.config.paths['db/migrate'] << path
15
- end
16
- end
17
6
 
18
- initializer 'ovirt_provision_plugin.register_plugin', :after=> :finisher_hook do |app|
7
+ initializer 'ovirt_provision_plugin.register_plugin', :before => :finisher_hook do |_app|
19
8
  Foreman::Plugin.register :ovirt_provision_plugin do
20
- requires_foreman '>= 1.4'
21
-
22
- # Add permissions
23
- security_block :ovirt_provision_plugin do
24
- permission :view_ovirt_provision_plugin, {:'ovirt_provision_plugin/hosts' => [:ovirt_hosts] }
25
- end
26
-
27
- # Add a new role called 'Discovery' if it doesn't exist
28
- role "OvirtProvisionPlugin", [:view_ovirt_provision_plugin]
9
+ requires_foreman ">= 1.4"
29
10
  end
30
11
  end
31
12
 
32
- #Include concerns in this config.to_prepare block
13
+ # Include concerns in this config.to_prepare block
33
14
  config.to_prepare do
34
15
  begin
35
16
  Host::Managed.send(:include, OvirtProvisionPlugin::HostExtensions)
36
17
  Report.send(:include, OvirtProvisionPlugin::ReportExtensions)
37
- HostsHelper.send(:include, OvirtProvisionPlugin::HostsHelperExtensions)
38
- rescue => e
39
- puts "OvirtProvisionPlugin: skipping engine hook (#{e.to_s})"
18
+ rescue StandardError => e
19
+ Rails.logger.warn "OvirtProvisionPlugin: skipping engine hook (#{e})"
40
20
  end
41
21
  end
42
22
 
43
- rake_tasks do
44
- Rake::Task['db:seed'].enhance do
45
- OvirtProvisionPlugin::Engine.load_seed
46
- end
23
+ initializer "ovirt_provision_plugin.register_gettext", after: :load_config_initializers do
24
+ locale_dir = File.join(File.expand_path("../..", __dir__), "locale")
25
+ locale_domain = "ovirt_provision_plugin"
26
+ Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
47
27
  end
48
-
49
28
  end
50
29
  end
@@ -1,3 +1,3 @@
1
1
  module OvirtProvisionPlugin
2
- VERSION = "1.0.2"
2
+ VERSION = "2.0.0".freeze
3
3
  end
@@ -13,7 +13,7 @@ namespace :test do
13
13
  desc "Test OvirtProvisionPlugin"
14
14
  Rake::TestTask.new(:ovirt_provision_plugin) do |t|
15
15
  test_dir = File.join(File.dirname(__FILE__), '../..', 'test')
16
- t.libs << ["test",test_dir]
16
+ t.libs << ["test", test_dir]
17
17
  t.pattern = "#{test_dir}/**/*_test.rb"
18
18
  t.verbose = true
19
19
  end
@@ -0,0 +1,60 @@
1
+ #
2
+ # Makefile for PO merging and MO generation. More info in the README.
3
+ #
4
+ # make all-mo (default) - generate MO files
5
+ # make check - check translations using translate-tool
6
+ # make tx-update - download and merge translations from Transifex
7
+ # make clean - clean everything
8
+ #
9
+ DOMAIN = ovirt_provision_plugin
10
+ VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
11
+ POTFILE = $(DOMAIN).pot
12
+ MOFILE = $(DOMAIN).mo
13
+ POFILES = $(shell find . -name '$(DOMAIN).po')
14
+ MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
+ POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
+ EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
17
+
18
+ %.mo: %.po
19
+ mkdir -p $(shell dirname $@)/LC_MESSAGES
20
+ msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
21
+
22
+ # Generate MO files from PO files
23
+ all-mo: $(MOFILES)
24
+
25
+ # Check for malformed strings
26
+ %.pox: %.po
27
+ msgfmt -c $<
28
+ pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
29
+ -t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
30
+ cat $@
31
+ ! grep -q msgid $@
32
+
33
+ %.edit.po:
34
+ touch $@
35
+
36
+ check: $(POXFILES)
37
+
38
+ # Unify duplicate translations
39
+ uniq-po:
40
+ for f in $(shell find ./ -name "*.po") ; do \
41
+ msguniq $$f -o $$f ; \
42
+ done
43
+
44
+ tx-pull: $(EDITFILES)
45
+ tx pull -f
46
+ for f in $(EDITFILES) ; do \
47
+ sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
48
+ done
49
+
50
+ tx-update: tx-pull
51
+ @echo
52
+ @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation, then make -C locale mo-files to finish
53
+ @echo
54
+
55
+ mo-files: $(MOFILES)
56
+ git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
57
+ git commit -m "i18n - pulling from tx"
58
+ @echo
59
+ @echo Changes commited!
60
+ @echo
@@ -0,0 +1,19 @@
1
+ # ovirt_provision_plugin
2
+ #
3
+ # This file is distributed under the same license as ovirt_provision_plugin.
4
+ #
5
+ #, fuzzy
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: version 0.0.1\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2014-08-20 08:46+0100\n"
11
+ "PO-Revision-Date: 2014-08-20 08:54+0100\n"
12
+ "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
13
+ "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
14
+ "Language: \n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+
@@ -0,0 +1,2 @@
1
+ # Matches ovirt_provision_plugin.gemspec
2
+ _("Ovirt provision plugin sends API request to oVirt management to reinstall host id after discovered hosts are first provisioned by oVirt engine (Using foreman provider integration).")
@@ -0,0 +1,19 @@
1
+ # ovirt_provision_plugin
2
+ #
3
+ # This file is distributed under the same license as ovirt_provision_plugin.
4
+ #
5
+ #, fuzzy
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: version 0.0.1\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2014-08-20 08:46+0100\n"
11
+ "PO-Revision-Date: 2014-08-20 08:46+0100\n"
12
+ "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
13
+ "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
14
+ "Language: \n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
+
@@ -1,5 +1,5 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :host do
3
- name 'ovirt_provision_plugin'
3
+ name { 'ovirt_provision_plugin' }
4
4
  end
5
5
  end
@@ -1,6 +1,8 @@
1
+ require 'factory_bot_rails'
2
+
1
3
  # This calls the main test_helper in Foreman-core
2
- require 'test_helper'
4
+ # require 'test_helper'
3
5
 
4
6
  # Add plugin to FactoryGirl's paths
5
- FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
6
- FactoryGirl.reload
7
+ FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
8
+ FactoryBot.reload
@@ -2,11 +2,10 @@ require 'test_plugin_helper'
2
2
 
3
3
  class OvirtProvisionPluginTest < ActiveSupport::TestCase
4
4
  setup do
5
- User.current = User.find_by_login "admin"
5
+ User.current = User.find_by :login, "admin"
6
6
  end
7
7
 
8
8
  test "the truth" do
9
9
  assert true
10
10
  end
11
-
12
11
  end
metadata CHANGED
@@ -1,23 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt_provision_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaniv Bronhaim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-24 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: deface
14
+ name: factory_bot_rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: '0'
20
- type: :runtime
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
21
63
  prerelease: false
22
64
  version_requirements: !ruby/object:Gem::Requirement
23
65
  requirements:
@@ -25,19 +67,19 @@ dependencies:
25
67
  - !ruby/object:Gem::Version
26
68
  version: '0'
27
69
  - !ruby/object:Gem::Dependency
28
- name: rbovirt
70
+ name: ovirt-engine-sdk
29
71
  requirement: !ruby/object:Gem::Requirement
30
72
  requirements:
31
73
  - - ">="
32
74
  - !ruby/object:Gem::Version
33
- version: 0.0.27
75
+ version: 4.1.3
34
76
  type: :runtime
35
77
  prerelease: false
36
78
  version_requirements: !ruby/object:Gem::Requirement
37
79
  requirements:
38
80
  - - ">="
39
81
  - !ruby/object:Gem::Version
40
- version: 0.0.27
82
+ version: 4.1.3
41
83
  description: Ovirt provision plugin sends API request to oVirt management to reinstall
42
84
  host id after discovered hosts are first provisioned by oVirt engine (Using foreman
43
85
  provider integration).
@@ -50,21 +92,17 @@ files:
50
92
  - LICENSE
51
93
  - README.md
52
94
  - Rakefile
53
- - app/helpers/concerns/ovirt_provision_plugin/hosts_helper_extensions.rb
54
95
  - app/models/concerns/ovirt_provision_plugin/host_extensions.rb
55
96
  - app/models/concerns/ovirt_provision_plugin/report_extensions.rb
56
- - app/overrides/dashboard/index/sample_override.html.erb.deface
57
- - app/views/ovirt_provision_plugin/hosts/hosts/new_action.html.erb
58
- - app/views/ovirt_provision_plugin/hosts/hosts/ovirt_hosts.html.erb
59
- - app/views/ovirt_provision_plugin/hosts/new_action.html.erb
60
- - app/views/ovirt_provision_plugin/hosts/ovirt_hosts.html.erb
61
- - app/views/ovirt_provision_plugin/layouts/layouts/new_layout.html.erb
62
- - app/views/ovirt_provision_plugin/layouts/new_layout.html.erb
63
97
  - config/routes.rb
64
98
  - lib/ovirt_provision_plugin.rb
65
99
  - lib/ovirt_provision_plugin/engine.rb
66
100
  - lib/ovirt_provision_plugin/version.rb
67
101
  - lib/tasks/ovirt_provision_plugin_tasks.rake
102
+ - locale/Makefile
103
+ - locale/en/ovirt_provision_plugin.po
104
+ - locale/gemspec.rb
105
+ - locale/ovirt_provision_plugin.pot
68
106
  - test/factories/ovirt_provision_plugin_factories.rb
69
107
  - test/test_plugin_helper.rb
70
108
  - test/unit/ovirt_provision_plugin_test.rb
@@ -87,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
125
  version: '0'
88
126
  requirements: []
89
127
  rubyforge_project:
90
- rubygems_version: 2.4.8
128
+ rubygems_version: 2.6.14
91
129
  signing_key:
92
130
  specification_version: 4
93
131
  summary: This plugin monitors oVirt provision for new host and perform related API
@@ -1,14 +0,0 @@
1
- module OvirtProvisionPlugin
2
- module HostsHelperExtensions
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- # execute callbacks
7
- end
8
-
9
- # create or overwrite instance methods...
10
- def instance_method_name
11
- end
12
- end
13
-
14
- end
@@ -1,4 +0,0 @@
1
- <!-- insert_before 'div:contains("title_action")' -->
2
- <%= title_actions "<h2>OvirtProvisionPlugin</h2>" %>
3
-
4
- <!-- vim: set ft=eruby : -->
@@ -1 +0,0 @@
1
- Welcome to <b>ForemanPluginTemplate</b>
@@ -1 +0,0 @@
1
- Welcome to <b>ForemanPluginTemplate</b>
@@ -1 +0,0 @@
1
- <h1> oVirt Hosts </h1>
@@ -1 +0,0 @@
1
- <h1> oVirt Hosts <h1/>