foreman_puppet 5.0.0 → 5.1.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 +5 -7
- data/Rakefile +0 -5
- data/app/graphgl/foreman_puppet/types/environment.rb +1 -4
- data/app/graphgl/foreman_puppet/types/puppetclass.rb +1 -4
- data/app/models/foreman_puppet/puppetclass.rb +2 -2
- data/lib/foreman_puppet/register.rb +1 -1
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ca/foreman_puppet.edit.po +1221 -0
- data/locale/ca/foreman_puppet.po +41 -7
- data/locale/ca/foreman_puppet.po.time_stamp +0 -0
- data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/cs_CZ/foreman_puppet.edit.po +1208 -0
- data/locale/cs_CZ/foreman_puppet.po +42 -8
- data/locale/cs_CZ/foreman_puppet.po.time_stamp +0 -0
- data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/de/foreman_puppet.edit.po +1300 -0
- data/locale/de/foreman_puppet.po +46 -12
- data/locale/de/foreman_puppet.po.time_stamp +0 -0
- data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en/foreman_puppet.edit.po +998 -0
- data/locale/en/foreman_puppet.po +38 -5
- data/locale/en/foreman_puppet.po.time_stamp +0 -0
- data/locale/en/foreman_puppet.pox +0 -0
- data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +1197 -0
- data/locale/en_GB/foreman_puppet.po +41 -7
- data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/es/foreman_puppet.edit.po +1275 -0
- data/locale/es/foreman_puppet.po +74 -38
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/foreman_puppet.pot +71 -18
- data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/fr/foreman_puppet.edit.po +1290 -0
- data/locale/fr/foreman_puppet.po +65 -28
- data/locale/fr/foreman_puppet.po.time_stamp +0 -0
- data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/gl/foreman_puppet.edit.po +1203 -0
- data/locale/gl/foreman_puppet.po +41 -7
- data/locale/gl/foreman_puppet.po.time_stamp +0 -0
- data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/it/foreman_puppet.edit.po +1233 -0
- data/locale/it/foreman_puppet.po +44 -9
- data/locale/it/foreman_puppet.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ja/foreman_puppet.edit.po +1223 -0
- data/locale/ja/foreman_puppet.po +58 -24
- data/locale/ja/foreman_puppet.po.time_stamp +0 -0
- data/locale/ka/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ka/foreman_puppet.po +873 -0
- data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ko/foreman_puppet.edit.po +1197 -0
- data/locale/ko/foreman_puppet.po +42 -8
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/messages.mo +0 -0
- data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +1228 -0
- data/locale/nl_NL/foreman_puppet.po +41 -7
- data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
- data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pl/foreman_puppet.edit.po +1238 -0
- data/locale/pl/foreman_puppet.po +42 -8
- data/locale/pl/foreman_puppet.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pt_BR/foreman_puppet.edit.po +1281 -0
- data/locale/pt_BR/foreman_puppet.po +75 -40
- data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
- data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ru/foreman_puppet.edit.po +1240 -0
- data/locale/ru/foreman_puppet.po +42 -8
- data/locale/ru/foreman_puppet.po.time_stamp +0 -0
- data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/sv_SE/foreman_puppet.edit.po +1205 -0
- data/locale/sv_SE/foreman_puppet.po +41 -7
- data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_CN/foreman_puppet.edit.po +1212 -0
- data/locale/zh_CN/foreman_puppet.po +63 -29
- data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_TW/foreman_puppet.edit.po +1197 -0
- data/locale/zh_TW/foreman_puppet.po +42 -8
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
- data/test/graphql/mutations/hosts/create_mutation_test.rb +1 -2
- data/test/unit/foreman_puppet/global_id_test.rb +13 -0
- data/webpack/src/Components/Environments/Welcome.js +24 -5
- data/webpack/src/Extends/Host/PuppetTab/index.js +2 -0
- metadata +100 -58
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2d266777270f646110ea8caf84b754adbb7ff030cbf0b7770c903c0dcebda07
|
|
4
|
+
data.tar.gz: 64a320d05f07a4c9162b940b64b7cce83116b21138f66aed721a4ca2c5b5701a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0755581750978e000fcfa59d3a92e3557f515fad48220189000deca9168dee7e2dd12076ce1c96773bf53e931674c1e07b419f631ce760243f7b74c5aebe414a'
|
|
7
|
+
data.tar.gz: 687891997eb4c629b533235a80cd9077b8548f6d48058b042c71bb854650029632bead4cbdfa01295a1fe1ba6a368bf3f4ccc2ddcec5605d35570557c235dc8c
|
data/README.md
CHANGED
|
@@ -31,17 +31,15 @@ Some features will remain in core:
|
|
|
31
31
|
|
|
32
32
|
## Compatibility
|
|
33
33
|
|
|
34
|
-
Foreman 3.0 will be the first release where the Puppet functionality is mostly extracted.
|
|
35
|
-
Therefore, this plugin is only required for 3.0 and onwards.
|
|
36
|
-
You can install it on Foreman 2.5 to prepare for the Foreman update.
|
|
37
|
-
|
|
38
34
|
|Foreman version|Plugin version|Notes |
|
|
39
35
|
|---------------|--------------|------------------------------------------|
|
|
40
|
-
| >= 3.
|
|
41
|
-
|
|
|
36
|
+
| >= 3.5 | ~> 5.0 | Required |
|
|
37
|
+
| ~> 3.4 | ~> 4.1 | Required |
|
|
38
|
+
| ~> 3.3 | ~> 4.0 | Required |
|
|
39
|
+
| ~> 3.2 | ~> 3.0 | Required |
|
|
42
40
|
| ~> 3.1 | ~> 2.0 | Required |
|
|
43
41
|
| ~> 3.0 | ~> 1.0 | Required |
|
|
44
|
-
|
|
|
42
|
+
| ~> 2.5 | ~> 0.1 | Optional; replaces Core features |
|
|
45
43
|
| < 2.5 | - | Not supported (functionality is in Core) |
|
|
46
44
|
|
|
47
45
|
## Installation
|
data/Rakefile
CHANGED
|
@@ -14,8 +14,6 @@ load 'rails/tasks/engine.rake'
|
|
|
14
14
|
Bundler::GemHelper.install_tasks
|
|
15
15
|
|
|
16
16
|
require 'rake/testtask'
|
|
17
|
-
require 'rspec/core'
|
|
18
|
-
require 'rspec/core/rake_task'
|
|
19
17
|
|
|
20
18
|
Rake::TestTask.new(test: 'app:db:test:prepare') do |t|
|
|
21
19
|
t.libs << 'test'
|
|
@@ -25,7 +23,4 @@ Rake::TestTask.new(test: 'app:db:test:prepare') do |t|
|
|
|
25
23
|
t.verbose = false
|
|
26
24
|
end
|
|
27
25
|
|
|
28
|
-
desc 'Run all specs in spec directory (excluding plugin specs)'
|
|
29
|
-
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
|
|
30
|
-
|
|
31
26
|
task default: :test
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module ForemanPuppet
|
|
2
2
|
module Types
|
|
3
3
|
class Environment < ::Types::BaseObject
|
|
4
|
+
graphql_name 'ForemanPuppet_Environment'
|
|
4
5
|
model_class ForemanPuppet::Environment
|
|
5
6
|
description 'An Environment'
|
|
6
7
|
|
|
@@ -11,10 +12,6 @@ module ForemanPuppet
|
|
|
11
12
|
has_many :locations, ::Types::Location
|
|
12
13
|
has_many :organizations, ::Types::Organization
|
|
13
14
|
has_many :puppetclasses, ForemanPuppet::Types::Puppetclass
|
|
14
|
-
|
|
15
|
-
def self.graphql_definition
|
|
16
|
-
super.tap { |type| type.instance_variable_set(:@name, 'ForemanPuppet::Environment') }
|
|
17
|
-
end
|
|
18
15
|
end
|
|
19
16
|
end
|
|
20
17
|
end
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module ForemanPuppet
|
|
2
2
|
module Types
|
|
3
3
|
class Puppetclass < ::Types::BaseObject
|
|
4
|
+
graphql_name 'ForemanPuppet_Puppetclass'
|
|
4
5
|
model_class ForemanPuppet::Puppetclass
|
|
5
6
|
description 'A Puppetclass'
|
|
6
7
|
|
|
@@ -11,10 +12,6 @@ module ForemanPuppet
|
|
|
11
12
|
has_many :environments, ForemanPuppet::Types::Environment
|
|
12
13
|
has_many :locations, ::Types::Location
|
|
13
14
|
has_many :organizations, ::Types::Organization
|
|
14
|
-
|
|
15
|
-
def self.graphql_definition
|
|
16
|
-
super.tap { |type| type.instance_variable_set(:@name, 'ForemanPuppet::Puppetclass') }
|
|
17
|
-
end
|
|
18
15
|
end
|
|
19
16
|
end
|
|
20
17
|
end
|
|
@@ -15,8 +15,8 @@ module ForemanPuppet
|
|
|
15
15
|
before_destroy EnsureNotUsedBy.new(:hosts, :hostgroups)
|
|
16
16
|
has_many :environment_classes, dependent: :destroy, inverse_of: :puppetclass
|
|
17
17
|
has_many :environments, -> { distinct }, through: :environment_classes
|
|
18
|
-
has_many :organizations, -> { distinct.reorder(
|
|
19
|
-
has_many :locations, -> { distinct.reorder(
|
|
18
|
+
has_many :organizations, -> { distinct.reorder(:id) }, through: :environments
|
|
19
|
+
has_many :locations, -> { distinct.reorder(:id) }, through: :environments
|
|
20
20
|
|
|
21
21
|
# rubocop:disable Rails/HasAndBelongsToMany
|
|
22
22
|
has_and_belongs_to_many :operatingsystems
|
|
@@ -227,7 +227,7 @@ Foreman::Plugin.register :foreman_puppet do
|
|
|
227
227
|
end
|
|
228
228
|
extend_page 'hosts/_list' do |context|
|
|
229
229
|
context.with_profile :puppet, _('Puppet'), default: true do
|
|
230
|
-
add_pagelet :hosts_table_column_header, key: :environment, label: s_('
|
|
230
|
+
add_pagelet :hosts_table_column_header, key: :environment, label: s_('Puppet env'), sortable: true, width: '10%', class: 'hidden-xs'
|
|
231
231
|
add_pagelet :hosts_table_column_content, key: :environment, callback: ->(host) { host.environment }, class: 'hidden-xs ellipsis'
|
|
232
232
|
end
|
|
233
233
|
end
|
|
Binary file
|