foreman_puppet 5.0.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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/lib/tasks/foreman_puppet_tasks.rake +0 -10
- data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ca/foreman_puppet.edit.po +1145 -0
- data/locale/ca/foreman_puppet.po +44 -8
- 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 +1159 -0
- data/locale/cs_CZ/foreman_puppet.po +45 -9
- 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 +1181 -0
- data/locale/de/foreman_puppet.po +49 -13
- 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 +1138 -0
- data/locale/en/foreman_puppet.po +42 -6
- data/locale/en/foreman_puppet.po.time_stamp +0 -0
- data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +1153 -0
- data/locale/en_GB/foreman_puppet.po +44 -8
- 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 +1165 -0
- data/locale/es/foreman_puppet.po +77 -39
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/foreman_puppet.pot +81 -25
- data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/fr/foreman_puppet.edit.po +1187 -0
- data/locale/fr/foreman_puppet.po +67 -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 +1142 -0
- data/locale/gl/foreman_puppet.po +44 -8
- 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 +1156 -0
- data/locale/it/foreman_puppet.po +47 -10
- 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 +1177 -0
- data/locale/ja/foreman_puppet.po +60 -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.edit.po +1177 -0
- data/locale/ka/foreman_puppet.po +875 -0
- data/locale/ka/foreman_puppet.po.time_stamp +0 -0
- data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ko/foreman_puppet.edit.po +1155 -0
- data/locale/ko/foreman_puppet.po +45 -9
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +1147 -0
- data/locale/nl_NL/foreman_puppet.po +44 -8
- 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 +1146 -0
- data/locale/pl/foreman_puppet.po +45 -9
- 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 +1163 -0
- data/locale/pt_BR/foreman_puppet.po +78 -41
- 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 +1163 -0
- data/locale/ru/foreman_puppet.po +45 -9
- 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 +1146 -0
- data/locale/sv_SE/foreman_puppet.po +44 -8
- 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 +1177 -0
- data/locale/zh_CN/foreman_puppet.po +65 -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 +1157 -0
- data/locale/zh_TW/foreman_puppet.po +45 -9
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
- data/package.json +7 -7
- 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 +44 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bb32ba667a6cad7d45b0f986f3069761f4ac9585ac712b31753e1dfdbedb3df
|
4
|
+
data.tar.gz: d4357cbf1e9fb01d38cd481c03c31665de2111c664d2b6bb5c79b3623cede524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13149fb7c821ff36f35f072fc99114cc04d7d8cd6887bb7a8d3613d4c956f6ac3ec04900039f4f2e698f2b71e2cacf2d9e91f34a0ecc0ce36f3232f814adeb7f
|
7
|
+
data.tar.gz: fc448f84b1bce197fded691804679dead4c27fdf952bdcd586b9f15f08db90252dfb50fe13157c0aab3682c7feb310b31a0c43c3a7b4ea18e7a565f45bc3de4d
|
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
|