foreman_puppet 5.1.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_puppet/locale/ca/foreman_puppet.js +861 -0
  3. data/app/assets/javascripts/foreman_puppet/locale/cs_CZ/foreman_puppet.js +861 -0
  4. data/app/assets/javascripts/foreman_puppet/locale/de/foreman_puppet.js +861 -0
  5. data/app/assets/javascripts/foreman_puppet/locale/en/foreman_puppet.js +861 -0
  6. data/app/assets/javascripts/foreman_puppet/locale/en_GB/foreman_puppet.js +861 -0
  7. data/app/assets/javascripts/foreman_puppet/locale/es/foreman_puppet.js +861 -0
  8. data/app/assets/javascripts/foreman_puppet/locale/fr/foreman_puppet.js +863 -0
  9. data/app/assets/javascripts/foreman_puppet/locale/gl/foreman_puppet.js +861 -0
  10. data/app/assets/javascripts/foreman_puppet/locale/it/foreman_puppet.js +861 -0
  11. data/app/assets/javascripts/foreman_puppet/locale/ja/foreman_puppet.js +859 -0
  12. data/app/assets/javascripts/foreman_puppet/locale/ka/foreman_puppet.js +861 -0
  13. data/app/assets/javascripts/foreman_puppet/locale/ko/foreman_puppet.js +861 -0
  14. data/app/assets/javascripts/foreman_puppet/locale/nl_NL/foreman_puppet.js +861 -0
  15. data/app/assets/javascripts/foreman_puppet/locale/pl/foreman_puppet.js +861 -0
  16. data/app/assets/javascripts/foreman_puppet/locale/pt_BR/foreman_puppet.js +861 -0
  17. data/app/assets/javascripts/foreman_puppet/locale/ru/foreman_puppet.js +861 -0
  18. data/app/assets/javascripts/foreman_puppet/locale/sv_SE/foreman_puppet.js +861 -0
  19. data/app/assets/javascripts/foreman_puppet/locale/zh_CN/foreman_puppet.js +859 -0
  20. data/app/assets/javascripts/foreman_puppet/locale/zh_TW/foreman_puppet.js +861 -0
  21. data/app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb +5 -0
  22. data/app/views/foreman_puppet/environments/welcome.html.erb +3 -3
  23. data/app/views/smart_proxies/plugins/_puppet.html.erb +1 -2
  24. data/lib/foreman_puppet/engine.rb +0 -6
  25. data/lib/foreman_puppet/register.rb +3 -1
  26. data/lib/foreman_puppet/version.rb +1 -1
  27. data/locale/Makefile +6 -3
  28. data/locale/ca/foreman_puppet.edit.po +180 -251
  29. data/locale/ca/foreman_puppet.po +6 -0
  30. data/locale/cs_CZ/foreman_puppet.edit.po +175 -228
  31. data/locale/cs_CZ/foreman_puppet.po +6 -0
  32. data/locale/de/foreman_puppet.edit.po +220 -343
  33. data/locale/de/foreman_puppet.po +6 -0
  34. data/locale/en/foreman_puppet.edit.po +234 -86
  35. data/locale/en/foreman_puppet.po +6 -0
  36. data/locale/en_GB/foreman_puppet.edit.po +169 -214
  37. data/locale/en_GB/foreman_puppet.po +6 -0
  38. data/locale/es/foreman_puppet.edit.po +223 -337
  39. data/locale/es/foreman_puppet.po +6 -0
  40. data/locale/foreman_puppet.pot +31 -22
  41. data/locale/fr/foreman_puppet.edit.po +223 -343
  42. data/locale/fr/foreman_puppet.po +6 -0
  43. data/locale/gl/foreman_puppet.edit.po +171 -224
  44. data/locale/gl/foreman_puppet.po +6 -0
  45. data/locale/it/foreman_puppet.edit.po +188 -266
  46. data/locale/it/foreman_puppet.po +6 -0
  47. data/locale/ja/foreman_puppet.edit.po +190 -251
  48. data/locale/ja/foreman_puppet.po +6 -0
  49. data/locale/ka/foreman_puppet.edit.po +1160 -0
  50. data/locale/ka/foreman_puppet.po +6 -0
  51. data/locale/ko/foreman_puppet.edit.po +171 -217
  52. data/locale/ko/foreman_puppet.po +6 -0
  53. data/locale/nl_NL/foreman_puppet.edit.po +184 -257
  54. data/locale/nl_NL/foreman_puppet.po +6 -0
  55. data/locale/pl/foreman_puppet.edit.po +191 -275
  56. data/locale/pl/foreman_puppet.po +6 -0
  57. data/locale/pt_BR/foreman_puppet.edit.po +227 -349
  58. data/locale/pt_BR/foreman_puppet.po +6 -0
  59. data/locale/ru/foreman_puppet.edit.po +191 -272
  60. data/locale/ru/foreman_puppet.po +6 -0
  61. data/locale/sv_SE/foreman_puppet.edit.po +172 -223
  62. data/locale/sv_SE/foreman_puppet.po +6 -0
  63. data/locale/zh_CN/foreman_puppet.edit.po +192 -241
  64. data/locale/zh_CN/foreman_puppet.po +6 -0
  65. data/locale/zh_TW/foreman_puppet.edit.po +173 -217
  66. data/locale/zh_TW/foreman_puppet.po +6 -0
  67. data/webpack/src/Components/Environments/Welcome.js +1 -1
  68. data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/ENCTab.js +4 -1
  69. data/webpack/src/Extends/Host/PuppetTab/index.js +1 -0
  70. metadata +78 -66
  71. data/app/views/provisioning_templates/temp/autoyast_orcharhino_finish.erb +0 -31
  72. data/app/views/provisioning_templates/temp/preseed_orcharhino_finish.erb +0 -90
  73. data/app/views/provisioning_templates/temp/provision/autoyast_orcharhino_default.erb +0 -336
  74. data/app/views/provisioning_templates/temp/snippet/_or_al_client.erb +0 -32
  75. data/app/views/provisioning_templates/temp/snippet/_or_deb_client.erb +0 -175
  76. data/app/views/provisioning_templates/temp/snippet/_or_ol_client.erb +0 -37
  77. data/app/views/provisioning_templates/temp/snippet/_or_sles_client.erb +0 -85
  78. data/locale/messages.mo +0 -0
  79. /data/locale/{en/foreman_puppet.pox → ka/foreman_puppet.po.time_stamp} +0 -0
