foreman_google 3.0.8 → 3.1.1

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_google/locale/cs_CZ/foreman_google.js +7 -1
  3. data/app/assets/javascripts/foreman_google/locale/de/foreman_google.js +7 -1
  4. data/app/assets/javascripts/foreman_google/locale/el/foreman_google.js +7 -1
  5. data/app/assets/javascripts/foreman_google/locale/en/foreman_google.js +7 -1
  6. data/app/assets/javascripts/foreman_google/locale/en_GB/foreman_google.js +7 -1
  7. data/app/assets/javascripts/foreman_google/locale/es/foreman_google.js +7 -1
  8. data/app/assets/javascripts/foreman_google/locale/fr/foreman_google.js +8 -2
  9. data/app/assets/javascripts/foreman_google/locale/it/foreman_google.js +7 -1
  10. data/app/assets/javascripts/foreman_google/locale/ja/foreman_google.js +8 -2
  11. data/app/assets/javascripts/foreman_google/locale/ka/foreman_google.js +7 -1
  12. data/app/assets/javascripts/foreman_google/locale/ko/foreman_google.js +8 -2
  13. data/app/assets/javascripts/foreman_google/locale/pl/foreman_google.js +7 -1
  14. data/app/assets/javascripts/foreman_google/locale/pt_BR/foreman_google.js +7 -1
  15. data/app/assets/javascripts/foreman_google/locale/ru/foreman_google.js +7 -1
  16. data/app/assets/javascripts/foreman_google/locale/sv_SE/foreman_google.js +7 -1
  17. data/app/assets/javascripts/foreman_google/locale/zh_CN/foreman_google.js +8 -2
  18. data/app/assets/javascripts/foreman_google/locale/zh_TW/foreman_google.js +7 -1
  19. data/app/lib/google_cloud_compute/compute_attributes.rb +3 -1
  20. data/app/models/foreman_google/gce.rb +2 -4
  21. data/app/models/foreman_google/google_compute.rb +2 -2
  22. data/lib/foreman_google/engine.rb +1 -1
  23. data/lib/foreman_google/version.rb +1 -1
  24. data/locale/cs_CZ/LC_MESSAGES/foreman_google.mo +0 -0
  25. data/locale/cs_CZ/foreman_google.po +7 -1
  26. data/locale/de/LC_MESSAGES/foreman_google.mo +0 -0
  27. data/locale/de/foreman_google.po +7 -1
  28. data/locale/el/LC_MESSAGES/foreman_google.mo +0 -0
  29. data/locale/el/foreman_google.po +7 -1
  30. data/locale/en/LC_MESSAGES/foreman_google.mo +0 -0
  31. data/locale/en/foreman_google.po +7 -1
  32. data/locale/en_GB/LC_MESSAGES/foreman_google.mo +0 -0
  33. data/locale/en_GB/foreman_google.po +7 -1
  34. data/locale/es/LC_MESSAGES/foreman_google.mo +0 -0
  35. data/locale/es/foreman_google.po +7 -1
  36. data/locale/foreman_google.pot +12 -4
  37. data/locale/fr/LC_MESSAGES/foreman_google.mo +0 -0
  38. data/locale/fr/foreman_google.po +9 -3
  39. data/locale/it/LC_MESSAGES/foreman_google.mo +0 -0
  40. data/locale/it/foreman_google.po +7 -1
  41. data/locale/ja/LC_MESSAGES/foreman_google.mo +0 -0
  42. data/locale/ja/foreman_google.po +9 -3
  43. data/locale/ka/LC_MESSAGES/foreman_google.mo +0 -0
  44. data/locale/ka/foreman_google.po +7 -1
  45. data/locale/ko/LC_MESSAGES/foreman_google.mo +0 -0
  46. data/locale/ko/foreman_google.po +9 -3
  47. data/locale/pl/LC_MESSAGES/foreman_google.mo +0 -0
  48. data/locale/pl/foreman_google.po +7 -1
  49. data/locale/pt_BR/LC_MESSAGES/foreman_google.mo +0 -0
  50. data/locale/pt_BR/foreman_google.po +7 -1
  51. data/locale/ru/LC_MESSAGES/foreman_google.mo +0 -0
  52. data/locale/ru/foreman_google.po +7 -1
  53. data/locale/sv_SE/LC_MESSAGES/foreman_google.mo +0 -0
  54. data/locale/sv_SE/foreman_google.po +7 -1
  55. data/locale/zh_CN/LC_MESSAGES/foreman_google.mo +0 -0
  56. data/locale/zh_CN/foreman_google.po +9 -3
  57. data/locale/zh_TW/LC_MESSAGES/foreman_google.mo +0 -0
  58. data/locale/zh_TW/foreman_google.po +7 -1
  59. data/test/controllers/foreman_google/api/v2/compute_resources_extensions_test.rb +71 -0
  60. data/test/models/concerns/foreman_google/host_managed_extensions_test.rb +46 -0
  61. data/test/models/foreman_google/gce_test.rb +275 -3
  62. data/test/models/foreman_google/google_compute_test.rb +193 -4
  63. data/test/unit/foreman_google/google_compute_adapter_test.rb +59 -7
  64. data/test/unit/google_cloud_compute/compute_attributes_test.rb +235 -0
  65. data/test/unit/google_cloud_compute/compute_collection_test.rb +78 -0
  66. data/test/unit/google_extensions/attached_disk_test.rb +35 -0
  67. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 260fb1ec541eb5194c170880e719331430974ae4fe2da542b5bc4ca37c339d71
