foreman_ansible 14.2.1 → 14.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +359 -386
  3. data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +443 -470
  4. data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +518 -545
  5. data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +291 -318
  6. data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +317 -344
  7. data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +580 -607
  8. data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +582 -609
  9. data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +333 -360
  10. data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +395 -422
  11. data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +582 -609
  12. data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +575 -602
  13. data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +402 -429
  14. data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +350 -377
  15. data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +369 -396
  16. data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +580 -607
  17. data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +391 -418
  18. data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +335 -362
  19. data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +584 -611
  20. data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +402 -429
  21. data/app/models/ansible_role.rb +3 -0
  22. data/app/models/ansible_variable.rb +4 -0
  23. data/app/models/host_ansible_role.rb +6 -0
  24. data/app/views/foreman_ansible/job_templates/capsule_update_-_ansible_default.erb +73 -0
  25. data/app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb +1 -3
  26. data/lib/foreman_ansible/remote_execution.rb +6 -0
  27. data/lib/foreman_ansible/version.rb +1 -1
  28. data/locale/ca/foreman_ansible.po +6 -33
  29. data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
  30. data/locale/cs_CZ/foreman_ansible.po +6 -33
  31. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  32. data/locale/de/foreman_ansible.po +6 -33
  33. data/locale/en/foreman_ansible.po +6 -33
  34. data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
  35. data/locale/en_GB/foreman_ansible.po +6 -33
  36. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  37. data/locale/es/foreman_ansible.po +6 -33
  38. data/locale/foreman_ansible.pot +47 -85
  39. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  40. data/locale/fr/foreman_ansible.po +6 -33
  41. data/locale/gl/foreman_ansible.po +6 -33
  42. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  43. data/locale/it/foreman_ansible.po +6 -33
  44. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  45. data/locale/ja/foreman_ansible.po +6 -33
  46. data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
  47. data/locale/ka/foreman_ansible.po +6 -33
  48. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  49. data/locale/ko/foreman_ansible.po +6 -33
  50. data/locale/nl_NL/foreman_ansible.po +6 -33
  51. data/locale/pl/foreman_ansible.po +6 -33
  52. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  53. data/locale/pt_BR/foreman_ansible.po +6 -33
  54. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  55. data/locale/ru/foreman_ansible.po +6 -33
  56. data/locale/sv_SE/foreman_ansible.po +6 -33
  57. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  58. data/locale/zh_CN/foreman_ansible.po +6 -33
  59. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  60. data/locale/zh_TW/foreman_ansible.po +6 -33
  61. data/test/unit/host_ansible_role_test.rb +30 -0
  62. metadata +17 -3
  63. data/locale/action_names.rb +0 -7
@@ -37,9 +37,6 @@ msgstr ""
37
37
  msgid "A comma separated list of tags to use for Ansible run"
38
38
  msgstr ""
39
39
 
40
- msgid "Action with sub plans"
41
- msgstr ""
42
-
43
40
  msgid "Actions"
44
41
  msgstr "Akcja"
45
42
 
@@ -142,9 +139,6 @@ msgstr ""
142
139
  msgid "Ansible variable override was successfully deleted."
143
140
  msgstr ""
144
141
 
145
- msgid "Ansible: Run Insights maintenance plan"
146
- msgstr ""
147
-
148
142
  msgid "Are you sure you want to cancel Ansible config job?"
149
143
  msgstr ""
150
144
 
@@ -184,9 +178,6 @@ msgstr ""
184
178
  msgid "Changed Ansible roles"
185
179
  msgstr ""
186
180
 
187
- msgid "Check for long running tasks"
188
- msgstr ""
189
-
190
181
  msgid "Close"
191
182
  msgstr "Zamknij"
192
183
 
@@ -259,9 +250,6 @@ msgstr ""
259
250
  msgid "Deletes Ansible variable"
260
251
  msgstr ""
261
252
 
262
- msgid "Deliver notifications about long running tasks"
263
- msgstr ""
264
-
265
253
  msgid "Description"
266
254
  msgstr "Opis"
267
255
 
