foreman_puppet 2.0.4 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
- data/app/views/foreman_puppet/config_groups/index.html.erb +3 -1
- data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +1 -0
- data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +1 -0
- data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
- data/lib/foreman_puppet/register.rb +6 -2
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/foreman_puppet.edit.po +237 -111
- data/locale/cs_CZ/foreman_puppet.edit.po +213 -105
- data/locale/de/foreman_puppet.edit.po +326 -148
- data/locale/en/foreman_puppet.edit.po +80 -172
- data/locale/en_GB/foreman_puppet.edit.po +200 -100
- data/locale/es/foreman_puppet.edit.po +304 -133
- data/locale/fr/foreman_puppet.edit.po +313 -135
- data/locale/gl/foreman_puppet.edit.po +210 -102
- data/locale/it/foreman_puppet.edit.po +250 -116
- data/locale/ja/foreman_puppet.edit.po +223 -107
- data/locale/ko/foreman_puppet.edit.po +202 -101
- data/locale/messages.mo +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +243 -115
- data/locale/pl/foreman_puppet.edit.po +260 -121
- data/locale/pt_BR/foreman_puppet.edit.po +317 -139
- data/locale/ru/foreman_puppet.edit.po +258 -122
- data/locale/sv_SE/foreman_puppet.edit.po +209 -103
- data/locale/zh_CN/foreman_puppet.edit.po +209 -105
- data/locale/zh_TW/foreman_puppet.edit.po +202 -103
- metadata +56 -54
- data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ca4a5ca23e81664035c8eb00f58b7c4788fbc0937bd85b91cbd882f8c8cfdf6
|
4
|
+
data.tar.gz: 7292e17f5ad77f34d23008e95630b007ee2fe0f5295b5987eddc78a6d2fd1261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbf7c29356ac312b02c4346f806407c477238159c4cab20fcc449810486009945635ccba8d17388ba7c0bc882e9bb450423e5333f251220949cca6f3f0173472
|
7
|
+
data.tar.gz: 35166a234ca51ce8d2eba7f738c1bdd9e697765034e94bf384f1940608faffc558795773aac8ac2b3f731652124a0b78ba64e3fd970d9c4bff464360392bd32b
|
@@ -11,7 +11,7 @@ module ForemanPuppet
|
|
11
11
|
def environments_title_actions
|
12
12
|
title_actions import_proxy_select(hash_for_import_environments_environments_path.merge(engine: foreman_puppet)),
|
13
13
|
button_group(new_link(_('Create Puppet Environment'), { engine: foreman_puppet }, id: 'new_environment')),
|
14
|
-
button_group(
|
14
|
+
button_group(link_to(_('Help'), { action: 'welcome' }, { class: 'btn btn-default' }))
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -2,7 +2,9 @@
|
|
2
2
|
<% content_for(:search_bar) { } %>
|
3
3
|
<% title _('Config Groups') %>
|
4
4
|
|
5
|
-
<% title_actions
|
5
|
+
<% title_actions(
|
6
|
+
new_link(_('Create Config Group'), { engine: foreman_puppet }, id: 'new_config_group'),
|
7
|
+
link_to(_('Help'), { action: 'welcome' }, { class: 'btn btn-default' })) %>
|
6
8
|
|
7
9
|
<table class="<%= table_css_classes 'table-fixed' %>">
|
8
10
|
<thead>
|
@@ -0,0 +1 @@
|
|
1
|
+
<td class="hidden-xs ellipsis"><%= host.environment %></td>
|
@@ -0,0 +1 @@
|
|
1
|
+
<th class="hidden-xs" width="10%"><%= sort :environment, :as => _("Puppet Environment") %></th>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class DropEnvironmentFromHostAndHg < ActiveRecord::Migration[6.0]
|
2
|
+
def up
|
3
|
+
remove_column(:hostgroups, :environment_id) if column_exists?(:hostgroups, :environment_id)
|
4
|
+
remove_column(:hosts, :environment_id) if column_exists?(:hosts, :environment_id)
|
5
|
+
end
|
6
|
+
|
7
|
+
# This is just to clean up core, we do not want to add the columns again on uninstall
|
8
|
+
end
|
@@ -145,7 +145,8 @@ Foreman::Plugin.register :foreman_puppet do
|
|
145
145
|
'foreman_puppet/api/v2/puppetclasses' => [:destroy] },
|
146
146
|
resource_type: 'ForemanPuppet::Puppetclass'
|
147
147
|
permission :import_puppetclasses, { 'foreman_puppet/puppetclasses' => %i[import_environments obsolete_and_new],
|
148
|
-
'foreman_puppet/api/v2/environments' => [:import_puppetclasses]
|
148
|
+
'foreman_puppet/api/v2/environments' => [:import_puppetclasses],
|
149
|
+
'api/v2/smart_proxies' => [:import_puppetclasses] },
|
149
150
|
resource_type: 'ForemanPuppet::Puppetclass'
|
150
151
|
permission :edit_classes, { :host_editing => [:edit_classes],
|
151
152
|
'foreman_puppet/api/v2/host_classes' => %i[index create destroy] },
|
@@ -153,7 +154,6 @@ Foreman::Plugin.register :foreman_puppet do
|
|
153
154
|
end
|
154
155
|
|
155
156
|
add_all_permissions_to_default_roles
|
156
|
-
Foreman::Plugin::RbacSupport::AUTO_EXTENDED_ROLES |= ['Site manager']
|
157
157
|
add_permissions_to_default_roles(
|
158
158
|
'Site manager' => %w[view_puppetclasses import_puppetclasses view_environments import_environments
|
159
159
|
view_external_parameters create_external_parameters edit_external_parameters destroy_external_parameters]
|
@@ -225,4 +225,8 @@ Foreman::Plugin.register :foreman_puppet do
|
|
225
225
|
priority: 100
|
226
226
|
end
|
227
227
|
end
|
228
|
+
extend_page 'hosts/_list' do |cx|
|
229
|
+
cx.add_pagelet :hosts_table_column_header, resource_type: 'host', partial: 'hosts/foreman_puppet/form_list_env_field_header', priority: 100
|
230
|
+
cx.add_pagelet :hosts_table_column_content, resource_type: 'host', partial: 'hosts/foreman_puppet/form_list_env_field_content', priority: 100
|
231
|
+
end
|
228
232
|
end
|