foreman_google 2.0.1 → 3.0.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/app/lib/foreman_google/google_compute_adapter.rb +3 -3
- data/app/models/foreman_google/gce.rb +0 -2
- data/db/migrate/20220331113745_foreman_gce_to_foreman_google_gce.rb +2 -2
- data/lib/foreman_google/engine.rb +1 -1
- data/lib/foreman_google/version.rb +1 -1
- data/test/test_google_helper.rb +1 -1
- metadata +11 -10
- data/locale/en/foreman_google.edit.po +0 -116
- data/locale/en/foreman_google.po.time_stamp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 275fd6ec51918dfac05b481a558b8399db13bca820b47ae87b5188050b168161
|
4
|
+
data.tar.gz: bc6ca9f5b2461617645a4f8106e6188b001fb82447786d40bc11f39dae678a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea3c0b355f8d820891b6d284e82b64996f4e5648801454207e9c9631cf68ca54f2fce64677cfecc5c9e29ee0869b5899d100069b14df521efefd62d16ae8460
|
7
|
+
data.tar.gz: 4b54b348e3556196d50e3fac3b3851358f3ee6f8c88709d2efc0bf8c647e93bdc8485a7002da9df2bf584dbfbd1a230f157650a884cbf71280b6fa5ef2142774
|
@@ -91,9 +91,9 @@ module ForemanGoogle
|
|
91
91
|
instance = instance(zone, instance_identity)
|
92
92
|
instance.disks.each do |disk|
|
93
93
|
manage_instance :set_disk_auto_delete, zone: zone,
|
94
|
-
|
95
|
-
|
96
|
-
|
94
|
+
device_name: disk.device_name,
|
95
|
+
instance: instance_identity,
|
96
|
+
auto_delete: true
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# rubocop:disable Metrics/MethodLength
|
2
|
-
class
|
2
|
+
class ForemanGCEToForemanGoogleGCE < ActiveRecord::Migration[6.0]
|
3
3
|
def up
|
4
4
|
User.without_auditing do
|
5
5
|
original_type = 'Foreman::Model::GCE'
|
@@ -10,7 +10,7 @@ class ForemanGceToForemanGoogleGce < ActiveRecord::Migration[6.0]
|
|
10
10
|
# mechanism failed to locate the subclass: 'Foreman::Model::GCE'
|
11
11
|
ComputeResource.unscoped.where(type: original_type).update_all(type: new_type)
|
12
12
|
|
13
|
-
ComputeResource.unscoped.where(type: new_type).
|
13
|
+
ComputeResource.unscoped.where(type: new_type).find_each do |cr|
|
14
14
|
unless cr.attrs[:key_path]
|
15
15
|
say("Compute resource [#{cr.name}] is missing path to JSON key file, can't load the data. Please update the resource manually.")
|
16
16
|
next
|
@@ -12,7 +12,7 @@ module ForemanGoogle
|
|
12
12
|
|
13
13
|
initializer 'foreman_google.register_plugin', before: :finisher_hook do |_app|
|
14
14
|
Foreman::Plugin.register :foreman_google do
|
15
|
-
requires_foreman '>= 3.
|
15
|
+
requires_foreman '>= 3.13.0'
|
16
16
|
register_global_js_file 'global'
|
17
17
|
register_gettext
|
18
18
|
|
data/test/test_google_helper.rb
CHANGED
@@ -16,7 +16,7 @@ class GoogleTestCase < ActiveSupport::TestCase
|
|
16
16
|
let(:google_access_token) { 'ya29.c.stubbed_token' }
|
17
17
|
let(:gce_cr) { FactoryBot.create(:compute_resource, :google_gce) }
|
18
18
|
let(:google_project_id) { gce_cr.google_project_id }
|
19
|
-
let(:gauth_json) { (ENV['VCR'] == '1' ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
|
19
|
+
let(:gauth_json) { ((ENV['VCR'] == '1') ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
|
20
20
|
|
21
21
|
setup do
|
22
22
|
::Signet::OAuth2::Client.any_instance.stubs(fetch_access_token!: google_access_token) unless ENV['VCR'] == '1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Foreman Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-compute_v1
|
@@ -111,9 +111,7 @@ files:
|
|
111
111
|
- locale/el/LC_MESSAGES/foreman_google.mo
|
112
112
|
- locale/el/foreman_google.po
|
113
113
|
- locale/en/LC_MESSAGES/foreman_google.mo
|
114
|
-
- locale/en/foreman_google.edit.po
|
115
114
|
- locale/en/foreman_google.po
|
116
|
-
- locale/en/foreman_google.po.time_stamp
|
117
115
|
- locale/en_GB/LC_MESSAGES/foreman_google.mo
|
118
116
|
- locale/en_GB/foreman_google.po
|
119
117
|
- locale/es/LC_MESSAGES/foreman_google.mo
|
@@ -189,18 +187,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
187
|
requirements:
|
190
188
|
- - ">="
|
191
189
|
- !ruby/object:Gem::Version
|
192
|
-
version: '2.
|
190
|
+
version: '2.7'
|
191
|
+
- - "<"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '4'
|
193
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
195
|
requirements:
|
195
196
|
- - ">="
|
196
197
|
- !ruby/object:Gem::Version
|
197
198
|
version: '0'
|
198
199
|
requirements: []
|
199
|
-
rubygems_version: 3.
|
200
|
+
rubygems_version: 3.2.33
|
200
201
|
signing_key:
|
201
202
|
specification_version: 4
|
202
203
|
summary: Google Compute Engine plugin for the Foreman
|
203
204
|
test_files:
|
205
|
+
- test/factories/gce.rb
|
204
206
|
- test/fixtures/disks_delete.json
|
205
207
|
- test/fixtures/disks_get.json
|
206
208
|
- test/fixtures/disks_insert.json
|
@@ -215,13 +217,12 @@ test_files:
|
|
215
217
|
- test/fixtures/instance_start.json
|
216
218
|
- test/fixtures/instance_stop.json
|
217
219
|
- test/fixtures/machine_types.json
|
220
|
+
- test/fixtures/networks.json
|
218
221
|
- test/fixtures/operation_error.json
|
219
222
|
- test/fixtures/operation_get.json
|
220
223
|
- test/fixtures/zones.json
|
221
|
-
- test/fixtures/networks.json
|
222
|
-
- test/factories/gce.rb
|
223
|
-
- test/unit/foreman_google/google_compute_adapter_test.rb
|
224
|
-
- test/unit/google_extensions/attached_disk_test.rb
|
225
224
|
- test/models/foreman_google/gce_test.rb
|
226
225
|
- test/models/foreman_google/google_compute_test.rb
|
227
226
|
- test/test_google_helper.rb
|
227
|
+
- test/unit/foreman_google/google_compute_adapter_test.rb
|
228
|
+
- test/unit/google_extensions/attached_disk_test.rb
|
@@ -1,116 +0,0 @@
|
|
1
|
-
# foreman_google
|
2
|
-
#
|
3
|
-
# This file is distributed under the same license as foreman_google.
|
4
|
-
#
|
5
|
-
msgid ""
|
6
|
-
msgstr ""
|
7
|
-
"Project-Id-Version: version 0.0.1\n"
|
8
|
-
"Report-Msgid-Bugs-To: \n"
|
9
|
-
"PO-Revision-Date: 2014-08-20 08:54+0100\n"
|
10
|
-
"Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
|
11
|
-
"Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
|
12
|
-
"Language: \n"
|
13
|
-
"MIME-Version: 1.0\n"
|
14
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15
|
-
"Content-Transfer-Encoding: 8bit\n"
|
16
|
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17
|
-
|
18
|
-
#: ../app/models/foreman_google/gce.rb:126
|
19
|
-
msgid "console is not available at this time because the instance is powered off"
|
20
|
-
msgstr ""
|
21
|
-
|
22
|
-
#: ../app/models/foreman_google/gce.rb:170
|
23
|
-
msgid "Missing an image for operating system!"
|
24
|
-
msgstr ""
|
25
|
-
|
26
|
-
#: ../app/views/compute_resources/form/_gce.html.erb:3
|
27
|
-
msgid "JSON key"
|
28
|
-
msgstr ""
|
29
|
-
|
30
|
-
#: ../app/views/compute_resources/form/_gce.html.erb:9 ../app/views/compute_resources_vms/show/_gce.html.erb:11
|
31
|
-
msgid "Zone"
|
32
|
-
msgstr ""
|
33
|
-
|
34
|
-
#: ../app/views/compute_resources/form/_gce.html.erb:10
|
35
|
-
msgid "Load Zones"
|
36
|
-
msgstr ""
|
37
|
-
|
38
|
-
#: ../app/views/compute_resources_vms/form/gce/_base.html.erb:3
|
39
|
-
msgid "Machine type"
|
40
|
-
msgstr ""
|
41
|
-
|
42
|
-
#: ../app/views/compute_resources_vms/form/gce/_base.html.erb:12
|
43
|
-
msgid "Please select an image"
|
44
|
-
msgstr ""
|
45
|
-
|
46
|
-
#: ../app/views/compute_resources_vms/form/gce/_base.html.erb:13 ../app/views/compute_resources_vms/show/_gce.html.erb:18
|
47
|
-
msgid "Image"
|
48
|
-
msgstr ""
|
49
|
-
|
50
|
-
#: ../app/views/compute_resources_vms/form/gce/_base.html.erb:17
|
51
|
-
msgid "Network"
|
52
|
-
msgstr ""
|
53
|
-
|
54
|
-
#: ../app/views/compute_resources_vms/form/gce/_base.html.erb:18
|
55
|
-
msgid "Associate Ephemeral External IP"
|
56
|
-
msgstr ""
|
57
|
-
|
58
|
-
#: ../app/views/compute_resources_vms/form/gce/_volume.html.erb:5
|
59
|
-
msgid "Size (GB)"
|
60
|
-
msgstr ""
|
61
|
-
|
62
|
-
#: ../app/views/compute_resources_vms/index/_gce.html.erb:3
|
63
|
-
msgid "Name"
|
64
|
-
msgstr ""
|
65
|
-
|
66
|
-
#: ../app/views/compute_resources_vms/index/_gce.html.erb:4
|
67
|
-
msgid "Type"
|
68
|
-
msgstr ""
|
69
|
-
|
70
|
-
#: ../app/views/compute_resources_vms/index/_gce.html.erb:5
|
71
|
-
msgid "State"
|
72
|
-
msgstr ""
|
73
|
-
|
74
|
-
#: ../app/views/compute_resources_vms/index/_gce.html.erb:6
|
75
|
-
msgid "Actions"
|
76
|
-
msgstr ""
|
77
|
-
|
78
|
-
#: ../app/views/compute_resources_vms/show/_gce.html.erb:6
|
79
|
-
msgid "Properties"
|
80
|
-
msgstr ""
|
81
|
-
|
82
|
-
#: ../app/views/compute_resources_vms/show/_gce.html.erb:10
|
83
|
-
msgid "Machine Type"
|
84
|
-
msgstr ""
|
85
|
-
|
86
|
-
#: ../app/views/images/form/_gce.html.erb:1
|
87
|
-
msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, etc. Note: Google engine doesn't support SSH for the root user."
|
88
|
-
msgstr ""
|
89
|
-
|
90
|
-
#: ../app/views/images/form/_gce.html.erb:3
|
91
|
-
msgid "Does this image support user data input (e.g. via cloud-init)?"
|
92
|
-
msgstr ""
|
93
|
-
|
94
|
-
#: action_names.rb:2
|
95
|
-
msgid "Preupgrade job"
|
96
|
-
msgstr ""
|
97
|
-
|
98
|
-
#: action_names.rb:3
|
99
|
-
msgid "Action with sub plans"
|
100
|
-
msgstr ""
|
101
|
-
|
102
|
-
#: action_names.rb:4
|
103
|
-
msgid "Import facts"
|
104
|
-
msgstr ""
|
105
|
-
|
106
|
-
#: action_names.rb:5
|
107
|
-
msgid "Import Puppet classes"
|
108
|
-
msgstr ""
|
109
|
-
|
110
|
-
#: action_names.rb:6
|
111
|
-
msgid "Remote action:"
|
112
|
-
msgstr ""
|
113
|
-
|
114
|
-
#: gemspec.rb:2
|
115
|
-
msgid "Google Compute Engine plugin for the Foreman."
|
116
|
-
msgstr ""
|
File without changes
|