@@ -391,15 +379,9 @@ msgstr "Jeśli zaznaczone, zgłosi błąd, jeśli nie ma wartości domyślnej an
391
379
  msgid "Import"
392
380
  msgstr "Import"
393
381
 
394
- msgid "Import Puppet classes"
395
- msgstr ""
396
-
397
382
  msgid "Import Role"
398
383
  msgstr ""
399
384
 
400
- msgid "Import facts"
401
- msgstr ""
402
-
403
385
  msgid "Import from %s"
404
386
  msgstr "Importuj z %s"
405
387
 
@@ -436,9 +418,6 @@ msgstr ""
436
418
  msgid "Inherited from Hostgroup"
437
419
  msgstr ""
438
420
 
439
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
440
- msgstr ""
441
-
442
421
  msgid "Invalid, expected one of: %s"
443
422
  msgstr ""
444
423
 
@@ -448,9 +427,6 @@ msgstr ""
448
427
  msgid "Inventory"
449
428
  msgstr ""
450
429
 
451
- msgid "Job Details"
452
- msgstr ""
453
-
454
430
  msgid "Jobs"
455
431
  msgstr ""
456
432
 
@@ -615,12 +591,6 @@ msgstr ""
615
591
  msgid "Proxy tasks batch size for Ansible"
616
592
  msgstr ""
617
593
 
618
- msgid "Remediation Plan"
619
- msgstr ""
620
-
621
- msgid "Remote action:"
622
- msgstr ""
623
-
624
594
  msgid "Remove"
625
595
  msgstr ""
626
596
 
@@ -681,9 +651,6 @@ msgstr ""
681
651
  msgid "Run playbook"
682
652
  msgstr ""
683
653
 
684
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
685
- msgstr ""
686
-
687
654
  msgid "Runs all Ansible roles on a host"
688
655
  msgstr ""
689
656
 
@@ -843,6 +810,12 @@ msgstr ""
843
810
  msgid "Update"
844
811
  msgstr "Aktualizacja:"
845
812
 
813
+ msgid "Update Capsules on given Capsule server hosts"
814
+ msgstr ""
815
+
816
+ msgid "Update Capsules on given hosts"
817
+ msgstr ""
818
+
846
819
  msgid "Update Role Variables"
847
820
  msgstr ""
848
821
 
@@ -43,9 +43,6 @@ msgstr "(do grupo anfitrião)"
43
43
  msgid "A comma separated list of tags to use for Ansible run"
44
44
  msgstr "Uma lista separada por vírgulas de etiquetas a serem usadas para a execução Ansible run"
45
45
 
46
- msgid "Action with sub plans"
47
- msgstr "Ação com subplanos "
48
-
49
46
  msgid "Actions"
50
47
  msgstr "Ações"
51
48
 
@@ -148,9 +145,6 @@ msgstr "Substituição possível da variável alterada com sucesso."
148
145
  msgid "Ansible variable override was successfully deleted."
149
146
  msgstr "Uma possível substituição de variável foi eliminada com sucesso."
150
147
 
151
- msgid "Ansible: Run Insights maintenance plan"
152
- msgstr "Ansible: executar plano de manutenção de insights"
153
-
154
148
  msgid "Are you sure you want to cancel Ansible config job?"
155
149
  msgstr "Você tem certeza de que quer cancelar o trabalho de configuração de Ansible config?"
156
150
 
@@ -190,9 +184,6 @@ msgstr "Cancelar trabalho de configuração possível"
190
184
  msgid "Changed Ansible roles"
191
185
  msgstr "Funções do Ansible alteradas"
192
186
 
193
- msgid "Check for long running tasks"
194
- msgstr ""
195
-
196
187
  msgid "Close"
197
188
  msgstr "Fechar"
198
189
 
@@ -265,9 +256,6 @@ msgstr "Excluir função do Ansible"
265
256
  msgid "Deletes Ansible variable"
266
257
  msgstr "Exclui variável do Ansible"
267
258
 
268
- msgid "Deliver notifications about long running tasks"
269
- msgstr ""
270
-
271
259
  msgid "Description"