4
- data.tar.gz: eb66f283bbfd1dba34a92828eab38bdd000d1c44ee8de6ac92eaaf91d2032268
3
+ metadata.gz: 367ea676f11cf5a5d354258ec346a46fe763033c2a51a5bbe98da9fa2a79c5ee
4
+ data.tar.gz: 2b0bb4dfe19b4b6351c37049757c0982f4398b8b47c930b76709f074533175dc
5
5
  SHA512:
6
- metadata.gz: b1de4d2c31804d55fa4fb2345950e4c8047788dbbf4c9fcca952500e06343eebfb465badda65472315e9de7527b3337fb7b7b603477c2517e324ea112fdb6675
7
- data.tar.gz: 593f32a9267b4096dcb928fb10d3ac875f61bbb720b807bcc7d8c4c4009865afbe8ebe373de39ebfefdbbfb3873dcc18ce836c4c7dade93d5042e2aecf3a51aa
6
+ metadata.gz: 22d1b5fd31a5036b547e5a2aa07909cb4b76ca65c9189c1661b3fa3b89adee9bb44977869c56b3135242193def49a11df33ade1d1c208e0b190988d63994feca
7
+ data.tar.gz: 4196d8ec947fea1c2105b9e2848299079e2d01d6dae9dce3a074192fe18df9ce30e1a5ef52ec0634d9a9bd737e78aa04f70fb39fa948d2c5f5102f3190d5323e
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Pavel Borecki <pavel.borecki@gmail.com>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Lukas Kallies <github.com@luke-web.de>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "Konsole ist derzeit nicht verfügbar, da die Instanz ausgeschaltet ist"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Efstathios Iosifidis <eiosifidis@gmail.com>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -5,7 +5,7 @@
5
5
  "": {
6
6
  "Project-Id-Version": "foreman_google 1.0.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
- "PO-Revision-Date": "2026-02-11 15:19+0100",
8
+ "PO-Revision-Date": "2026-09-29 11:01+0000",
9
9
  "Last-Translator": "FULL NAME <EMAIL@ADDRESS>",
10
10
  "Language-Team": "LANGUAGE <LL@li.org>",
11
11
  "Language": "",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Andi Chandler <andi@gowling.com>, 2024",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "console is not available at this time because the instance is powered off"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Amit Upadhye <aupadhye@redhat.com>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "la consola no está disponible en este momento porque la instancia está apagada"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ondřej Gajdušek, 2026",
10
10
  "Language-Team": "French (https://app.transifex.com/foreman/teams/114/fr/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "la console n'est pas disponible pour le moment car l'instance est éteinte"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ "Impossible de démarrer une machine qui n'est pas persistante."
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ "Impossible d'arrêter une machine dont l'enregistrement n'est pas persistant."
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "0868a4d1af5275b3f70b0a6dac4c99a4, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ondřej Gajdušek, 2026",
10
10
  "Language-Team": "Japanese (https://app.transifex.com/foreman/teams/114/ja/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "インスタンスの電源がオフであるため、現時点ではコンソールは使用できません"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ "永続化されていないマシンを起動できません"
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ "永続化されていないマシンを停止できません"
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "კონსოლი ამჟამად მიუწვდომელია. გაშვებული ასლი გამორთულია"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ondřej Gajdušek, 2026",
10
10
  "Language-Team": "Korean (https://app.transifex.com/foreman/teams/114/ko/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "인스턴스 전원이 꺼져 있으므로 현재 콘솔을 사용할 수 없습니다."
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ "영구 저장되지 않은 머신은 시작할 수 없습니다."
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ "영구 저장되지 않은 머신은 중지할 수 없습니다."
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Michał Foryt <michal.foryt@gmail.com>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "console não está disponível neste momento porque a instância está desligada"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "0868a4d1af5275b3f70b0a6dac4c99a4, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "johnny.westerlund <johnny.westerlund@gmail.com>, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024",
9
+ "Last-Translator": "Ondřej Gajdušek, 2026",
10
10
  "Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  "控制台目前不可用,因为实例已关闭"
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ "无法启动没有持久化的机器"
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ "无法停止没有持久化的机器"
97
103
  ]
