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 +4 -4
- data/README.md +4 -3
- data/Rakefile +12 -5
- data/app/models/concerns/ovirt_provision_plugin/host_extensions.rb +91 -87
- data/app/models/concerns/ovirt_provision_plugin/report_extensions.rb +1 -4
- data/config/routes.rb +0 -3
- data/lib/ovirt_provision_plugin/engine.rb +10 -31
- data/lib/ovirt_provision_plugin/version.rb +1 -1
- data/lib/tasks/ovirt_provision_plugin_tasks.rake +1 -1
- data/locale/Makefile +60 -0
- data/locale/en/ovirt_provision_plugin.po +19 -0
- data/locale/gemspec.rb +2 -0
- data/locale/ovirt_provision_plugin.pot +19 -0
- data/test/factories/ovirt_provision_plugin_factories.rb +2 -2
- data/test/test_plugin_helper.rb +5 -3
- data/test/unit/ovirt_provision_plugin_test.rb +1 -2
- metadata +54 -16
- data/app/helpers/concerns/ovirt_provision_plugin/hosts_helper_extensions.rb +0 -14
- data/app/overrides/dashboard/index/sample_override.html.erb.deface +0 -4
- data/app/views/ovirt_provision_plugin/hosts/hosts/new_action.html.erb +0 -1
- data/app/views/ovirt_provision_plugin/hosts/hosts/ovirt_hosts.html.erb +0 -1
- data/app/views/ovirt_provision_plugin/hosts/new_action.html.erb +0 -1
- data/app/views/ovirt_provision_plugin/hosts/ovirt_hosts.html.erb +0 -1
- data/app/views/ovirt_provision_plugin/layouts/layouts/new_layout.html.erb +0 -0
- data/app/views/ovirt_provision_plugin/layouts/new_layout.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3228d5d8e55503372c0b3e1b23e58e89a92df35e
|
4
|
+
data.tar.gz: c85c1ff3175bf804a5720d74b306b4e86a52b10a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 |
|
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(
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
61
|
+
ovirt_host
|
40
62
|
end
|
41
63
|
|
42
|
-
def
|
43
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
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
|
82
|
-
|
83
|
-
if
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
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
|
data/config/routes.rb
CHANGED
@@ -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', :
|
7
|
+
initializer 'ovirt_provision_plugin.register_plugin', :before => :finisher_hook do |_app|
|
19
8
|
Foreman::Plugin.register :ovirt_provision_plugin do
|
20
|
-
requires_foreman
|
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
|
-
|
38
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
@@ -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
|
data/locale/Makefile
ADDED
@@ -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
|
+
|
data/locale/gemspec.rb
ADDED
@@ -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
|
+
|
data/test/test_plugin_helper.rb
CHANGED
@@ -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
|
-
|
6
|
-
|
7
|
+
FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
|
8
|
+
FactoryBot.reload
|
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:
|
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:
|
11
|
+
date: 2018-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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: :
|
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:
|
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:
|
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:
|
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.
|
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 +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/>
|
File without changes
|
File without changes
|