272
260
  msgstr "Descrição"
273
261
 
@@ -397,15 +385,9 @@ msgstr "Se verificado, surgirá um erro caso não haja valor padrão e nenhum co
397
385
  msgid "Import"
398
386
  msgstr "Importar"
399
387
 
400
- msgid "Import Puppet classes"
401
- msgstr "Importar classes de Puppet"
402
-
403
388
  msgid "Import Role"
404
389
  msgstr "Papel de importação"
405
390
 
406
- msgid "Import facts"
407
- msgstr "Importar fatos"
408
-
409
391
  msgid "Import from %s"
410
392
  msgstr "Importação de %s"
411
393
 
@@ -442,9 +424,6 @@ msgstr "Incluir\\Excluir tags para execução possível"
442
424
  msgid "Inherited from Hostgroup"
443
425
  msgstr "Herdado do Hostgroup"
444
426
 
445
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
446
- msgstr "A remediação Insights em %{hosts_count} host(s) terminou com sucesso"
447
-
448
427
  msgid "Invalid, expected one of: %s"
449
428
  msgstr "Inválido, espera-se um dos: %s"
450
429
 
@@ -454,9 +433,6 @@ msgstr "Inválido, esperado corresponder a um regex: %s"
454
433
  msgid "Inventory"
455
434
  msgstr "Inventário"
456
435
 
457
- msgid "Job Details"
458
- msgstr "Detalhes do trabalho"
459
-
460
436
  msgid "Jobs"
461
437
  msgstr "Trabalhos"
462
438
 
@@ -623,12 +599,6 @@ msgstr "Proxy não encontrado"
623
599
  msgid "Proxy tasks batch size for Ansible"
624
600
  msgstr "Tarefas de Proxy Tamanho do lote para Ansible"
625
601
 
626
- msgid "Remediation Plan"
627
- msgstr "Plano de remediação"
628
-
629
- msgid "Remote action:"
630
- msgstr "Ação remota:"
631
-
632
602
  msgid "Remove"
633
603
  msgstr "Remover"
634
604
 
@@ -689,9 +659,6 @@ msgstr "Execute um livro de reprodução possível para habilitar o console web
689
659
  msgid "Run playbook"
690
660
  msgstr "Executar playbook"
691
661
 
692
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
693
- msgstr "Executa um determinado plano de manutenção a partir do Red Hat Access Insights dada uma ID."
694
-
695
662
  msgid "Runs all Ansible roles on a host"
696
663
  msgstr "Executa todas as funções do Ansible em um host"
697
664
 
@@ -851,6 +818,12 @@ msgstr "Não foi possível obter funções/variáveis do Ansible"
851
818
  msgid "Update"
852
819
  msgstr "Atualizar"
853
820
 
821
+ msgid "Update Capsules on given Capsule server hosts"
822
+ msgstr ""
823
+
824
+ msgid "Update Capsules on given hosts"
825
+ msgstr ""
826
+
854
827
  msgid "Update Role Variables"
855
828
  msgstr "Atualização de variáveis de função"
856
829
 
@@ -43,9 +43,6 @@ msgstr ""
43
43
  msgid "A comma separated list of tags to use for Ansible run"
44
44
  msgstr ""
45
45
 
46
- msgid "Action with sub plans"
47
- msgstr "Действия с подпланами"
48
-
49
46
  msgid "Actions"
50
47
  msgstr "Действия"
51
48
 
@@ -148,9 +145,6 @@ msgstr ""
148
145
  msgid "Ansible variable override was successfully deleted."
149
146
  msgstr ""
150
147
 
151
- msgid "Ansible: Run Insights maintenance plan"
152
- msgstr ""
153
-
154
148
  msgid "Are you sure you want to cancel Ansible config job?"
155
149
  msgstr ""
156
150
 
@@ -190,9 +184,6 @@ msgstr ""
190
184
  msgid "Changed Ansible roles"
191
185
  msgstr ""
192
186
 
