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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  3. data/app/views/foreman_puppet/config_groups/index.html.erb +3 -1
  4. data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +1 -0
  5. data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +1 -0
  6. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
  7. data/lib/foreman_puppet/register.rb +6 -2
  8. data/lib/foreman_puppet/version.rb +1 -1
  9. data/locale/ca/foreman_puppet.edit.po +237 -111
  10. data/locale/cs_CZ/foreman_puppet.edit.po +213 -105
  11. data/locale/de/foreman_puppet.edit.po +326 -148
  12. data/locale/en/foreman_puppet.edit.po +80 -172
  13. data/locale/en_GB/foreman_puppet.edit.po +200 -100
  14. data/locale/es/foreman_puppet.edit.po +304 -133
  15. data/locale/fr/foreman_puppet.edit.po +313 -135
  16. data/locale/gl/foreman_puppet.edit.po +210 -102
  17. data/locale/it/foreman_puppet.edit.po +250 -116
  18. data/locale/ja/foreman_puppet.edit.po +223 -107
  19. data/locale/ko/foreman_puppet.edit.po +202 -101
  20. data/locale/messages.mo +0 -0
  21. data/locale/nl_NL/foreman_puppet.edit.po +243 -115
  22. data/locale/pl/foreman_puppet.edit.po +260 -121
  23. data/locale/pt_BR/foreman_puppet.edit.po +317 -139
  24. data/locale/ru/foreman_puppet.edit.po +258 -122
  25. data/locale/sv_SE/foreman_puppet.edit.po +209 -103
  26. data/locale/zh_CN/foreman_puppet.edit.po +209 -105
  27. data/locale/zh_TW/foreman_puppet.edit.po +202 -103
  28. metadata +56 -54
  29. 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: 7b1f794eadfcdfbc3e2b516b5e54ded28e14b5dbf5472864317e7eabf4a75976
4
- data.tar.gz: 65e754ff457d4e3ddc39147385429077230e633d7d33ca6262d2dff24c1803f6
3
+ metadata.gz: 3ca4a5ca23e81664035c8eb00f58b7c4788fbc0937bd85b91cbd882f8c8cfdf6
4
+ data.tar.gz: 7292e17f5ad77f34d23008e95630b007ee2fe0f5295b5987eddc78a6d2fd1261
5
5
  SHA512:
6
- metadata.gz: 829a43c406bbdf51b3c2b3508189f283f0dddcb44c4dd9fa578afdffc9369f8f3e06836b700001efb267c1020e917c2b3f84e88bdc4f1edc8feb509f0a896154
7
- data.tar.gz: c36b9a9f727417795cb169e371ad2ba7df5274ad58333eebfd38327c54f7dba20fe2e75730f68b29d749b48f6f5b4a8fff2c37e75f952d079463feceb3b19fb0
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(help_button)
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 new_link(_('Create Config Group'), { engine: foreman_puppet }, id: 'new_config_group'), help_button %>
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
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '2.0.4'.freeze
2
+ VERSION = '2.0.7'.freeze
3
3
  end