foreman_discovery 7.0.1 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/discovered_hosts_controller.rb +2 -2
- data/app/controllers/discovered_hosts_controller.rb +2 -5
- data/app/models/host/discovered.rb +18 -10
- data/app/models/setting/discovered.rb +4 -2
- data/app/services/foreman_discovery/host_converter.rb +6 -1
- data/app/views/api/v2/discovered_hosts/main.json.rabl +4 -0
- data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +3 -3
- data/app/views/discovery_rules/_form.html.erb +3 -5
- data/app/views/discovery_rules/index.html.erb +1 -1
- data/db/migrate/20160805104605_rename_lock_template_setting.rb +14 -0
- data/db/migrate/20160925213030_change_discovery_widget_names.rb +11 -0
- data/db/migrate/20160927164411_define_explicit_length_for_discovery_rule_attributes.rb +7 -0
- data/db/migrate/20161006094714_add_constraints_on_subnets_smart_proxies.rb +17 -0
- data/lib/foreman_discovery/engine.rb +10 -6
- data/lib/foreman_discovery/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ca/foreman_discovery.edit.po +120 -163
- data/locale/ca/foreman_discovery.po +36 -12
- data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/de/foreman_discovery.edit.po +123 -163
- data/locale/de/foreman_discovery.po +38 -14
- data/locale/en/foreman_discovery.edit.po +73 -49
- data/locale/en/foreman_discovery.po +23 -5
- data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en_GB/foreman_discovery.edit.po +130 -165
- data/locale/en_GB/foreman_discovery.po +39 -15
- data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/es/foreman_discovery.edit.po +120 -163
- data/locale/es/foreman_discovery.po +37 -13
- data/locale/foreman_discovery.pot +79 -50
- data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/fr/foreman_discovery.edit.po +128 -164
- data/locale/fr/foreman_discovery.po +39 -15
- data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/gl/foreman_discovery.edit.po +116 -163
- data/locale/gl/foreman_discovery.po +36 -12
- data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/it/foreman_discovery.edit.po +120 -163
- data/locale/it/foreman_discovery.po +37 -13
- data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ja/foreman_discovery.edit.po +122 -163
- data/locale/ja/foreman_discovery.po +37 -13
- data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ko/foreman_discovery.edit.po +120 -162
- data/locale/ko/foreman_discovery.po +37 -13
- data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +120 -163
- data/locale/pt_BR/foreman_discovery.po +39 -15
- data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ru/foreman_discovery.edit.po +123 -164
- data/locale/ru/foreman_discovery.po +37 -13
- data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/sv_SE/foreman_discovery.edit.po +116 -163
- data/locale/sv_SE/foreman_discovery.po +36 -12
- data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_CN/foreman_discovery.edit.po +122 -163
- data/locale/zh_CN/foreman_discovery.po +37 -13
- data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_TW/foreman_discovery.edit.po +122 -163
- data/locale/zh_TW/foreman_discovery.po +37 -13
- data/test/functional/api/v2/discovered_hosts_controller_test.rb +54 -27
- data/test/functional/api/v2/discovery_rules_controller_test.rb +1 -9
- data/test/functional/discovered_hosts_controller_test.rb +35 -17
- data/test/test_helper_discovery.rb +17 -0
- data/test/unit/discovered_extensions_test.rb +1 -9
- data/test/unit/discovery_rule_test.rb +51 -0
- data/test/unit/discovery_taxonomy_extensions_test.rb +1 -8
- data/test/unit/host_discovered_test.rb +16 -50
- metadata +7 -19
- data/app/models/concerns/discovery_subnet.rb +0 -7
- data/app/overrides/subnet_form_with_discovery_proxy.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e377aabf655f28aca2a7dd29852b38a285c3d2
|
4
|
+
data.tar.gz: d7102edb90f79ed5c386d63f055c312dcaf9eafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27026469ca5ff403f032e217a68c103850ff7575e63d41cfa30227e4c8e49aab04af36f967e5319bab0fb6e81e85213e91876421933d6e3b7dcdaa0ea676dee
|
7
|
+
data.tar.gz: f491253cc94345867d0e99fbfa18dd79c7f5a2561623e33dda6d29b393f012d781794bab8e04483617989b015caa3f844a910671dc335096c0884f15400b4122
|
@@ -77,9 +77,9 @@ module Api
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def update
|
80
|
-
@host = ::ForemanDiscovery::HostConverter.to_managed(@discovered_host)
|
80
|
+
@host = ::ForemanDiscovery::HostConverter.to_managed(@discovered_host, true, true, discovered_host_params)
|
81
81
|
forward_request_url
|
82
|
-
update_response = @host.
|
82
|
+
update_response = @host.save
|
83
83
|
process_response update_response
|
84
84
|
end
|
85
85
|
|
@@ -50,9 +50,7 @@ class DiscoveredHostsController < ::ApplicationController
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def edit
|
53
|
-
@host = ::ForemanDiscovery::HostConverter.to_managed(@host, true, false) unless @host.nil?
|
54
|
-
@host.attributes = @host.apply_inherited_attributes(discovered_host_params_host) unless discovered_host_params_host.empty?
|
55
|
-
@host.set_hostgroup_defaults
|
53
|
+
@host = ::ForemanDiscovery::HostConverter.to_managed(@host, true, false, discovered_host_params_host) unless @host.nil?
|
56
54
|
setup_host_class_variables(@host)
|
57
55
|
@override_taxonomy = true
|
58
56
|
if params[:quick_submit]
|
@@ -63,9 +61,8 @@ class DiscoveredHostsController < ::ApplicationController
|
|
63
61
|
end
|
64
62
|
|
65
63
|
def update
|
66
|
-
@host = ::ForemanDiscovery::HostConverter.to_managed(@host)
|
64
|
+
@host = ::ForemanDiscovery::HostConverter.to_managed(@host, true, true, discovered_host_params_host)
|
67
65
|
forward_url_options
|
68
|
-
@host.attributes = discovered_host_params_host
|
69
66
|
|
70
67
|
perform_update(@host)
|
71
68
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class Host::Discovered < ::Host::Base
|
2
2
|
include ScopedSearchExtensions
|
3
3
|
include Foreman::Renderer
|
4
|
+
include BelongsToProxies
|
4
5
|
|
5
6
|
belongs_to :hostgroup
|
6
7
|
has_one :discovery_attribute_set, :foreign_key => :host_id, :dependent => :destroy
|
@@ -29,6 +30,10 @@ class Host::Discovered < ::Host::Base
|
|
29
30
|
where(taxonomy_conditions).order("hosts.created_at DESC")
|
30
31
|
}
|
31
32
|
|
33
|
+
before_destroy { |record|
|
34
|
+
record.update_attribute(:managed, false)
|
35
|
+
}
|
36
|
+
|
32
37
|
def self.import_host facts
|
33
38
|
raise(::Foreman::Exception.new(N_("Invalid facts, must be a Hash"))) unless facts.is_a?(Hash)
|
34
39
|
|
@@ -114,20 +119,23 @@ class Host::Discovered < ::Host::Base
|
|
114
119
|
self.discovery_attribute_set = DiscoveryAttributeSet.where(:host_id => id).first_or_create
|
115
120
|
self.discovery_attribute_set.update_attributes(import_from_facts)
|
116
121
|
# lock the host into discovery via PXE, if feature is enabled in settings
|
117
|
-
if Setting::Discovered.discovery_lock? && self.subnet.tftp?
|
118
|
-
begin
|
119
|
-
@host = self
|
120
|
-
Rails.logger.info "Locking discovered host #{self.mac} in subnet #{subnet}"
|
121
|
-
template = unattended_render(::ProvisioningTemplate.find_by_name(Setting['discovery_lock_template']).template)
|
122
|
-
subnet.tftp_proxy.set mac, :pxeconfig => template
|
123
|
-
rescue ::Foreman::Exception => e
|
124
|
-
::Foreman::Logging.exception("Could not set tftp_proxy from proxy", e)
|
125
|
-
end
|
126
|
-
end
|
122
|
+
lock_templates if Setting::Discovered.discovery_lock? && self.subnet.tftp?
|
127
123
|
self.save!
|
128
124
|
parser
|
129
125
|
end
|
130
126
|
|
127
|
+
def lock_templates
|
128
|
+
@host = self
|
129
|
+
TemplateKind::PXE.each do |kind|
|
130
|
+
template_name = Setting["discovery_#{kind.downcase}_lock_template"]
|
131
|
+
Rails.logger.info "Locking discovered host #{self.mac} in subnet #{subnet} via #{template_name} template"
|
132
|
+
template = unattended_render(::ProvisioningTemplate.find_by_name(template_name).template)
|
133
|
+
subnet.tftp_proxy.set(kind, mac, :pxeconfig => template)
|
134
|
+
end
|
135
|
+
rescue ::Foreman::Exception => e
|
136
|
+
::Foreman::Logging.exception("Could not set tftp_proxy from proxy", e)
|
137
|
+
end
|
138
|
+
|
131
139
|
def import_from_facts(facts = self.facts_hash)
|
132
140
|
cpu_count = facts['physicalprocessorcount'].to_i rescue 0
|
133
141
|
memory = facts['memorysize_mb'].to_f.ceil rescue 0
|
@@ -30,7 +30,9 @@ class Setting::Discovered < ::Setting
|
|
30
30
|
self.set('discovery_facts_network', N_("Regex to organize facts for network section"), "", N_("Network facts")),
|
31
31
|
self.set('discovery_facts_ipmi', N_("Regex to organize facts for ipmi section"), "", N_("IPMI facts")),
|
32
32
|
self.set('discovery_lock', N_("Automatically generate PXE configuration to pin a newly discovered host to discovery"), false, N_("Lock PXE")),
|
33
|
-
self.set('
|
33
|
+
self.set('discovery_pxelinux_lock_template', N_("PXELinux template to be used when pinning a host to discovery"), 'pxelinux_discovery', N_("Locked PXELinux template name"), nil, { :collection => Proc.new {Hash[ProvisioningTemplate.where(:template_kind => TemplateKind.find_by_name(:snippet)).map{|template| [template[:name], template[:name]]}]} }),
|
34
|
+
self.set('discovery_pxegrub_lock_template', N_("PXEGrub template to be used when pinning a host to discovery"), 'pxegrub_discovery', N_("Locked PXEGrub template name"), nil, { :collection => Proc.new {Hash[ProvisioningTemplate.where(:template_kind => TemplateKind.find_by_name(:snippet)).map{|template| [template[:name], template[:name]]}]} }),
|
35
|
+
self.set('discovery_pxegrub2_lock_template', N_("PXEGrub2 template to be used when pinning a host to discovery"), 'pxegrub2_discovery', N_("Locked PXEGrub2 template name"), nil, { :collection => Proc.new {Hash[ProvisioningTemplate.where(:template_kind => TemplateKind.find_by_name(:snippet)).map{|template| [template[:name], template[:name]]}]} }),
|
34
36
|
self.set('discovery_always_rebuild_dns', N_("Force DNS entries creation when provisioning discovered host"), true, N_("Force DNS")),
|
35
37
|
].compact.each { |s| self.create s.update(:category => "Setting::Discovered")}
|
36
38
|
end
|
@@ -64,7 +66,7 @@ class Setting::Discovered < ::Setting
|
|
64
66
|
end
|
65
67
|
|
66
68
|
def self.discovery_lock?
|
67
|
-
Foreman::Cast.to_bool(Setting['discovery_lock'])
|
69
|
+
Foreman::Cast.to_bool(Setting['discovery_lock'])
|
68
70
|
end
|
69
71
|
|
70
72
|
def self.from_array(setting)
|
@@ -3,9 +3,14 @@ class ForemanDiscovery::HostConverter
|
|
3
3
|
# Converts discovered host to managed host without uptading the database.
|
4
4
|
# Record must be saved explicitly (using save! or update_attributes! or similar).
|
5
5
|
# Creates shallow copy.
|
6
|
-
def self.to_managed(original_host, set_managed = true, set_build = true)
|
6
|
+
def self.to_managed(original_host, set_managed = true, set_build = true, added_attributes = {})
|
7
7
|
host = original_host.becomes(::Host::Managed)
|
8
|
+
host.clear_association_cache
|
8
9
|
host.type = 'Host::Managed'
|
10
|
+
|
11
|
+
host.attributes = host.apply_inherited_attributes(added_attributes)
|
12
|
+
host.set_hostgroup_defaults if host.hostgroup_id.present?
|
13
|
+
|
9
14
|
# the following flags can be skipped when parameters are set to false
|
10
15
|
if set_managed
|
11
16
|
host.managed = set_managed
|
@@ -5,6 +5,10 @@ extends "api/v2/discovered_hosts/base"
|
|
5
5
|
attributes :ip, :mac, :last_report, :subnet_id, :subnet_name, :hardware_model_name, :memory, :disk_count, :disks_size
|
6
6
|
attribute :cpu_count => :cpus
|
7
7
|
|
8
|
+
node :subnet_name do |host|
|
9
|
+
host.subnet.to_label if host.subnet.present?
|
10
|
+
end
|
11
|
+
|
8
12
|
if SETTINGS[:organizations_enabled]
|
9
13
|
attributes :organization_id, :organization_name
|
10
14
|
end
|
@@ -30,12 +30,12 @@
|
|
30
30
|
</td>
|
31
31
|
<%= render :partial => "discovered_host", :locals => {:host => host} %>
|
32
32
|
<% if SETTINGS[:locations_enabled] -%>
|
33
|
-
<td class="hidden-tablet hidden-xs"><%= host.location.try(:
|
33
|
+
<td class="hidden-tablet hidden-xs"><%= host.location.try(:title) %></td>
|
34
34
|
<% end -%>
|
35
35
|
<% if SETTINGS[:organizations_enabled] -%>
|
36
|
-
<td class="hidden-tablet hidden-xs"><%= host.organization.try(:
|
36
|
+
<td class="hidden-tablet hidden-xs"><%= host.organization.try(:title) %></td>
|
37
37
|
<% end -%>
|
38
|
-
<td class="hidden-tablet hidden-xs"><%= host.primary_interface.try(:subnet) %></td>
|
38
|
+
<td class="hidden-tablet hidden-xs"><%= host.primary_interface.try(:subnet).try(:to_label) %></td>
|
39
39
|
<td class="hidden-tablet hidden-xs"><%= disc_report_column(host) %></td>
|
40
40
|
<td>
|
41
41
|
<!-- Modal -->
|
@@ -24,13 +24,11 @@
|
|
24
24
|
_("Template"),
|
25
25
|
render('discovery_rules/template_inline'),
|
26
26
|
:title => _("Hostname for provisioned hosts"), :'data-placement' => 'bottom').html_safe %>
|
27
|
-
<%=
|
28
|
-
<%=
|
27
|
+
<%= number_f f, :max_count, :label => _('Hosts limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)'), :min => 0, :max => (2**31 - 1) %>
|
28
|
+
<%= number_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)'), :min => 0, :max => (2**31 - 1) %>
|
29
29
|
<%= checkbox_f f, :enabled %>
|
30
30
|
</div>
|
31
|
-
|
32
|
-
<%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @discovery_rule %>
|
33
|
-
<% end %>
|
31
|
+
<%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @discovery_rule %>
|
34
32
|
</div>
|
35
33
|
<%= submit_or_cancel f %>
|
36
34
|
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class RenameLockTemplateSetting < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
reversible do |dir|
|
4
|
+
dir.up do
|
5
|
+
setting = Setting.find_by_name("discovery_lock_template")
|
6
|
+
setting.destroy if setting
|
7
|
+
end
|
8
|
+
dir.down do
|
9
|
+
setting = Setting.find_by_name("discovery_pxelinux_lock_template")
|
10
|
+
setting.destroy if setting
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class ChangeDiscoveryWidgetNames < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
Widget.where(:name => 'Discovery widget').\
|
4
|
+
update_all(:name => 'Discovered Hosts')
|
5
|
+
end
|
6
|
+
|
7
|
+
def down
|
8
|
+
Widget.where(:name => 'Discovered Hosts').\
|
9
|
+
update_all(:name => 'Discovery widget')
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class DefineExplicitLengthForDiscoveryRuleAttributes < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
change_column :discovery_rules, :name, :string, :limit => 255
|
4
|
+
change_column :discovery_rules, :search, :string, :limit => 255
|
5
|
+
change_column :discovery_rules, :hostname, :string, :limit => 255
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class AddConstraintsOnSubnetsSmartProxies < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
# turn off Foreign Key checks
|
4
|
+
if ActiveRecord::Base.connection.adapter_name == 'PostgreSQL'
|
5
|
+
ActiveRecord::Migration.execute "SET CONSTRAINTS ALL DEFERRED;"
|
6
|
+
elsif ActiveRecord::Base.connection.adapter_name.downcase.starts_with? 'mysql'
|
7
|
+
ActiveRecord::Migration.execute "SET FOREIGN_KEY_CHECKS=0;"
|
8
|
+
end
|
9
|
+
|
10
|
+
add_foreign_key "subnets", "smart_proxies", :name => "subnets_discovery_id_fk", :column => "discovery_id"
|
11
|
+
|
12
|
+
# turn on Foreign Key checks in MySQL only
|
13
|
+
if ActiveRecord::Base.connection.adapter_name.downcase.starts_with? 'mysql'
|
14
|
+
ActiveRecord::Migration.execute "SET FOREIGN_KEY_CHECKS=1;"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'fast_gettext'
|
2
2
|
require 'gettext_i18n_rails'
|
3
|
-
require 'deface'
|
4
3
|
require 'rabl'
|
5
4
|
|
6
5
|
module ForemanDiscovery
|
@@ -43,7 +42,7 @@ module ForemanDiscovery
|
|
43
42
|
|
44
43
|
initializer 'foreman_discovery.register_plugin', :before => :finisher_hook do |app|
|
45
44
|
Foreman::Plugin.register :foreman_discovery do
|
46
|
-
requires_foreman '>= 1.
|
45
|
+
requires_foreman '>= 1.14.0'
|
47
46
|
|
48
47
|
# discovered hosts permissions
|
49
48
|
security_block :discovery do
|
@@ -67,6 +66,7 @@ module ForemanDiscovery
|
|
67
66
|
:select_multiple_organization,
|
68
67
|
:update_multiple_organization,
|
69
68
|
:select_multiple_location, :refresh_facts, :reboot, :reboot_all],
|
69
|
+
:hosts => [:process_hostgroup],
|
70
70
|
:"api/v2/discovered_hosts" => [:refresh_facts, :reboot, :reboot_all]
|
71
71
|
}, :resource_type => 'Host'
|
72
72
|
permission :destroy_discovered_hosts, {
|
@@ -160,7 +160,7 @@ module ForemanDiscovery
|
|
160
160
|
parameter_filter Hostgroup, :type, :discovery_rules => [], :discovery_rule_ids => [], :discovery_rule_names => []
|
161
161
|
|
162
162
|
# add dashboard widget
|
163
|
-
widget 'discovery_widget', :name=>N_('
|
163
|
+
widget 'discovery_widget', :name=>N_('Discovered Hosts'), :sizex => 6, :sizey =>1
|
164
164
|
|
165
165
|
# add template helpers
|
166
166
|
allowed_template_helpers :rand
|
@@ -169,6 +169,13 @@ module ForemanDiscovery
|
|
169
169
|
# apipie API documentation
|
170
170
|
# Only available in 1.8, otherwise it has to be in the initializer below
|
171
171
|
apipie_documented_controllers ["#{ForemanDiscovery::Engine.root}/app/controllers/api/v2/*.rb"]
|
172
|
+
|
173
|
+
# add discovery smart proxy to subnet
|
174
|
+
smart_proxy_for Subnet, :discovery,
|
175
|
+
:feature => 'Discovery',
|
176
|
+
:label => N_('Discovery Proxy'),
|
177
|
+
:description => N_('Discovery Proxy to use within this subnet for managing connection to discovered hosts'),
|
178
|
+
:api_description => N_('ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts')
|
172
179
|
end
|
173
180
|
end
|
174
181
|
|
@@ -197,9 +204,6 @@ module ForemanDiscovery
|
|
197
204
|
# Controller extensions
|
198
205
|
::HostsController.send :include, ForemanDiscovery::Concerns::HostsControllerExtensions
|
199
206
|
::Api::V2::FactValuesController.send :include, Api::V2::FactValuesControllerExtensions
|
200
|
-
|
201
|
-
# Include subnet extensions
|
202
|
-
::Subnet.send :include, DiscoverySubnet
|
203
207
|
end
|
204
208
|
|
205
209
|
rake_tasks do
|
Binary file
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3
3
|
# This file is distributed under the same license as the foreman_discovery package.
|
4
|
-
#
|
4
|
+
#
|
5
5
|
# Translators:
|
6
6
|
# Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: foreman_discovery 7.0.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
11
|
+
"POT-Creation-Date: 2017-01-06 08:26+0100\n"
|
12
12
|
"PO-Revision-Date: 2016-08-31 08:17+0000\n"
|
13
13
|
"Last-Translator: Lukáš Zapletal\n"
|
14
|
-
"Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)
|
14
|
+
"Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
|
15
|
+
"\n"
|
15
16
|
"MIME-Version: 1.0\n"
|
16
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
17
18
|
"Content-Transfer-Encoding: 8bit\n"
|
@@ -22,23 +23,19 @@ msgstr ""
|
|
22
23
|
msgid "List all discovered hosts"
|
23
24
|
msgstr "Llista tots els amfitrions descoberts"
|
24
25
|
|
25
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:17
|
26
|
-
#: ../app/controllers/api/v2/discovery_rules_controller.rb:15
|
26
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:17 ../app/controllers/api/v2/discovery_rules_controller.rb:15
|
27
27
|
msgid "filter results"
|
28
28
|
msgstr "filtra els resultats"
|
29
29
|
|
30
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:18
|
31
|
-
#: ../app/controllers/api/v2/discovery_rules_controller.rb:16
|
30
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:18 ../app/controllers/api/v2/discovery_rules_controller.rb:16
|
32
31
|
msgid "sort results"
|
33
32
|
msgstr "ordena els resultats"
|
34
33
|
|
35
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:19
|
36
|
-
#: ../app/controllers/api/v2/discovery_rules_controller.rb:17
|
34
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:19 ../app/controllers/api/v2/discovery_rules_controller.rb:17
|
37
35
|
msgid "paginate results"
|
38
36
|
msgstr "pagina els resultats"
|
39
37
|
|
40
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:20
|
41
|
-
#: ../app/controllers/api/v2/discovery_rules_controller.rb:18
|
38
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:20 ../app/controllers/api/v2/discovery_rules_controller.rb:18
|
42
39
|
msgid "number of entries per request"
|
43
40
|
msgstr "Nombre d'entrades per petició"
|
44
41
|
|
@@ -63,14 +60,11 @@ msgid "not required if it's a virtual machine"
|
|
63
60
|
msgstr ""
|
64
61
|
|
65
62
|
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:74
|
66
|
-
msgid ""
|
67
|
-
"UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
|
63
|
+
msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
|
68
64
|
msgstr ""
|
69
65
|
|
70
66
|
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:76
|
71
|
-
msgid ""
|
72
|
-
"required if value is not inherited from host group or default password in "
|
73
|
-
"settings"
|
67
|
+
msgid "required if value is not inherited from host group or default password in settings"
|
74
68
|
msgstr ""
|
75
69
|
|
76
70
|
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:86
|
@@ -82,18 +76,14 @@ msgid "Upload facts for a host, creating the host if required"
|
|
82
76
|
msgstr "Puja els objectes d'interès per a un amfitrió, creant el nou amfitrió si fos necessari"
|
83
77
|
|
84
78
|
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:94
|
85
|
-
msgid ""
|
86
|
-
"hash containing facts for the host with minimum set of facts: "
|
87
|
-
"discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: "
|
88
|
-
"eth0 (example in case primary interface is named eth0)"
|
79
|
+
msgid "hash containing facts for the host with minimum set of facts: discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: eth0 (example in case primary interface is named eth0)"
|
89
80
|
msgstr ""
|
90
81
|
|
91
82
|
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:111
|
92
83
|
msgid "Execute rules against a discovered host"
|
93
84
|
msgstr ""
|
94
85
|
|
95
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:117
|
96
|
-
#: ../app/controllers/discovered_hosts_controller.rb:165
|
86
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:117 ../app/controllers/discovered_hosts_controller.rb:162
|
97
87
|
msgid "Host %{host} was provisioned with rule %{rule}"
|
98
88
|
msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
|
99
89
|
|
@@ -101,8 +91,7 @@ msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
|
|
101
91
|
msgid "Unable to provision %{host}: %{errors}"
|
102
92
|
msgstr "No es pot aprovisionar a %{host}: %{errors}"
|
103
93
|
|
104
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:126
|
105
|
-
#: ../app/controllers/discovered_hosts_controller.rb:172
|
94
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:126 ../app/controllers/discovered_hosts_controller.rb:169
|
106
95
|
msgid "No rule found for host %s"
|
107
96
|
msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
|
108
97
|
|
@@ -110,13 +99,11 @@ msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
|
|
110
99
|
msgid "Execute rules against all currently discovered hosts"
|
111
100
|
msgstr "Executa les regles contra tots els amfitrions detectats actualment"
|
112
101
|
|
113
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:137
|
114
|
-
#: ../app/controllers/discovered_hosts_controller.rb:178
|
102
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:137 ../app/controllers/discovered_hosts_controller.rb:175
|
115
103
|
msgid "Errors during auto provisioning: %s"
|
116
104
|
msgstr "Erros durant l'auto aprovisionament: %s"
|
117
105
|
|
118
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:140
|
119
|
-
#: ../app/controllers/discovered_hosts_controller.rb:181
|
106
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:140 ../app/controllers/discovered_hosts_controller.rb:178
|
120
107
|
msgid "No discovered hosts to provision"
|
121
108
|
msgstr "Sense amfitrions descoberts per aprovisionar"
|
122
109
|
|
@@ -136,8 +123,7 @@ msgstr "S'està reiniciant un amfitrió descobert"
|
|
136
123
|
msgid "Rebooting all discovered hosts"
|
137
124
|
msgstr "S'estan reiniciant tots els amfitrions descoberts"
|
138
125
|
|
139
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:202
|
140
|
-
#: ../app/controllers/discovered_hosts_controller.rb:123
|
126
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:202 ../app/controllers/discovered_hosts_controller.rb:120
|
141
127
|
msgid "Discovered hosts are rebooting now"
|
142
128
|
msgstr "Ara s'estan reiniciant els amfitrions descoberts"
|
143
129
|
|
@@ -162,8 +148,7 @@ msgid "the hostgroup that is used to auto provision a host"
|
|
162
148
|
msgstr "el grup d'amfitrions que s'utilitza per a l'auto aprovisionament d'un amfitrió"
|
163
149
|
|
164
150
|
#: ../app/controllers/api/v2/discovery_rules_controller.rb:35
|
165
|
-
msgid ""
|
166
|
-
"defines a pattern to assign human-readable hostnames to the matching hosts"
|
151
|
+
msgid "defines a pattern to assign human-readable hostnames to the matching hosts"
|
167
152
|
msgstr ""
|
168
153
|
|
169
154
|
#: ../app/controllers/api/v2/discovery_rules_controller.rb:36
|
@@ -171,8 +156,7 @@ msgid "enables to limit maximum amount of provisioned hosts per rule"
|
|
171
156
|
msgstr "permet la limitació del nombre total màxim dels amfitrions aprovisionats per cada regla"
|
172
157
|
|
173
158
|
#: ../app/controllers/api/v2/discovery_rules_controller.rb:37
|
174
|
-
msgid ""
|
175
|
-
"puts the rules in order, low numbers go first. Must be greater then zero"
|
159
|
+
msgid "puts the rules in order, low numbers go first. Must be greater then zero"
|
176
160
|
msgstr ""
|
177
161
|
|
178
162
|
#: ../app/controllers/api/v2/discovery_rules_controller.rb:38
|
@@ -211,95 +195,95 @@ msgstr "Errors durant el reinici: %s"
|
|
211
195
|
msgid "No discovered hosts to reboot"
|
212
196
|
msgstr ""
|
213
197
|
|
214
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
198
|
+
#: ../app/controllers/discovered_hosts_controller.rb:57
|
215
199
|
msgid "Successfully provisioned %s"
|
216
200
|
msgstr ""
|
217
201
|
|
218
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
202
|
+
#: ../app/controllers/discovered_hosts_controller.rb:88
|
219
203
|
msgid "Facts refreshed for %s"
|
220
204
|
msgstr "Els objectes d'interès que s'han refrescat per a %s"
|
221
205
|
|
222
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
206
|
+
#: ../app/controllers/discovered_hosts_controller.rb:90
|
223
207
|
msgid "Failed to refresh facts for %s"
|
224
208
|
msgstr "No s'ha pogut refrescar els objectes d'interès per a %s"
|
225
209
|
|
226
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
210
|
+
#: ../app/controllers/discovered_hosts_controller.rb:93
|
227
211
|
msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
|
228
212
|
msgstr ""
|
229
213
|
|
230
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
214
|
+
#: ../app/controllers/discovered_hosts_controller.rb:100
|
231
215
|
msgid "Host of type %s can not be rebooted"
|
232
216
|
msgstr ""
|
233
217
|
|
234
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
218
|
+
#: ../app/controllers/discovered_hosts_controller.rb:104
|
235
219
|
msgid "Rebooting host %s"
|
236
220
|
msgstr "S'està reiniciant l'amfitrió %s"
|
237
221
|
|
238
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
222
|
+
#: ../app/controllers/discovered_hosts_controller.rb:106
|
239
223
|
msgid "Failed to reboot host %s"
|
240
224
|
msgstr "No s'ha pogut reiniciar l'amfitrió %s."
|
241
225
|
|
242
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
226
|
+
#: ../app/controllers/discovered_hosts_controller.rb:109
|
243
227
|
msgid "Failed to reboot host %{hostname} with error %{error_message}"
|
244
228
|
msgstr ""
|
245
229
|
|
246
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
230
|
+
#: ../app/controllers/discovered_hosts_controller.rb:123
|
247
231
|
msgid "Failed to reboot hosts with error %s"
|
248
232
|
msgstr ""
|
249
233
|
|
250
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
234
|
+
#: ../app/controllers/discovered_hosts_controller.rb:137
|
251
235
|
msgid "Destroyed selected hosts"
|
252
236
|
msgstr ""
|
253
237
|
|
254
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
238
|
+
#: ../app/controllers/discovered_hosts_controller.rb:139
|
255
239
|
msgid "The following hosts were not deleted: %s"
|
256
240
|
msgstr ""
|
257
241
|
|
258
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
242
|
+
#: ../app/controllers/discovered_hosts_controller.rb:166
|
259
243
|
msgid "Failed to auto provision host %s: %s"
|
260
244
|
msgstr "No s'ha pogut auto aprovisionar l'amfitrió %s: %s"
|
261
245
|
|
262
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
246
|
+
#: ../app/controllers/discovered_hosts_controller.rb:194
|
263
247
|
msgid "Discovered hosts are provisioning now"
|
264
248
|
msgstr "Els amfitrions descoberts ara tenen aprovisionament"
|
265
249
|
|
266
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
250
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
267
251
|
msgid "Highlights"
|
268
252
|
msgstr ""
|
269
253
|
|
270
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
254
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
271
255
|
msgid "Storage"
|
272
256
|
msgstr ""
|
273
257
|
|
274
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
258
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
275
259
|
msgid "Hardware"
|
276
260
|
msgstr ""
|
277
261
|
|
278
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
262
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
279
263
|
msgid "Network"
|
280
264
|
msgstr ""
|
281
265
|
|
282
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
266
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
283
267
|
msgid "Software"
|
284
268
|
msgstr ""
|
285
269
|
|
286
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
270
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
287
271
|
msgid "IPMI"
|
288
272
|
msgstr ""
|
289
273
|
|
290
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
274
|
+
#: ../app/controllers/discovered_hosts_controller.rb:223
|
291
275
|
msgid "Miscellaneous"
|
292
276
|
msgstr ""
|
293
277
|
|
294
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
278
|
+
#: ../app/controllers/discovered_hosts_controller.rb:300
|
295
279
|
msgid "No hosts were found with that id or name"
|
296
280
|
msgstr "No s'ha trobat cap amfitrió amb aquest id. o nom"
|
297
281
|
|
298
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
282
|
+
#: ../app/controllers/discovered_hosts_controller.rb:304
|
299
283
|
msgid "No hosts selected"
|
300
284
|
msgstr "Cap amfitrió seleccionat"
|
301
285
|
|
302
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
286
|
+
#: ../app/controllers/discovered_hosts_controller.rb:310
|
303
287
|
msgid "Something went wrong while selecting hosts - %s"
|
304
288
|
msgstr "Alguna cosa va anar malament mentre se seleccionaven els amfitrions - %s"
|
305
289
|
|
@@ -315,19 +299,15 @@ msgstr "Regla inhabilitada"
|
|
315
299
|
msgid "%s ago"
|
316
300
|
msgstr "fa %s"
|
317
301
|
|
318
|
-
#: ../app/helpers/discovered_hosts_helper.rb:14
|
319
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
|
302
|
+
#: ../app/helpers/discovered_hosts_helper.rb:14 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
|
320
303
|
msgid "Auto Provision"
|
321
304
|
msgstr "Auto aprovisiona"
|
322
305
|
|
323
|
-
#: ../app/helpers/discovered_hosts_helper.rb:15
|
324
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
|
306
|
+
#: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
|
325
307
|
msgid "Refresh facts"
|
326
308
|
msgstr "Refresca els objectes d'interès"
|
327
309
|
|
328
|
-
#: ../app/helpers/discovered_hosts_helper.rb:16
|
329
|
-
#: ../app/models/setting/discovered.rb:23
|
330
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
|
310
|
+
#: ../app/helpers/discovered_hosts_helper.rb:16 ../app/models/setting/discovered.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
|
331
311
|
msgid "Reboot"
|
332
312
|
msgstr "Reinicia"
|
333
313
|
|
@@ -335,8 +315,7 @@ msgstr "Reinicia"
|
|
335
315
|
msgid "Back"
|
336
316
|
msgstr "Enrere"
|
337
317
|
|
338
|
-
#: ../app/helpers/discovered_hosts_helper.rb:21
|
339
|
-
#: ../app/helpers/discovered_hosts_helper.rb:38
|
318
|
+
#: ../app/helpers/discovered_hosts_helper.rb:21 ../app/helpers/discovered_hosts_helper.rb:38
|
340
319
|
msgid "Select Action"
|
341
320
|
msgstr "Selecciona l'acció"
|
342
321
|
|
@@ -344,8 +323,7 @@ msgstr "Selecciona l'acció"
|
|
344
323
|
msgid "Expand All"
|
345
324
|
msgstr "Expandeix-ho tot"
|
346
325
|
|
347
|
-
#: ../app/helpers/discovered_hosts_helper.rb:28
|
348
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
|
326
|
+
#: ../app/helpers/discovered_hosts_helper.rb:28 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
|
349
327
|
msgid "Delete %s?"
|
350
328
|
msgstr "Voleu suprimir %s?"
|
351
329
|
|
@@ -385,7 +363,7 @@ msgstr "Es va informar en els últims 7 dies"
|
|
385
363
|
msgid "Provision"
|
386
364
|
msgstr "Aprovisiona"
|
387
365
|
|
388
|
-
#: ../app/helpers/discovery_rules_helper.rb:26
|
366
|
+
#: ../app/helpers/discovery_rules_helper.rb:26 ../lib/foreman_discovery/engine.rb:163
|
389
367
|
msgid "Discovered Hosts"
|
390
368
|
msgstr ""
|
391
369
|
|
@@ -430,57 +408,50 @@ msgid "must start with a letter or ERB."
|
|
430
408
|
msgstr "ha de començar amb una lletra o ERB."
|
431
409
|
|
432
410
|
#: ../app/models/discovery_rule.rb:45
|
433
|
-
msgid ""
|
434
|
-
"Host group
|
435
|
-
msgid_plural ""
|
436
|
-
"Host group organizations %s must also be associated to the discovery rule"
|
411
|
+
msgid "Host group organization %s must also be associated to the discovery rule"
|
412
|
+
msgid_plural "Host group organizations %s must also be associated to the discovery rule"
|
437
413
|
msgstr[0] ""
|
438
414
|
msgstr[1] ""
|
439
415
|
|
440
416
|
#: ../app/models/discovery_rule.rb:51
|
441
417
|
msgid "Host group location %s must also be associated to the discovery rule"
|
442
|
-
msgid_plural ""
|
443
|
-
"Host group locations %s must also be associated to the discovery rule"
|
418
|
+
msgid_plural "Host group locations %s must also be associated to the discovery rule"
|
444
419
|
msgstr[0] ""
|
445
420
|
msgstr[1] ""
|
446
421
|
|
447
|
-
#: ../app/models/host/discovered.rb:
|
422
|
+
#: ../app/models/host/discovered.rb:38
|
448
423
|
msgid "Invalid facts, must be a Hash"
|
449
424
|
msgstr "Objectes d'interès no vàlids, han de tenir un Hash"
|
450
425
|
|
451
|
-
#: ../app/models/host/discovered.rb:
|
452
|
-
msgid ""
|
453
|
-
"Expected discovery_fact '%s' is missing, unable to detect primary interface "
|
454
|
-
"and set hostname"
|
426
|
+
#: ../app/models/host/discovered.rb:43
|
427
|
+
msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
|
455
428
|
msgstr ""
|
456
429
|
|
457
|
-
#: ../app/models/host/discovered.rb:
|
458
|
-
msgid ""
|
459
|
-
"Invalid facts: hash does not contain a valid value for any of the facts in "
|
460
|
-
"the discovery_hostname setting: %s"
|
430
|
+
#: ../app/models/host/discovered.rb:50
|
431
|
+
msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
|
461
432
|
msgstr ""
|
462
433
|
|
463
|
-
#: ../app/models/host/discovered.rb:
|
434
|
+
#: ../app/models/host/discovered.rb:67
|
464
435
|
msgid "Facts could not be imported"
|
465
436
|
msgstr ""
|
466
437
|
|
467
|
-
#: ../app/models/host/discovered.rb:
|
438
|
+
#: ../app/models/host/discovered.rb:117
|
468
439
|
msgid "Unable to assign subnet, primary interface is missing IP address"
|
469
440
|
msgstr ""
|
470
441
|
|
471
|
-
#: ../app/models/host/discovered.rb:
|
442
|
+
#: ../app/models/host/discovered.rb:174
|
472
443
|
msgid "Could not get facts from proxy %{url}: %{error}"
|
473
444
|
msgstr "No s'han pogut obtenir els objectes d'interès del servidor intermediari %{url}: %{error}"
|
474
445
|
|
475
|
-
#: ../app/models/host/discovered.rb:
|
446
|
+
#: ../app/models/host/discovered.rb:190
|
476
447
|
msgid "Unable to reboot %{name} via %{url}: %{msg}"
|
477
448
|
msgstr "No es pot reiniciar %{name} a través de %{url}: %{msg}"
|
478
449
|
|
479
|
-
#: ../app/models/host/discovered.rb:
|
450
|
+
#: ../app/models/host/discovered.rb:198
|
480
451
|
msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
|
481
452
|
msgstr "No es pot realitzar kexec a %{name} a través de %{url}: %{msg}"
|
482
453
|
|
483
|
-
#: ../app/models/host/discovered.rb:
|
454
|
+
#: ../app/models/host/discovered.rb:217
|
484
455
|
msgid "Invalid hostname: Could not normalize the hostname"
|
485
456
|
msgstr ""
|
486
457
|
|
@@ -525,9 +496,7 @@ msgid "Hostname facts"
|
|
525
496
|
msgstr ""
|
526
497
|
|
527
498
|
#: ../app/models/setting/discovered.rb:22
|
528
|
-
msgid ""
|
529
|
-
"Automatically provision newly discovered hosts, according to the "
|
530
|
-
"provisioning rules"
|
499
|
+
msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
|
531
500
|
msgstr ""
|
532
501
|
|
533
502
|
#: ../app/models/setting/discovered.rb:22
|
@@ -603,9 +572,7 @@ msgid "IPMI facts"
|
|
603
572
|
msgstr ""
|
604
573
|
|
605
574
|
#: ../app/models/setting/discovered.rb:32
|
606
|
-
msgid ""
|
607
|
-
"Automatically generate PXE configuration to pin a newly discovered host to "
|
608
|
-
"discovery"
|
575
|
+
msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
|
609
576
|
msgstr ""
|
610
577
|
|
611
578
|
#: ../app/models/setting/discovered.rb:32
|
@@ -613,41 +580,55 @@ msgid "Lock PXE"
|
|
613
580
|
msgstr ""
|
614
581
|
|
615
582
|
#: ../app/models/setting/discovered.rb:33
|
616
|
-
msgid "
|
583
|
+
msgid "PXELinux template to be used when pinning a host to discovery"
|
617
584
|
msgstr ""
|
618
585
|
|
619
586
|
#: ../app/models/setting/discovered.rb:33
|
620
|
-
msgid "Locked template name"
|
587
|
+
msgid "Locked PXELinux template name"
|
621
588
|
msgstr ""
|
622
589
|
|
623
590
|
#: ../app/models/setting/discovered.rb:34
|
624
|
-
msgid "
|
591
|
+
msgid "PXEGrub template to be used when pinning a host to discovery"
|
625
592
|
msgstr ""
|
626
593
|
|
627
594
|
#: ../app/models/setting/discovered.rb:34
|
595
|
+
msgid "Locked PXEGrub template name"
|
596
|
+
msgstr ""
|
597
|
+
|
598
|
+
#: ../app/models/setting/discovered.rb:35
|
599
|
+
msgid "PXEGrub2 template to be used when pinning a host to discovery"
|
600
|
+
msgstr ""
|
601
|
+
|
602
|
+
#: ../app/models/setting/discovered.rb:35
|
603
|
+
msgid "Locked PXEGrub2 template name"
|
604
|
+
msgstr ""
|
605
|
+
|
606
|
+
#: ../app/models/setting/discovered.rb:36
|
607
|
+
msgid "Force DNS entries creation when provisioning discovered host"
|
608
|
+
msgstr ""
|
609
|
+
|
610
|
+
#: ../app/models/setting/discovered.rb:36
|
628
611
|
msgid "Force DNS"
|
629
612
|
msgstr ""
|
630
613
|
|
631
|
-
#: ../app/models/setting/discovered.rb:
|
614
|
+
#: ../app/models/setting/discovered.rb:43
|
632
615
|
msgid "The default location to place discovered hosts in"
|
633
616
|
msgstr ""
|
634
617
|
|
635
|
-
#: ../app/models/setting/discovered.rb:
|
618
|
+
#: ../app/models/setting/discovered.rb:43
|
636
619
|
msgid "Discovery location"
|
637
620
|
msgstr ""
|
638
621
|
|
639
|
-
#: ../app/models/setting/discovered.rb:
|
622
|
+
#: ../app/models/setting/discovered.rb:51
|
640
623
|
msgid "The default organization to place discovered hosts in"
|
641
624
|
msgstr ""
|
642
625
|
|
643
|
-
#: ../app/models/setting/discovered.rb:
|
626
|
+
#: ../app/models/setting/discovered.rb:51
|
644
627
|
msgid "Discovery organization"
|
645
628
|
msgstr ""
|
646
629
|
|
647
630
|
#: ../app/services/foreman_discovery/fact_parser.rb:9
|
648
|
-
msgid ""
|
649
|
-
"Unable to detect primary interface using MAC '%{mac}' specified by "
|
650
|
-
"discovery_fact '%{fact}'"
|
631
|
+
msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
|
651
632
|
msgstr ""
|
652
633
|
|
653
634
|
#: ../app/services/foreman_discovery/node_api/node_resource.rb:75
|
@@ -666,25 +647,15 @@ msgstr ""
|
|
666
647
|
msgid "Host"
|
667
648
|
msgstr "Amfitrió"
|
668
649
|
|
669
|
-
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4
|
670
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7
|
671
|
-
#: ../app/views/discovered_hosts/_selected_hosts.html.erb:8
|
672
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:18
|
673
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:10
|
650
|
+
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7 ../app/views/discovered_hosts/_selected_hosts.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:18 ../app/views/discovered_mailer/discovered_summary.text.erb:10
|
674
651
|
msgid "Model"
|
675
652
|
msgstr "Model"
|
676
653
|
|
677
|
-
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5
|
678
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9
|
679
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:20
|
680
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:12
|
654
|
+
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9 ../app/views/discovered_mailer/discovered_summary.html.erb:20 ../app/views/discovered_mailer/discovered_summary.text.erb:12
|
681
655
|
msgid "CPUs"
|
682
656
|
msgstr "Les CPU"
|
683
657
|
|
684
|
-
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6
|
685
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10
|
686
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:21
|
687
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:13
|
658
|
+
#: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10 ../app/views/discovered_mailer/discovered_summary.html.erb:21 ../app/views/discovered_mailer/discovered_summary.text.erb:13
|
688
659
|
msgid "Memory"
|
689
660
|
msgstr "Memòria"
|
690
661
|
|
@@ -700,8 +671,7 @@ msgstr ""
|
|
700
671
|
msgid "Create host"
|
701
672
|
msgstr ""
|
702
673
|
|
703
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2
|
704
|
-
#: ../lib/foreman_discovery/engine.rb:147
|
674
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../lib/foreman_discovery/engine.rb:148
|
705
675
|
msgid "Discovered hosts"
|
706
676
|
msgstr "Amfitrions descoberts"
|
707
677
|
|
@@ -713,38 +683,27 @@ msgstr "Selecciona tots els ítems en aquesta pàgina"
|
|
713
683
|
msgid "items selected. Uncheck to Clear"
|
714
684
|
msgstr "ítems seleccionats. Desmarca per netejar"
|
715
685
|
|
716
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6
|
717
|
-
#: ../app/views/discovered_hosts/_selected_hosts.html.erb:7
|
718
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:17
|
719
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:9
|
686
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6 ../app/views/discovered_hosts/_selected_hosts.html.erb:7 ../app/views/discovered_mailer/discovered_summary.html.erb:17 ../app/views/discovered_mailer/discovered_summary.text.erb:9
|
720
687
|
msgid "Name"
|
721
688
|
msgstr "Nom"
|
722
689
|
|
723
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8
|
724
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:19
|
725
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:11
|
690
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:19 ../app/views/discovered_mailer/discovered_summary.text.erb:11
|
726
691
|
msgid "IP Address"
|
727
692
|
msgstr "Adreça IP"
|
728
693
|
|
729
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
|
730
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:22
|
731
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:14
|
694
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11 ../app/views/discovered_mailer/discovered_summary.html.erb:22 ../app/views/discovered_mailer/discovered_summary.text.erb:14
|
732
695
|
msgid "Disk count"
|
733
696
|
msgstr "Nombre de discs"
|
734
697
|
|
735
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12
|
736
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:23
|
737
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:15
|
698
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12 ../app/views/discovered_mailer/discovered_summary.html.erb:23 ../app/views/discovered_mailer/discovered_summary.text.erb:15
|
738
699
|
msgid "Disks size"
|
739
700
|
msgstr "Mida de disc"
|
740
701
|
|
741
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17
|
742
|
-
#: ../app/views/discovered_hosts/_selected_hosts.html.erb:10
|
702
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
|
743
703
|
msgid "Location"
|
744
704
|
msgstr "Ubicació"
|
745
705
|
|
746
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20
|
747
|
-
#: ../app/views/discovered_hosts/_selected_hosts.html.erb:13
|
706
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovered_hosts/_selected_hosts.html.erb:13
|
748
707
|
msgid "Organization"
|
749
708
|
msgstr "Organització"
|
750
709
|
|
@@ -781,9 +740,7 @@ msgid "Warning"
|
|
781
740
|
msgstr "Advertència"
|
782
741
|
|
783
742
|
#: ../app/views/discovered_hosts/multiple_destroy.html.erb:5
|
784
|
-
msgid ""
|
785
|
-
"This might take a while, as all hosts, facts and reports will be destroyed "
|
786
|
-
"as well"
|
743
|
+
msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
|
787
744
|
msgstr ""
|
788
745
|
|
789
746
|
#: ../app/views/discovered_hosts/select_multiple_location.html.erb:5
|
@@ -826,13 +783,11 @@ msgstr ""
|
|
826
783
|
msgid "<b>Foreman</b> Discovered hosts summary"
|
827
784
|
msgstr ""
|
828
785
|
|
829
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:10
|
830
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:5
|
786
|
+
#: ../app/views/discovered_mailer/discovered_summary.html.erb:10 ../app/views/discovered_mailer/discovered_summary.text.erb:5
|
831
787
|
msgid "Summary from %{time} ago to %{now}"
|
832
788
|
msgstr ""
|
833
789
|
|
834
|
-
#: ../app/views/discovered_mailer/discovered_summary.html.erb:11
|
835
|
-
#: ../app/views/discovered_mailer/discovered_summary.text.erb:3
|
790
|
+
#: ../app/views/discovered_mailer/discovered_summary.html.erb:11 ../app/views/discovered_mailer/discovered_summary.text.erb:3
|
836
791
|
msgid "Discovered hosts from Foreman server at %{foreman_url}"
|
837
792
|
msgstr ""
|
838
793
|
|
@@ -885,33 +840,23 @@ msgid "Rule priority (lower integer means higher priority)"
|
|
885
840
|
msgstr ""
|
886
841
|
|
887
842
|
#: ../app/views/discovery_rules/_template_inline.erb:2
|
888
|
-
msgid ""
|
889
|
-
"Specify target hostname template pattern in the same syntax as in "
|
890
|
-
"Provisioning Templates (ERB)."
|
843
|
+
msgid "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
|
891
844
|
msgstr ""
|
892
845
|
|
893
846
|
#: ../app/views/discovery_rules/_template_inline.erb:4
|
894
|
-
msgid ""
|
895
|
-
"Domain will be appended automatically. A hostname based on MAC address will "
|
896
|
-
"be used when left blank."
|
847
|
+
msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
|
897
848
|
msgstr ""
|
898
849
|
|
899
850
|
#: ../app/views/discovery_rules/_template_inline.erb:5
|
900
|
-
msgid ""
|
901
|
-
"In addition to @host attribute function rand for random integers is "
|
902
|
-
"available. Examples:"
|
851
|
+
msgid "In addition to @host attribute function rand for random integers is available. Examples:"
|
903
852
|
msgstr ""
|
904
853
|
|
905
854
|
#: ../app/views/discovery_rules/_template_inline.erb:8
|
906
|
-
msgid ""
|
907
|
-
"When creating hostname patterns, make sure the resulting host names are "
|
908
|
-
"unique."
|
855
|
+
msgid "When creating hostname patterns, make sure the resulting host names are unique."
|
909
856
|
msgstr ""
|
910
857
|
|
911
858
|
#: ../app/views/discovery_rules/_template_inline.erb:9
|
912
|
-
msgid ""
|
913
|
-
"Hostnames must not start with numbers. A good approach is to use unique "
|
914
|
-
"information provided by facter (MAC address, BIOS or serial ID)."
|
859
|
+
msgid "Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
|
915
860
|
msgstr ""
|
916
861
|
|
917
862
|
#: ../app/views/discovery_rules/edit.html.erb:1
|
@@ -958,10 +903,22 @@ msgstr "Nova regla de descobriment"
|
|
958
903
|
msgid "A summary of discovered hosts"
|
959
904
|
msgstr ""
|
960
905
|
|
961
|
-
#: ../lib/foreman_discovery/engine.rb:
|
906
|
+
#: ../lib/foreman_discovery/engine.rb:153
|
962
907
|
msgid "Discovery rules"
|
963
908
|
msgstr "Regles de descobriment"
|
964
909
|
|
910
|
+
#: ../lib/foreman_discovery/engine.rb:176
|
911
|
+
msgid "Discovery Proxy"
|
912
|
+
msgstr ""
|
913
|
+
|
914
|
+
#: ../lib/foreman_discovery/engine.rb:177
|
915
|
+
msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
916
|
+
msgstr ""
|
917
|
+
|
918
|
+
#: ../lib/foreman_discovery/engine.rb:178
|
919
|
+
msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
920
|
+
msgstr ""
|
921
|
+
|
965
922
|
#: ../lib/foreman_discovery/engine.rb:162
|
966
|
-
msgid "Discovery widget"
|
967
|
-
msgstr "Estri de descobriment"
|
923
|
+
#~ msgid "Discovery widget"
|
924
|
+
#~ msgstr "Estri de descobriment"
|