193
- msgid "Check for long running tasks"
194
- msgstr ""
195
-
196
187
  msgid "Close"
197
188
  msgstr "Закрыть"
198
189
 
@@ -265,9 +256,6 @@ msgstr ""
265
256
  msgid "Deletes Ansible variable"
266
257
  msgstr ""
267
258
 
268
- msgid "Deliver notifications about long running tasks"
269
- msgstr ""
270
-
271
259
  msgid "Description"
272
260
  msgstr "Описание"
273
261
 
@@ -397,15 +385,9 @@ msgstr "Если установлен, генерирует ошибку в сл
397
385
  msgid "Import"
398
386
  msgstr "Импорт"
399
387
 
400
- msgid "Import Puppet classes"
401
- msgstr "Импорт классов Puppet"
402
-
403
388
  msgid "Import Role"
404
389
  msgstr ""
405
390
 
406
- msgid "Import facts"
407
- msgstr "Импорт фактов"
408
-
409
391
  msgid "Import from %s"
410
392
  msgstr "Импорт с %s"
411
393
 
@@ -442,9 +424,6 @@ msgstr ""
442
424
  msgid "Inherited from Hostgroup"
443
425
  msgstr ""
444
426
 
445
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
446
- msgstr ""
447
-
448
427
  msgid "Invalid, expected one of: %s"
449
428
  msgstr ""
450
429
 
@@ -454,9 +433,6 @@ msgstr ""
454
433
  msgid "Inventory"
455
434
  msgstr ""
456
435
 
457
- msgid "Job Details"
458
- msgstr ""
459
-
460
436
  msgid "Jobs"
461
437
  msgstr "Задания"
462
438
 
@@ -621,12 +597,6 @@ msgstr ""
621
597
  msgid "Proxy tasks batch size for Ansible"
622
598
  msgstr ""
623
599
 
624
- msgid "Remediation Plan"
625
- msgstr ""
626
-
627
- msgid "Remote action:"
628
- msgstr "Удаленное действие:"
629
-
630
600
  msgid "Remove"
631
601
  msgstr "Удалить"
632
602
 
@@ -687,9 +657,6 @@ msgstr ""
687
657
  msgid "Run playbook"
688
658
  msgstr ""
689
659
 
690
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
691
- msgstr ""
692
-
693
660
  msgid "Runs all Ansible roles on a host"
694
661
  msgstr ""
695
662
 
@@ -849,6 +816,12 @@ msgstr ""
849
816
  msgid "Update"
850
817
  msgstr "Обновить"
851
818
 
819
+ msgid "Update Capsules on given Capsule server hosts"
820
+ msgstr ""
821
+
822
+ msgid "Update Capsules on given hosts"
823
+ msgstr ""
824
+
852
825
  msgid "Update Role Variables"
853
826
  msgstr ""
854
827
 
@@ -37,9 +37,6 @@ msgstr ""
37
37
  msgid "A comma separated list of tags to use for Ansible run"
38
38
  msgstr ""
39
39
 
40
- msgid "Action with sub plans"
41
- msgstr ""
42
-
43
40
  msgid "Actions"
44
41
  msgstr "Åtgärder"
45
42
 
@@ -142,9 +139,6 @@ msgstr ""
142
139
  msgid "Ansible variable override was successfully deleted."
143
140
  msgstr ""
144
141
 
145
- msgid "Ansible: Run Insights maintenance plan"
146
- msgstr ""
147
-
148
142
  msgid "Are you sure you want to cancel Ansible config job?"
149
143
  msgstr ""
150
144
 
@@ -184,9 +178,6 @@ msgstr ""
184
178
  msgid "Changed Ansible roles"
185
179
  msgstr ""
186
180
 
187
- msgid "Check for long running tasks"
188
- msgstr ""
189
-
190
181
  msgid "Close"
191
182
  msgstr "Stäng"
192
183
 
@@ -259,9 +250,6 @@ msgstr ""
259
250
  msgid "Deletes Ansible variable"
260
251
  msgstr ""
261
252
 
262
- msgid "Deliver notifications about long running tasks"
263
- msgstr ""
264
-
265
253
  msgid "Description"