98
104
  }
99
105
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_google": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_google 3.0.6",
6
+ "Project-Id-Version": "foreman_google 3.1.0",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-08-01 12:51+0000",
9
9
  "Last-Translator": "0868a4d1af5275b3f70b0a6dac4c99a4, 2022",
@@ -94,6 +94,12 @@
94
94
  ],
95
95
  "console is not available at this time because the instance is powered off": [
96
96
  ""
97
+ ],
98
+ "unable to start machine that is not persisted": [
99
+ ""
100
+ ],
101
+ "unable to stop machine that is not persisted": [
102
+ ""
97
103
  ]
98
104
  }
99
105
  }
@@ -29,12 +29,14 @@ module GoogleCloudCompute
29
29
  end
30
30
 
31
31
  def for_instance(instance)
32
+ first_nic = instance.network_interfaces[0]
33
+
32
34
  {
33
35
  name: instance.name, hostname: instance.name,
34
36
  creation_timestamp: instance.creation_timestamp.to_datetime,
35
37
  zone_name: instance.zone.split('/').last,
36
38
  machine_type: instance.machine_type,
37
- network: instance.network_interfaces[0].network.split('/').last,
39
+ network: first_nic&.network&.split('/')&.last,
38
40
  network_interfaces: instance.network_interfaces,
39
41
  volumes: instance.disks, metadata: instance.metadata
40
42
  }
@@ -96,10 +96,8 @@ module ForemanGoogle
96
96
  end
97
97
 
98
98
  def setup_key_pair
99
- require 'sshkey'
100
-
101
- key = ::SSHKey.generate
102
- build_key_pair name: "foreman-#{id}#{Foreman.uuid}", secret: key.private_key, public: key.ssh_public_key
99
+ key_pair = Foreman::Provision::SshKey.generate
100
+ build_key_pair name: "foreman-#{id}#{Foreman.uuid}", secret: key_pair.private_key, public: key_pair.public_key
103
101
  end
104
102
 
105
103
  def self.provider_friendly_name
@@ -35,12 +35,12 @@ module ForemanGoogle
35
35
  alias_method :state, :status
36
36
 
37
37
  def start
38
- raise Foreman::Exception('unable to start machine that is not persisted') unless persisted?
38
+ raise Foreman::Exception, N_('unable to start machine that is not persisted') unless persisted?
39
39
  @client.start(@zone, identity)
40
40
  end
41
41
 
42
42
  def stop
43
- raise Foreman::Exception('unable to stop machine that is not persisted') unless persisted?
43
+ raise Foreman::Exception, N_('unable to stop machine that is not persisted') unless persisted?
44
44
  @client.stop(@zone, identity)
45
45
  end
46
46
 
@@ -18,7 +18,7 @@ module ForemanGoogle
18
18
 
19
19
  initializer 'foreman_google.register_plugin', before: :finisher_hook do |_app|
20
20
  Foreman::Plugin.register :foreman_google do
21
- requires_foreman '>= 3.13.0'
21
+ requires_foreman '>= 5.1'
22
22
  register_global_js_file 'global'
23
23
  register_gettext
24
24
 
@@ -1,3 +1,3 @@
1
1
  module ForemanGoogle
2
- VERSION = '3.0.8'.freeze
2
+ VERSION = '3.1.1'.freeze
3
3
  end
@@ -9,7 +9,7 @@
9
9
  #
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: foreman_google 3.0.6\n"
12
+ "Project-Id-Version: foreman_google 3.1.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
15
15
  "Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>, 2022\n"
@@ -99,3 +99,9 @@ msgstr ""
99
99
 
100
100
  msgid "console is not available at this time because the instance is powered off"
101
101
  msgstr ""
102
+
103
+ msgid "unable to start machine that is not persisted"
104
+ msgstr ""
105
+
106
+ msgid "unable to stop machine that is not persisted"
107
+ msgstr ""
@@ -17,7 +17,7 @@
17
17
  #
18
18
  msgid ""
19
19
  msgstr ""
20
- "Project-Id-Version: foreman_google 3.0.6\n"
20
+ "Project-Id-Version: foreman_google 3.1.0\n"
21
21
  "Report-Msgid-Bugs-To: \n"