@@ -1,336 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <%#
3
- kind: provision
4
- name: AutoYaST orcharhino default
5
- model: ProvisioningTemplate
6
- oses:
7
- - SLES
8
- -%>
9
- <%
10
- os_major = @host.operatingsystem.major.to_i
11
- os_minor = @host.operatingsystem.minor.to_i
12
- pm_set = @host.puppet_server.present?
13
- puppet_enabled = pm_set || host_param_true?('force-puppet')
14
- salt_enabled = host_param('salt_master').present?
15
-
16
- primary_interface_identifier = @host.primary_interface.identifier.blank? ? 'eth0' : @host.primary_interface.identifier
17
- primary_interface_subnet = @host.primary_interface.subnet
18
- -%>
19
- <!DOCTYPE profile>
20
- <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
21
- <general>
22
- <mode>
23
- <confirm config:type="boolean">false</confirm>
24
- <final_reboot config:type="boolean">true</final_reboot>
25
- </mode>
26
- </general>
27
- <networking>
28
- <dns>
29
- <hostname><%= @host.name %></hostname>
30
- <% unless primary_interface_subnet.dhcp_boot_mode? -%>
31
- <dhcp_hostname config:type="boolean">false</dhcp_hostname>
32
- <% if os_major < 12 -%>
33
- <dhcp_resolv config:type="boolean">false</dhcp_resolv>
34
- <% end -%>
35
- <% if @host.domain -%>
36
- <domain><%= @host.domain -%></domain>
37
- <% end -%>
38
- <% if primary_interface_subnet.dns_primary.present? -%>
39
- <nameservers config:type="list">
40
- <nameserver><%= primary_interface_subnet.dns_primary -%></nameserver>
41
- <% if primary_interface_subnet.dns_secondary.present? -%>
42
- <nameserver><%= primary_interface_subnet.dns_secondary -%></nameserver>
43
- <% end -%>
44
- </nameservers>
45
- <% end -%>
46
- <% else -%>
47
- <resolv_conf_policy>auto</resolv_conf_policy>
48
- <% end -%>
49
- <% if @host.domain -%>
50
- <searchlist config:type="list">
51
- <search><%= @host.domain %></search>
52
- </searchlist>
53
- <% end -%>
54
- </dns>
55
- <interfaces config:type="list">
56
- <%
57
- @host.managed_interfaces.each do |interface|
58
- next if !interface.managed? || interface.subnet.nil? || interface.ip.nil?
59
- dhcp = interface.subnet.dhcp_boot_mode?
60
- -%>
61
- <% if dhcp -%>
62
- <interface>
63
- <bootproto>dhcp</bootproto>
64
- <device><%= interface.primary ? primary_interface_identifier : interface.identifier -%></device>
65
- <startmode>auto</startmode>
66
- <usercontrol>no</usercontrol>
67
- </interface>
68
- <% else -%>
69
- <interface>
70
- <bootproto>static</bootproto>
71
- <device><%= interface.primary ? primary_interface_identifier : interface.identifier -%></device>
72
- <ipaddr><%= interface.ip -%></ipaddr>
73
- <netmask><%= interface.subnet.mask -%></netmask>
74
- <startmode>onboot</startmode>
75
- <usercontrol>no</usercontrol>
76
- </interface>
77
- <% end -%>
78
- <% end -%>
79
- </interfaces>
80
- <% unless primary_interface_subnet.dhcp_boot_mode? -%>
81
- <routing>
82
- <routes config:type="list">
83
- <route>
84
- <destination>default</destination>
85
- <device><%= primary_interface_identifier -%></device>
86
- <gateway><%= primary_interface_subnet.gateway -%></gateway>
87
- <netmask><%= primary_interface_subnet.mask -%></netmask>
88
- </route>
89
- </routes>
90
- </routing>
91
- <% end -%>
92
- </networking>
93
- <% if host_param('http-proxy') -%>
94
- <proxy>
95
- <enabled config:type="boolean">true</enabled>
96
- <http_proxy>http://<%= host_param('http-proxy') %>:<%= host_param('http-proxy-port') %></http_proxy>
97
- <https_proxy>http://<%= host_param('http-proxy') %>:<%= host_param('http-proxy-port') %></https_proxy>
98
- <% if host_param('noproxy') -%>
99
- <no_proxy>localhost 127.0.0.1 <%= host_param('http-proxy') %> <%= host_param('noproxy') %></no_proxy>
100
- <% else -%>
101
- <no_proxy>localhost 127.0.0.1 <%= host_param('http-proxy') %></no_proxy>
102
- <% end -%>
103
- </proxy>
104
- <% end -%>
105
- <% if os_major >= 15 -%>
106
- <ntp-client>
107
- <ntp_policy>auto</ntp_policy>
108
- <ntp_servers config:type="list">
109
- <ntp_server>
110
- <address><%= host_param('ntp-server') || '0.opensuse.pool.ntp.org' %></address>
111
- <iburst config:type="boolean">false</iburst>
112
- <offline config:type="boolean">true</offline>
113
- </ntp_server>
114
- </ntp_servers>
115
- <ntp_sync>15</ntp_sync>
116
- </ntp-client>
117
- <% else -%>
118
- <ntp-client>
119
- <configure_dhcp config:type="boolean">false</configure_dhcp>
120
- <peers config:type="list">
121
- <peer>
122
- <address><%= host_param('ntp-server') || '0.opensuse.pool.ntp.org' %></address>
123
- <initial_sync config:type="boolean">true</initial_sync>
124
- <options></options>
125
- <type>server</type>
126
- </peer>
127
- </peers>
128
- <start_at_boot config:type="boolean">true</start_at_boot>
129
- <start_in_chroot config:type="boolean">true</start_in_chroot>
130
- </ntp-client>
131
- <% end -%>
132
- <% if ! @dynamic -%>
133
- <%= @host.diskLayout %>
134
- <% end -%>
135
- <% if os_major >= 15 -%>
136
- <services-manager>
137
- <default_target>multi-user</default_target>
138
- <services>
139
- <enable config:type="list">
140
- <service>sshd</service>
141
- </enable>
142
- </services>
143
- </services-manager>
144
- <% else -%>
145
- <runlevel>
146
- <default>3</default>
147
- <services config:type="list">
148
- <service>
149
- <service_name>sshd</service_name>
150
- <service_status>enable</service_status>
151
- </service>
152
- </services>
153
- </runlevel>
154
- <% end -%>
155
- <software>
156
- <% if os_major >= 15 -%>
157
- <products config:type="list">
158
- <product>SLES</product>
159
- </products>
160
- <patterns config:type="list">
161
- <pattern>enhanced_base</pattern>
162
- </patterns>
163
- <% else -%>
164
- <patterns config:type="list">
165
- <pattern>base</pattern>
166
- <% if os_major >= 14 -%>
167
- <pattern>enhanced_base</pattern>
168
- <pattern>sw_management</pattern>
169
- <pattern>yast2_basis</pattern>
170
- <% end -%>
171
- </patterns>
172
- <% end -%>
173
- <packages config:type="list">
174
- <package>lsb-release</package>
175
- <package>openssh</package>
176
- </packages>
177
- </software>
178
- <% if host_param('http-proxy') -%>
179
- <sysconfig config:type="list" >
180
- <sysconfig_entry>
181
- <sysconfig_key>PROXY_ENABLED</sysconfig_key>
182
- <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path>
183
- <sysconfig_value>yes</sysconfig_value>
184
- </sysconfig_entry>
185
- <sysconfig_entry>
186
- <sysconfig_key>HTTPS_PROXY</sysconfig_key>
187
- <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path>
188
- <sysconfig_value>http://<%= host_param('http-proxy') %>:<%= host_param('http-proxy-port') %></sysconfig_value>
189
- </sysconfig_entry>
190
- <sysconfig_entry>
191
- <sysconfig_key>HTTP_PROXY</sysconfig_key>
192
- <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path>
193
- <sysconfig_value>http://<%= host_param('http-proxy') %>:<%= host_param('http-proxy-port') %></sysconfig_value>
194
- </sysconfig_entry>
195
- <sysconfig_entry>
196
- <sysconfig_key>GOPHER_PROXY</sysconfig_key>
197
- <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path>
198
- <sysconfig_value>http://<%= host_param('http-proxy') %>:3128</sysconfig_value>
199
- </sysconfig_entry>
200
- <sysconfig_entry>
201
- <sysconfig_key>NO_PROXY</sysconfig_key>
202
- <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path>
203
- <% if host_param('noproxy') -%>
204
- <sysconfig_value>localhost, 127.0.0.1, <%= host_param('http-proxy') %>, <%= host_param('noproxy').split(' ').join(', ') %></sysconfig_value>
205
- <% else -%>
206
- <sysconfig_value>localhost, 127.0.0.1 </sysconfig_value>
207
- <% end -%>
208
- </sysconfig_entry>
209
- </sysconfig>
210
- <% end -%>
211
- <users config:type="list">
212
- <user>
213
- <username>root</username>
214
- <encrypted config:type="boolean">true</encrypted>
215
- <fullname>root</fullname>
216
- <gid>0</gid>
217
- <home>/root</home>
218
- <shell>/bin/bash</shell>
219
- <uid>0</uid>
220
- <user_password><%= root_pass %></user_password>
221
- </user>
222
- </users>
223
- <scripts>
224
- <% if @dynamic -%>
225
- <pre-scripts config:type="list">
226
- <script>
227
- <debug config:type="boolean">true</debug>
228
- <filename>pre_disklayout</filename>
229
- <interpreter>shell</interpreter>
230
- <source><![CDATA[
231
- <%= @host.diskLayout %>
232
- ]]>
233
- </source>
234
- </script>
235
- </pre-scripts>
236
- <% end -%>
237
- <chroot-scripts config:type="list">
238
- <script>
239
- <filename>cp-resolv.sh</filename>
240
- <chrooted config:type="boolean">false</chrooted>
241
- <interpreter>shell</interpreter>
242
- <notification>Copying resolv.conf into chroot ...</notification>
243
- <source><![CDATA[
244
- cp /etc/resolv.conf /mnt/etc
245
- ]]>
246
- </source>
247
- </script>
248
- <script>
249
- <filename>foreman.sh</filename>
250
- <chrooted config:type="boolean">true</chrooted>
251
- <interpreter>shell</interpreter>
252
- <notification>Setting up Foreman ...</notification>
253
- <source><![CDATA[
254
- /bin/hostname <%= @host.name %>
255
-
256
- <%= snippet 'eject_cdrom' -%>
257
- <%= snippet 'built' %>
258
-
259
- rm /etc/resolv.conf
260
- ]]>
261
- </source>
262
- </script>
263
- </chroot-scripts>
264
-
265
- <init-scripts config:type="list">
266
- <script>
267
- <filename>post-foreman.sh</filename>
268
- <source><![CDATA[
269
-
270
- <% if host_param('http-proxy') -%>
271
- export http_proxy="http://<%= host_param('http-proxy') %>:<%= host_param('http-proxy-port') %>"
272
- <% if host_param('noproxy') -%>
273
- export no_proxy="<%= host_param('http-proxy') %> <%= host_param('noproxy') %>"
274
- <% end -%>
275
- <% end -%>
276
-
277
- <%= snippet 'or_sles_client' %>
278
-
279
- <%= snippet('remote_execution_ssh_keys') %>
280
-
281
- <%= snippet "blacklist_kernel_modules" %>
282
-
283
- <% if puppet_enabled -%>
284
- <%= snippet 'puppet_setup' %>
285
- <% end -%>
286
-
287
- <% if salt_enabled %>
288
- <%= snippet 'saltstack_setup' %>
289
- <% end -%>
290
- ]]>
291
- </source>
292
- </script>
293
- </init-scripts>
294
- </scripts>
295
- <% if os_major >= 15 -%>
296
- <firewall>
297
- <enable_firewall config:type="boolean">true</enable_firewall>
298
- <log_denied_packets>off</log_denied_packets>
299
- <default_zone>public</default_zone>
300
- <zones config:type="list">
301
- <zone>
302
- <name>public</name>
303
- <services config:type="list">
304
- <service>ssh</service>
305
- <service>dhcpv6-client</service>
306
- </services>
307
- </zone>
308
- </zones>
309
- </firewall>
310
- <% end -%>
311
- <keyboard>
312
- <keymap>english-us</keymap>
313
- </keyboard>
314
- <timezone>
315
- <hwclock>UTC</hwclock>
316
- <timezone><%= host_param('time-zone') || 'Etc/UTC' %></timezone>
317
- </timezone>
318
- <add-on>
319
- <add_on_products config:type="list">
320
- <% if os_major >= 15 -%>
321
- <listentry>
322
- <media_url><%= host_param('sle-module-basesystem-url') %></media_url>
323
- <product_dir>/Module-Basesystem</product_dir>
324
- <product>sle-module-basesystem</product>
325
- </listentry>
326
- <% if os_minor >= 1 and os_minor < 4 -%>
327
- <listentry>
328
- <media_url><%= host_param('sle-module-basesystem-url') %></media_url>
329
- <product_dir>/Module-Python2</product_dir>
330
- <product>sle-module-python2</product>
331
- </listentry>
332
- <% end -%>
333
- <% end -%>
334
- </add_on_products>
335
- </add-on>
336
- </profile>
@@ -1,32 +0,0 @@
1
- <%#
2
- kind: snippet
3
- name: or_al_client
4
- model: ProvisioningTemplate
5
- snippet: true
6
- description: This snippet prepares the registration to orcharhino on a Amazon Linux host
7
- -%>
8
- <%-
9
- os_major = @host.operatingsystem.major.to_i
10
-
11
- if !host_param('or_client_repo_url').nil?
12
- or_client_repo_url = host_param('or_client_repo_url')
13
- elsif !host_param('or_amazonlinux_client_repo_prefix').nil?
14
- or_client_repo_url = host_param('or_amazonlinux_client_repo_prefix') + os_major.to_s
15
- else
16
- or_client_repo_url = nil
17
- end
18
- %>
19
- <%- if !or_client_repo_url.nil? %>
20
- # Install dependencies which are required later on while installing the subscription-manager
21
- yum install -y python-inotify python-setuptools
22
-
23
- cat << EOF > /etc/yum.repos.d/or_al_client.repo
24
- [orcharhino_AmazonLinux_Client_<%= os_major %>]
25
- name=orcharhino Amazon Linux Client
26
- baseurl="<%= or_client_repo_url %>"
27
- gpgcheck=0
28
- enabled=1
29
- priority=5
30
- EOF
31
-
32
- <%- end %>
@@ -1,175 +0,0 @@
1
- <%#
2
- kind: snippet
3
- name: or_deb_client
4
- model: ProvisioningTemplate
5
- snippet: true
6
- description: template for debian provisioning
7
- %>
8
- <%
9
- content_facet = host_content_facet(@host)
10
- apt_run = 'apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"'
11
- apt_install = apt_run + ' -y install'
12
- apt_upgrade = apt_run + ' -o APT::Get::Upgrade-Allow-New="true" -y upgrade'
13
- apt_update = 'apt-get -y update'
14
-
15
- if !host_param("or_client_repo_url").nil?
16
- or_client_repo_url = host_param("or_client_repo_url")
17
- elsif !host_param("or_#{@host.operatingsystem.name.downcase}_client_repo_prefix").nil?
18
- or_client_repo_url = host_param("or_#{@host.operatingsystem.name.downcase}_client_repo_prefix") + @host.operatingsystem.major.gsub('.', '_')
19
- else
20
- or_client_repo_url = nil
21
- end
22
- if content_facet && content_facet.content_source_name
23
- host_content_fqdn = content_facet.content_source_name
24
- host_content_url = "https://"+content_facet.content_source_name
25
- else
26
- host_content_fqdn = foreman_server_fqdn
27
- host_content_url = foreman_server_url
28
- end
29
- if !host_param('http-proxy').nil?
30
- http_proxy = host_param('http-proxy')
31
- if !host_param('http-proxy-port').nil?
32
- http_proxy_port = host_param('http-proxy-port')
33
- else
34
- http_proxy_port = "3129"
35
- end
36
- end
37
- if !host_param('http-proxy-user').nil? && !host_param('http-proxy-password').nil?
38
- http_proxy_user = host_param('http-proxy-user')
39
- http_proxy_password = host_param('http-proxy-password')
40
- proxy_uri = http_proxy ? "http://#{http_proxy_user}:#{http_proxy_password}@#{http_proxy}:#{http_proxy_port}" : nil
41
- else
42
- proxy_uri = http_proxy ? "http://#{http_proxy}:#{http_proxy_port}" : nil
43
- end
44
-
45
- use_trusted_gpg_d =
46
- if @host.operatingsystem.name == 'Debian' && @host.operatingsystem.major.to_i >= 11
47
- true
48
- elsif @host.operatingsystem.name == 'Ubuntu' && @host.operatingsystem.major.split('.')[0].to_i >= 22
49
- true
50
- else
51
- false
52
- end
53
- %>
54
-
55
- <%- if @host.operatingsystem.family == 'Debian' -%>
56
- echo "Installing or_deb_client repository"
57
-
58
- <%- if or_client_repo_url.nil? -%>
59
- echo "================================= Warning ============================================="
60
- echo "Warning: To provision Debian clients, you need to prepare an 'or_deb_client'-repository"
61
- echo " and write it's location in the global parameter 'or_<%= @host.operatingsystem.name.downcase %>_client_repo_prefix'."
62
- echo "================================= Warning ============================================="
63
- <%- end -%>
64
-
65
- <%- if !content_facet || !content_facet.content_source_name -%>
66
- echo "================================= Warning ============================================="
67
- echo " No content source found. Setting default to <%= foreman_server_fqdn %>"
68
- echo "================================= Warning ============================================="
69
- <%- end -%>
70
-
71
-
72
- <% if proxy_uri -%>
73
- # Add http proxy to apt
74
- echo 'Acquire::http::Proxy "<%= proxy_uri %>";' >> /etc/apt/apt.conf.d/proxy.conf
75
- echo 'Acquire::http::Proxy::<%= @preseed_server.split(":")[0] %> "DIRECT";' >> /etc/apt/apt.conf.d/proxy.conf
76
-
77
- # Add http proxy to wget
78
- echo 'use_proxy=yes' >> /etc/wgetrc
79
- echo 'http_proxy=<%= proxy_uri %>' >> /etc/wgetrc
80
- echo 'https_proxy=<%= proxy_uri %>' >> /etc/wgetrc
81
- <% end -%>
82
-
83
- <% if @host.operatingsystem.name == 'Ubuntu' -%>
84
- # Disable Phased-Updates for Ubuntu
85
- cat << EOF >/etc/apt/apt.conf.d/98phased-updates
86
- APT::Get::Always-Include-Phased-Updates "true";
87
- EOF
88
- <% end -%>
89
-
90
- echo "Ensure gnupg is installed, which is needed for interacting with 'apt-key'"
91
- <%= apt_update %>
92
- <%= apt_install %> gnupg
93
-
94
- echo "Install orcharhino repositories"
95
- mkdir -p /etc/apt/sources.list.d
96
-
97
- <% if use_trusted_gpg_d %>
98
- mkdir -p /etc/apt/trusted.gpg.d
99
- wget "http://<%= host_content_fqdn %>/pub/pulp_deb_signing.key" -O - | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/orcharhino_<%= host_content_fqdn %>.gpg --import
100
- chmod 644 /etc/apt/trusted.gpg.d/orcharhino_<%= host_content_fqdn %>.gpg
101
- <% # looks like gpg creates this file automatically and there is no option to prevent gpg to create this backup file -%>
102
- rm -f /etc/apt/trusted.gpg.d/orcharhino_<%= host_content_fqdn %>.gpg~
103
- <% else %>
104
- wget "http://<%= host_content_fqdn %>/pub/pulp_deb_signing.key" -O - | apt-key add -
105
- <% end %>
106
-
107
- <%- if host_param('kt_activation_keys') -%>
108
-
109
- cat > /etc/apt/sources.list.d/orcharhino.list <<'EOF'
110
- # This File is automatically generated.
111
- # !!! Do not edit !!!
112
-
113
- deb <%= or_client_repo_url %> default all
114
- EOF
115
-
116
- <%= apt_update %>
117
- <%= apt_install %> apt-transport-katello katello-upload-profile
118
-
119
- echo "Remove all repositories from /etc/apt/sources.list{,.d/*}"
120
- cat > /etc/apt/sources.list <<'EOF'
121
- # This system is managed by orcharhino
122
- EOF
123
-
124
- find /etc/apt/sources.list.d -type f -print0 | xargs -r0 rm
125
-
126
- echo "Registering the System"
127
- wget --no-check-certificate -O - <%= host_content_url %>/pub/katello-rhsm-consumer | /bin/bash -x 2> /root/katello-rhsm-consumer.log
128
-
129
- <% if http_proxy %>
130
- subscription-manager config --server.proxy_hostname='<%= http_proxy %>'
131
- <% if http_proxy_user %>
132
- subscription-manager config --server.proxy_user='<%= http_proxy_user %>'
133
- <% end %>
134
- <% if http_proxy_password %>
135
- subscription-manager config --server.proxy_password='<%= http_proxy_password %>'
136
- <% end %>
137
- subscription-manager config --server.proxy_port='<%= http_proxy_port %>'
138
- <% end %>
139
-
140
- subscription-manager register --org="<%= @host.rhsm_organization_label %>" --name="<%= @host.name %>" --activationkey="<%= host_param('kt_activation_keys') %>"
141
-
142
- # Update the package lists
143
- <%= apt_update %>
144
-
145
- # Install katello host tools and tracer
146
- if dpkg -l python3-subscription-manager >/dev/null 2>&1; then
147
- <%= apt_install %> python3-katello-host-tools python3-katello-host-tools-tracer
148
- else
149
- <%= apt_install %> python-katello-host-tools python-katello-host-tools-tracer
150
- fi
151
-
152
- <% unless host_param_false?('package_upgrade') -%>
153
- # update all the base packages from the updates repository
154
- <%= apt_upgrade %>
155
- <% end -%>
156
- <%- else -%>
157
-
158
- cat > /etc/apt/sources.list.d/orcharhino.list <<'EOF'
159
- # This File is automatically generated.
160
- # !!! Do not edit !!!
161
- <%-
162
- i=1
163
- while host_param('or_deb_repo_%i' % (i))
164
- -%>
165
- deb http://<%= host_content_fqdn %>/<%= host_param('or_deb_repo_%i' % (i)) %>
166
- <%-
167
- i = i + 1
168
- end
169
- -%>
170
- EOF
171
-
172
- <%- end -%>
173
- <%- else -%>
174
- echo "Warning! This should only be used on Debian OSes."
175
- <%- end -%>
@@ -1,37 +0,0 @@
1
- <%#
2
- kind: snippet
3
- name: or_ol_client
4
- model: ProvisioningTemplate
5
- snippet: true
6
- description: This snippet prepares the registration to orcharhino on a OracleLinux host
7
- -%>
8
- <%-
9
- os_major = @host.operatingsystem.major.to_i
10
-
11
- if !host_param('or_client_repo_url').nil?
12
- or_client_repo_url = host_param('or_client_repo_url')
13
- elsif !host_param('or_oraclelinux_client_repo_prefix').nil?
14
- or_client_repo_url = host_param('or_oraclelinux_client_repo_prefix') + os_major.to_s
15
- else
16
- or_client_repo_url = nil
17
- end
18
- %>
19
- <%- if !or_client_repo_url.nil? %>
20
- # Install dependencies which are required later on while installing the subscription-manager
21
- yum install -y python-inotify python-setuptools
22
-
23
- cat << EOF > /etc/yum.repos.d/or_ol_client.repo
24
- [orcharhino_OracleLinux_Client_<%= os_major %>]
25
- name=orcharhino Oracle Linux Client
26
- baseurl="<%= or_client_repo_url %>"
27
- gpgcheck=0
28
- enabled=1
29
- priority=5
30
- EOF
31
-
32
- <%- if os_major == 7 %>
33
- # Remove oracle's rhn-client-tools which blocks the installation of our subscription-manager
34
- yum remove -y rhn-client-tools
35
- <%- end %>
36
-
37
- <%- end %>
@@ -1,85 +0,0 @@
1
- <%#
2
- kind: snippet
3
- name: or_sles_client
4
- model: ProvisioningTemplate
5
- snippet: true
6
- description: this snippet will start a script to register SUSE machines with orcharhino
7
- %>
8
- <%
9
- os_major = @host.operatingsystem.major.to_i
10
- os_minor = @host.operatingsystem.minor.to_i
11
- pm_set = @host.puppet_server.present?
12
- aio_enabled = host_param_true?('enable-puppetlabs-puppet7-repo') || host_param_true?('enable-puppetlabs-puppet5-repo') || host_param_true?('enable-puppetlabs-puppet6-repo') || host_param_true?('enable-puppetlabs-pc1-repo') || host_param_true?('enable-puppet5') || host_param_true?('enable-puppet6') || host_param_true?('enable-puppet7')
13
- puppet_enabled = pm_set || host_param_true?('force-puppet')
14
- use_sles_client_v2 = host_param_true?('use-sles-client-v2')
15
- salt_enabled = host_param('salt_master').present?
16
- sles_minor_string = (os_minor == 0) ? '' : "SP#{os_minor}"
17
-
18
- if use_sles_client_v2
19
- katello_client_tool = "katello-host-tools"
20
- if os_major >= 15
21
- katello_client_tool += " katello-host-tools-tracer"
22
- end
23
- else
24
- katello_client_tool = "katello-agent"
25
- end
26
-
27
- additional_pkgs=""
28
- if os_major < 12
29
- additional_pkgs="libnl3"
30
- end
31
- %>
32
-
33
- <%- if host_param('kt_activation_keys') -%>
34
- <%- if @host.operatingsystem.family == 'Suse' -%>
35
- echo "Installing or_sles_client repository"
36
- <%- if host_param('or_sles_client_repo_prefix').nil? and host_param('or_client_repo_url').nil? -%>
37
- echo "================================ Warning ============================================="
38
- echo "Warning: To provision SLES clients, you need to prepare an 'or_sles_client'-repository"
39
- echo " and write it's location in the operatingsystem parameter 'or_client_repo_url'."
40
- echo "================================ Warning ============================================="
41
- <%- end -%>
42
- <%- if host_param('or_client_repo_url').nil? -%>
43
- zypper addrepo -G --check "<%= host_param('or_sles_client_repo_prefix') %><%= os_major %><%= sles_minor_string %>" or_sles_client
44
- <%- else -%>
45
- zypper addrepo -G --check "<%= host_param('or_client_repo_url') %>" or_sles_client
46
- <%- end -%>
47
- zypper -n update
48
- zypper --non-interactive --no-gpg-checks --quiet install --auto-agree-with-licenses subscription-manager <%= additional_pkgs %>
49
- <%- unless use_sles_client_v2 -%>
50
- zypper --non-interactive --no-gpg-checks --quiet install --auto-agree-with-licenses or-sles-client
51
- <%- end -%>
52
-
53
- <%- if os_major < 12 -%>
54
- curl -s <%= subscription_manager_configuration_url(@host, false) %> | bash
55
- <%- else -%>
56
- rpm -ivh <%= subscription_manager_configuration_url(@host) %>
57
- <%- end -%>
58
- echo "Registering the System"
59
- subscription-manager register --org="<%= @host.rhsm_organization_label %>" --name="<%= @host.name %>" --activationkey="<%= host_param('kt_activation_keys') %>"
60
- <% unless host_param_false?('package_upgrade') -%>
61
- # update all the base packages from the updates repository
62
- zypper -n update
63
- <% end -%>
64
- echo "Installing katello client"
65
- zypper --non-interactive --no-gpg-checks --quiet install --auto-agree-with-licenses <%= katello_client_tool %>
66
-
67
- <%- unless use_sles_client_v2 -%>
68
- chkconfig goferd on
69
- <%- end -%>
70
- subscription-manager refresh
71
-
72
- <% if puppet_enabled -%>
73
- <% if aio_enabled -%>
74
- /usr/bin/zypper -n install puppet-agent
75
- <% else -%>
76
- /usr/bin/zypper -n install rubygem-puppet
77
- <% end -%>
78
- <% end -%>
79
- <% if salt_enabled -%>
80
- /usr/bin/zypper -n install salt-minion
81
- <% end -%>
82
- <%- else -%>
83
- echo "Warning! This should only be used on Suse OSes."
84
- <%- end -%>
85
- <%- end -%>
data/locale/messages.mo DELETED
Binary file