266
254
  msgstr "Beskrivning"
267
255
 
@@ -391,15 +379,9 @@ msgstr "Om vald, kommer ett fel att flaggas om det inte finns något standardvä
391
379
  msgid "Import"
392
380
  msgstr "Importera"
393
381
 
394
- msgid "Import Puppet classes"
395
- msgstr ""
396
-
397
382
  msgid "Import Role"
398
383
  msgstr ""
399
384
 
400
- msgid "Import facts"
401
- msgstr ""
402
-
403
385
  msgid "Import from %s"
404
386
  msgstr "Importera från %s"
405
387
 
@@ -436,9 +418,6 @@ msgstr ""
436
418
  msgid "Inherited from Hostgroup"
437
419
  msgstr ""
438
420
 
439
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
440
- msgstr ""
441
-
442
421
  msgid "Invalid, expected one of: %s"
443
422
  msgstr ""
444
423
 
@@ -448,9 +427,6 @@ msgstr ""
448
427
  msgid "Inventory"
449
428
  msgstr ""
450
429
 
451
- msgid "Job Details"
452
- msgstr ""
453
-
454
430
  msgid "Jobs"
455
431
  msgstr ""
456
432
 
@@ -615,12 +591,6 @@ msgstr ""
615
591
  msgid "Proxy tasks batch size for Ansible"
616
592
  msgstr ""
617
593
 
618
- msgid "Remediation Plan"
619
- msgstr ""
620
-
621
- msgid "Remote action:"
622
- msgstr ""
623
-
624
594
  msgid "Remove"
625
595
  msgstr ""
626
596
 
@@ -681,9 +651,6 @@ msgstr ""
681
651
  msgid "Run playbook"
682
652
  msgstr ""
683
653
 
684
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
685
- msgstr ""
686
-
687
654
  msgid "Runs all Ansible roles on a host"
688
655
  msgstr ""
689
656
 
@@ -843,6 +810,12 @@ msgstr ""
843
810
  msgid "Update"
844
811
  msgstr "Uppdatera"
845
812
 
813
+ msgid "Update Capsules on given Capsule server hosts"
814
+ msgstr ""
815
+
816
+ msgid "Update Capsules on given hosts"
817
+ msgstr ""
818
+
846
819
  msgid "Update Role Variables"
847
820
  msgstr ""
848
821
 
@@ -40,9 +40,6 @@ msgstr "(从主机组中)"
40
40
  msgid "A comma separated list of tags to use for Ansible run"
41
41
  msgstr "用于 Ansible 运行的以逗号分隔的标签列表"
42
42
 
43
- msgid "Action with sub plans"
44
- msgstr "有子计划的操作"
45
-
46
43
  msgid "Actions"
47
44
  msgstr "操作"
48
45
 
@@ -145,9 +142,6 @@ msgstr "Ansible 变量覆盖已成功更改。"
145
142
  msgid "Ansible variable override was successfully deleted."
146
143
  msgstr "Ansible 变量覆盖已成功删除。"
147
144
 
148
- msgid "Ansible: Run Insights maintenance plan"
149
- msgstr "Ansible:运行 Insights 维护计划"
150
-
151
145
  msgid "Are you sure you want to cancel Ansible config job?"
152
146
  msgstr "您确定要取消 Ansible 配置任务吗?"
153
147
 
@@ -187,9 +181,6 @@ msgstr "取消 Ansible 配置任务"
187
181
  msgid "Changed Ansible roles"
188
182
  msgstr "已更改的 Ansible 角色"
189
183
 
190
- msgid "Check for long running tasks"
191
- msgstr ""
192
-
193
184
  msgid "Close"
194
185
  msgstr "关闭"
195
186
 
@@ -262,9 +253,6 @@ msgstr "删除 Ansible 角色"
262
253
  msgid "Deletes Ansible variable"
263
254
  msgstr "删除 Ansible 变量"
264
255
 
265
- msgid "Deliver notifications about long running tasks"
266
- msgstr ""
267
-
268
256
  msgid "Description"