22
22
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
23
23
  "Last-Translator: Lukas Kallies <github.com@luke-web.de>, 2022\n"
@@ -105,3 +105,9 @@ msgstr ""
105
105
 
106
106
  msgid "console is not available at this time because the instance is powered off"
107
107
  msgstr "Konsole ist derzeit nicht verfügbar, da die Instanz ausgeschaltet ist"
108
+
109
+ msgid "unable to start machine that is not persisted"
110
+ msgstr ""
111
+
112
+ msgid "unable to stop machine that is not persisted"
113
+ msgstr ""
@@ -8,7 +8,7 @@
8
8
  #
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: foreman_google 3.0.6\n"
11
+ "Project-Id-Version: foreman_google 3.1.0\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
14
14
  "Last-Translator: Efstathios Iosifidis <eiosifidis@gmail.com>, 2022\n"
@@ -96,3 +96,9 @@ msgstr ""
96
96
 
97
97
  msgid "console is not available at this time because the instance is powered off"
98
98
  msgstr ""
99
+
100
+ msgid "unable to start machine that is not persisted"
101
+ msgstr ""
102
+
103
+ msgid "unable to stop machine that is not persisted"
104
+ msgstr ""
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_google 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "PO-Revision-Date: 2026-02-11 15:19+0100\n"
11
+ "PO-Revision-Date: 2026-09-29 11:01+0000\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
14
  "Language: \n"
@@ -94,3 +94,9 @@ msgstr ""
94
94
 
95
95
  msgid "console is not available at this time because the instance is powered off"
96
96
  msgstr ""
97
+
98
+ msgid "unable to start machine that is not persisted"
99
+ msgstr ""
100
+
101
+ msgid "unable to stop machine that is not persisted"
102
+ msgstr ""
@@ -9,7 +9,7 @@
9
9
  #
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: foreman_google 3.0.6\n"
12
+ "Project-Id-Version: foreman_google 3.1.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
15
15
  "Last-Translator: Andi Chandler <andi@gowling.com>, 2024\n"
@@ -98,3 +98,9 @@ msgstr "Zone, for GCE only"
98
98
 
99
99
  msgid "console is not available at this time because the instance is powered off"
100
100
  msgstr "console is not available at this time because the instance is powered off"
101
+
102
+ msgid "unable to start machine that is not persisted"
103
+ msgstr ""
104
+
105
+ msgid "unable to stop machine that is not persisted"
106
+ msgstr ""
@@ -15,7 +15,7 @@
15
15
  #
16
16
  msgid ""
17
17
  msgstr ""
18
- "Project-Id-Version: foreman_google 3.0.6\n"
18
+ "Project-Id-Version: foreman_google 3.1.0\n"
19
19
  "Report-Msgid-Bugs-To: \n"
20
20
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
21
21
  "Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
@@ -104,3 +104,9 @@ msgstr ""
104
104
 
105
105
  msgid "console is not available at this time because the instance is powered off"
106
106
  msgstr "la consola no está disponible en este momento porque la instancia está apagada"
107
+
108
+ msgid "unable to start machine that is not persisted"
109
+ msgstr ""
110
+
111
+ msgid "unable to stop machine that is not persisted"
112
+ msgstr ""
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_google 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2026-02-11 15:19+0100\n"
12
- "PO-Revision-Date: 2026-02-11 15:19+0100\n"
11
+ "POT-Creation-Date: 2026-09-29 11:01+0000\n"
12
+ "PO-Revision-Date: 2026-09-29 11:01+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -46,14 +46,22 @@ msgid ""
46
46
  "ON file"
47
47
  msgstr ""
48
48
 
49
- #: ../app/models/foreman_google/gce.rb:128
49
+ #: ../app/models/foreman_google/gce.rb:126
50
50
  msgid "console is not available at this time because the instance is powered off"
51
51
  msgstr ""
52
52
 
53
- #: ../app/models/foreman_google/gce.rb:172
53
+ #: ../app/models/foreman_google/gce.rb:170
54
54
  msgid "Missing an image for operating system!"
55
55
  msgstr ""
56
56
 
57
+ #: ../app/models/foreman_google/google_compute.rb:38
58
+ msgid "unable to start machine that is not persisted"
59
+ msgstr ""
60
+
61
+ #: ../app/models/foreman_google/google_compute.rb:43
62
+ msgid "unable to stop machine that is not persisted"
63
+ msgstr ""
64
+
57
65
  #: ../app/views/compute_resources/form/_gce.html.erb:3
58
66
  msgid "JSON key"
59
67
  msgstr ""