269
257
  msgstr "描述"
270
258
 
@@ -394,15 +382,9 @@ msgstr "检查后,如果没有默认值,且没有映射程序提供数值,
394
382
  msgid "Import"
395
383
  msgstr "导入"
396
384
 
397
- msgid "Import Puppet classes"
398
- msgstr "导入 Puppet 类"
399
-
400
385
  msgid "Import Role"
401
386
  msgstr "导入角色"
402
387
 
403
- msgid "Import facts"
404
- msgstr "导入事实"
405
-
406
388
  msgid "Import from %s"
407
389
  msgstr "从 %s 导入"
408
390
 
@@ -439,9 +421,6 @@ msgstr "用于 Ansible 运行的包括\\排除标签"
439
421
  msgid "Inherited from Hostgroup"
440
422
  msgstr "从主机组中继承"
441
423
 
442
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
443
- msgstr "%%{hosts_count} 个主机的 Insights 补救计划已成功完成"
444
-
445
424
  msgid "Invalid, expected one of: %s"
446
425
  msgstr "无效,预期为 %s 之一"
447
426
 
@@ -451,9 +430,6 @@ msgstr "无效,预期匹配的 与 regex :%s"
451
430
  msgid "Inventory"
452
431
  msgstr "清单"
453
432
 
454
- msgid "Job Details"
455
- msgstr "作业详情"
456
-
457
433
  msgid "Jobs"
458
434
  msgstr "工作"
459
435
 
@@ -620,12 +596,6 @@ msgstr "找不到代理"
620
596
  msgid "Proxy tasks batch size for Ansible"
621
597
  msgstr "Ansible 的代理任务的批处理大小"
622
598
 
623
- msgid "Remediation Plan"
624
- msgstr "补救计划"
625
-
626
- msgid "Remote action:"
627
- msgstr "远程操作:"
628
-
629
599
  msgid "Remove"
630
600
  msgstr "移除"
631
601
 
@@ -686,9 +656,6 @@ msgstr "运行 Ansible playbook 以在给定主机上启用 Web 控制台"
686
656
  msgid "Run playbook"
687
657
  msgstr "运行 playbook"
688
658
 
689
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
690
- msgstr "运行给定 ID 的红帽 Access Insights 的给定维护计划。"
691
-
692
659
  msgid "Runs all Ansible roles on a host"
693
660
  msgstr "在一个主机上运行所有 Ansible 角色"
694
661
 
@@ -848,6 +815,12 @@ msgstr "无法从 Ansible 获取角色/变量"
848
815
  msgid "Update"
849
816
  msgstr "更新"
850
817
 
818
+ msgid "Update Capsules on given Capsule server hosts"
819
+ msgstr ""
820
+
821
+ msgid "Update Capsules on given hosts"
822
+ msgstr ""
823
+
851
824
  msgid "Update Role Variables"
852
825
  msgstr "更新角色变量"
853
826
 
@@ -36,9 +36,6 @@ msgstr ""
36
36
  msgid "A comma separated list of tags to use for Ansible run"
37
37
  msgstr ""
38
38
 
39
- msgid "Action with sub plans"
40
- msgstr "有子計畫的動作"
41
-
42
39
  msgid "Actions"
43
40
  msgstr "動作"
44
41
 
@@ -141,9 +138,6 @@ msgstr ""
141
138
  msgid "Ansible variable override was successfully deleted."
142
139
  msgstr ""
143
140
 
144
- msgid "Ansible: Run Insights maintenance plan"
145
- msgstr ""
146
-
147
141
  msgid "Are you sure you want to cancel Ansible config job?"
148
142
  msgstr ""
149
143
 
@@ -183,9 +177,6 @@ msgstr ""
183
177
  msgid "Changed Ansible roles"
184
178
  msgstr ""
185
179
 
186
- msgid "Check for long running tasks"
187
- msgstr ""
188
-
189
180
  msgid "Close"
190
181
  msgstr "關閉"
191
182
 
@@ -258,9 +249,6 @@ msgstr ""
258
249
  msgid "Deletes Ansible variable"
259
250
  msgstr ""
260
251
 
261
- msgid "Deliver notifications about long running tasks"
262
- msgstr ""
263
-
264
252
  msgid "Description"
265
253
  msgstr "描述"
266
254
 
@@ -390,15 +378,9 @@ msgstr "若選取而沒有預設值並且比對器未提供值的話,將會造
390
378
  msgid "Import"
391
379
  msgstr "匯入"
392
380
 
393
- msgid "Import Puppet classes"
394
- msgstr "匯入 Puppet 類別"
395
-
396
381
  msgid "Import Role"
397
382
  msgstr ""
398
383
 
399
- msgid "Import facts"
400
- msgstr "匯入詳情"
401
-
402
384
  msgid "Import from %s"
403
385
  msgstr "由 %s 匯入"
404
386
 
@@ -435,9 +417,6 @@ msgstr ""
435
417
  msgid "Inherited from Hostgroup"
436
418
  msgstr ""
437
419
 
438
- msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
439
- msgstr ""
440
-
441
420
  msgid "Invalid, expected one of: %s"
442
421
  msgstr ""
443
422
 
@@ -447,9 +426,6 @@ msgstr ""
447
426
  msgid "Inventory"
448
427
  msgstr ""
449
428
 
450
- msgid "Job Details"
451
- msgstr ""
452
-
453
429
  msgid "Jobs"
454
430
  msgstr "工作"
455
431
 
@@ -614,12 +590,6 @@ msgstr ""
614
590
  msgid "Proxy tasks batch size for Ansible"
615
591
  msgstr ""
616
592
 
617
- msgid "Remediation Plan"
618
- msgstr ""
619
-
620
- msgid "Remote action:"
621
- msgstr "遠端動作:"
622
-
623
593
  msgid "Remove"
624
594
  msgstr "移除"
625
595
 
@@ -680,9 +650,6 @@ msgstr ""
680
650
  msgid "Run playbook"
681
651
  msgstr ""
682
652
 
683
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
684
- msgstr ""
685
-
686
653
  msgid "Runs all Ansible roles on a host"
687
654
  msgstr ""
688
655
 
@@ -842,6 +809,12 @@ msgstr ""
842
809
  msgid "Update"
843
810
  msgstr "更新"
844
811
 
812
+ msgid "Update Capsules on given Capsule server hosts"
813
+ msgstr ""
814
+
815
+ msgid "Update Capsules on given hosts"
816
+ msgstr ""
817
+
845
818
  msgid "Update Role Variables"
846
819
  msgstr ""
847
820
 
@@ -17,4 +17,34 @@ class HostAnsibleRoleTest < ActiveSupport::TestCase
17
17
  end
18
18
  should validate_uniqueness_of(:ansible_role_id).scoped_to(:host_id)
19
19
  end
20
+
21
+ describe 'auditing' do
22
+ setup do
23
+ @host = FactoryBot.create(:host)
24
+ @ansible_role = FactoryBot.create(:ansible_role)
25
+ @host_ansible_role = FactoryBot.create(:host_ansible_role, :with_auditing, host_id: @host.id, ansible_role_id: @ansible_role.id)
26
+ @audits = @host_ansible_role.audits
27
+ end
28
+
29
+ test 'should audit creation of a host ansible role' do
30
+ assert_equal 1, @audits.size
31
+ assert_associated_ids
32
+ assert_equal 'create', @audits.last.action
33
+ end
34
+
35
+ test 'should audit deletion of a host ansible role' do
36
+ @audits.clear
37
+ @host_ansible_role.destroy
38
+
39
+ assert_equal 1, @audits.size
40
+ assert_associated_ids
41
+ assert_equal 'destroy', @audits.last.action
42
+ end
43
+
44
+ def assert_associated_ids
45
+ audit = @audits.last
46
+ assert_equal @ansible_role.id, audit.audited_changes['ansible_role_id']
47
+ assert_equal @host.id, audit.audited_changes['host_id']
48
+ end
49
+ end
20
50
  end