foreman_puppet 1.0.5 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/foreman_puppet/extensions/api_hostgroups_controller.rb +14 -16
  3. data/app/controllers/concerns/foreman_puppet/{api/import_puppetclasses_common_controller.rb → extensions/api_smart_proxies_controller.rb} +9 -3
  4. data/app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb +23 -1
  5. data/app/controllers/concerns/foreman_puppet/extensions/api_v2_hosts_controller.rb +15 -17
  6. data/app/controllers/concerns/foreman_puppet/extensions/hosts_controller_extensions.rb +0 -1
  7. data/app/controllers/concerns/foreman_puppet/extensions/parameters_hostgroup.rb +2 -8
  8. data/app/controllers/foreman_puppet/api/v2/environments_controller.rb +0 -1
  9. data/app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb +1 -1
  10. data/app/controllers/foreman_puppet/puppetclasses_controller.rb +1 -1
  11. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  12. data/app/helpers/foreman_puppet/hosts_and_hostgroups_helper.rb +0 -5
  13. data/app/helpers/foreman_puppet/hosts_helper.rb +6 -10
  14. data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +1 -1
  15. data/app/models/concerns/foreman_puppet/extensions/host.rb +2 -16
  16. data/app/models/concerns/foreman_puppet/extensions/hostgroup.rb +2 -7
  17. data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +7 -12
  18. data/app/models/concerns/foreman_puppet/extensions/template_combination.rb +5 -10
  19. data/app/services/foreman_puppet/puppet_class_importer.rb +0 -6
  20. data/app/views/foreman_puppet/api/v2/host_puppet_facets/host_list.json.rabl +3 -0
  21. data/app/views/foreman_puppet/api/v2/hostgroup_puppet_facets/base.json.rabl +2 -0
  22. data/app/views/foreman_puppet/api/v2/hostgroup_puppet_facets/hostgroup_list.json.rabl +3 -0
  23. data/app/views/foreman_puppet/config_groups/index.html.erb +1 -1
  24. data/config/api_routes.rb +1 -9
  25. data/config/initializers/api_reroute.rb +73 -5
  26. data/db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb +1 -1
  27. data/db/migrate/20200803113803_migrate_environment_to_puppet_facet.foreman_puppet.rb +2 -0
  28. data/db/migrate/20201125113903_migrate_puppetclasses_to_facets.foreman_puppet.rb +0 -8
  29. data/db/migrate/20210924103241_remove_katello_id_from_environments.foreman_puppet.rb +5 -0
  30. data/db/migrate/20211111125003_drop_puppetclasses_direct_references.foreman_puppet.rb +11 -0
  31. data/db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb +9 -0
  32. data/db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb +15 -0
  33. data/db/migrate_foreman/{20090722141107_create_environments.rb → 20090722141107_create_environments.foreman_puppet.rb} +3 -3
  34. data/db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb +29 -0
  35. data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +14 -0
  36. data/db/migrate_foreman/20110412103238_remove_unused_fields_from_puppet_classes.foreman_puppet.rb +9 -0
  37. data/db/migrate_foreman/20110712070522_create_host_class.foreman_puppet.rb +11 -0
  38. data/db/migrate_foreman/20120824142048_add_some_indexes.foreman_puppet.rb +21 -0
  39. data/db/migrate_foreman/{20120905095532_create_environment_classes.rb → 20120905095532_create_environment_classes.foreman_puppet.rb} +2 -2
  40. data/db/migrate_foreman/20121018152459_create_hostgroup_classes.foreman_puppet.rb +11 -0
  41. data/db/migrate_foreman/{20140407161817_create_config_groups.rb → 20140407161817_create_config_groups.foreman_puppet.rb} +0 -0
  42. data/db/migrate_foreman/{20140407162007_create_config_group_classes.rb → 20140407162007_create_config_group_classes.foreman_puppet.rb} +0 -0
  43. data/db/migrate_foreman/{20140407162059_create_host_config_groups.rb → 20140407162059_create_host_config_groups.foreman_puppet.rb} +0 -0
  44. data/db/migrate_foreman/{20161205142618_delete_orphaned_smart_class_parameters.rb → 20161205142618_delete_orphaned_smart_class_parameters.foreman_puppet.rb} +1 -1
  45. data/db/migrate_foreman/{20170109115157_fix_lookup_key_auditable_type.rb → 20170109115157_fix_lookup_key_auditable_type.foreman_puppet.rb} +0 -0
  46. data/db/migrate_foreman/20180816134832_cast_lookup_key_values.foreman_puppet.rb +5 -0
  47. data/db/migrate_foreman/20180831115634_add_uniqueness_to_puppetclass_name.foreman_puppet.rb +24 -0
  48. data/db/migrate_foreman/{20181023112532_add_environment_puppetclass_id.rb → 20181023112532_add_environment_puppetclass_id.foreman_puppet.rb} +1 -1
  49. data/db/migrate_foreman/{20181224174419_add_index_to_environment_class_by_lookup_key_and_puppetclass.rb → 20181224174419_add_index_to_environment_class_by_lookup_key_and_puppetclass.foreman_puppet.rb} +0 -0
  50. data/lib/foreman_puppet/engine.rb +4 -36
  51. data/lib/foreman_puppet/register.rb +51 -46
  52. data/lib/foreman_puppet/version.rb +1 -1
  53. data/lib/foreman_puppet.rb +1 -6
  54. data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
  55. data/locale/ca/foreman_puppet.po +760 -0
  56. data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
  57. data/locale/cs_CZ/foreman_puppet.po +823 -0
  58. data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
  59. data/locale/de/foreman_puppet.po +844 -0
  60. data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
  61. data/locale/en/foreman_puppet.po +119 -8
  62. data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
  63. data/locale/en_GB/foreman_puppet.po +820 -0
  64. data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
  65. data/locale/es/foreman_puppet.po +827 -0
  66. data/locale/foreman_puppet.pot +376 -205
  67. data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
  68. data/locale/fr/foreman_puppet.po +835 -0
  69. data/locale/gemspec.rb +1 -1
  70. data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
  71. data/locale/gl/foreman_puppet.po +818 -0
  72. data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
  73. data/locale/it/foreman_puppet.po +822 -0
  74. data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
  75. data/locale/ja/foreman_puppet.po +830 -0
  76. data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
  77. data/locale/ko/foreman_puppet.po +819 -0
  78. data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
  79. data/locale/nl_NL/foreman_puppet.po +823 -0
  80. data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
  81. data/locale/pl/foreman_puppet.po +822 -0
  82. data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
  83. data/locale/pt_BR/foreman_puppet.po +826 -0
  84. data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
  85. data/locale/ru/foreman_puppet.po +827 -0
  86. data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
  87. data/locale/sv_SE/foreman_puppet.po +822 -0
  88. data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
  89. data/locale/zh_CN/foreman_puppet.po +831 -0
  90. data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
  91. data/locale/zh_TW/foreman_puppet.po +821 -0
  92. data/package.json +8 -11
  93. data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +0 -231
  94. data/test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb +255 -0
  95. data/test/controllers/foreman_puppet/environments_controller_test.rb +2 -2
  96. data/test/controllers/foreman_puppet/hosts_controller_test.rb +0 -1
  97. data/test/factories/foreman_puppet_factories.rb +0 -2
  98. data/test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb +34 -0
  99. data/test/integration/foreman_puppet/dashboard_js_test.rb +31 -0
  100. data/test/integration/foreman_puppet/host_js_test.rb +0 -1
  101. data/test/integration/foreman_puppet/puppetclass_js_test.rb +1 -1
  102. data/test/models/foreman_puppet/host_test.rb +26 -0
  103. data/test/models/foreman_puppet/user_test.rb +1 -5
  104. data/test/unit/foreman_puppet/puppet_class_importer_test.rb +1 -1
  105. metadata +69 -16
  106. data/db/migrate_foreman/20180816134832_cast_lookup_key_values.rb +0 -35
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: foreman_puppet 0.0.2\n"
7
+ "Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "PO-Revision-Date: 2014-08-20 08:54+0100\n"
10
10
  "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
@@ -21,6 +21,9 @@ msgstr ""
21
21
  msgid "%s is not in environment"
22
22
  msgstr ""
23
23
 
24
+ msgid "%s out of sync disabled"
25
+ msgstr ""
26
+
24
27
  msgid "%{model} with id '%{id}' was not found"
25
28
  msgstr ""
26
29
 
@@ -66,10 +69,16 @@ msgstr ""
66
69
  msgid "Add a Puppet class to host group"
67
70
  msgstr ""
68
71
 
72
+ msgid "Add a template combination"
73
+ msgstr ""
74
+
75
+ msgid "Add:"
76
+ msgstr ""
77
+
69
78
  msgid "All environments - (not filtered)"
70
79
  msgstr ""
71
80
 
72
- msgid "Allow assigning Puppet environmets and classes to the Foreman Hosts."
81
+ msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
73
82
  msgstr ""
74
83
 
75
84
  msgid "Available Classes"
@@ -84,12 +93,33 @@ msgstr ""
84
93
  msgid "Can't find a valid Proxy with a Puppet feature"
85
94
  msgstr ""
86
95
 
96
+ msgid "Cancel"
97
+ msgstr ""
98
+
87
99
  msgid "Change Environment"
88
100
  msgstr ""
89
101
 
90
102
  msgid "Change Puppet Master"
91
103
  msgstr ""
92
104
 
105
+ msgid "Changed environments"
106
+ msgstr ""
107
+
108
+ msgid "Check/Uncheck all"
109
+ msgstr ""
110
+
111
+ msgid "Check/Uncheck all %s changes"
112
+ msgstr ""
113
+
114
+ msgid "Check/Uncheck new"
115
+ msgstr ""
116
+
117
+ msgid "Check/Uncheck obsolete"
118
+ msgstr ""
119
+
120
+ msgid "Check/Uncheck updated"
121
+ msgstr ""
122
+
93
123
  msgid "Classes"
94
124
  msgstr ""
95
125
 
@@ -105,6 +135,9 @@ msgstr ""
105
135
  msgid "Config Groups"
106
136
  msgstr ""
107
137
 
138
+ msgid "Config Management"
139
+ msgstr ""
140
+
108
141
  msgid "Create Config Group"
109
142
  msgstr ""
110
143
 
@@ -126,6 +159,9 @@ msgstr ""
126
159
  msgid "Create an override value for a specific smart class parameter"
127
160
  msgstr ""
128
161
 
162
+ msgid "Default Puppet environment"
163
+ msgstr ""
164
+
129
165
  msgid "Default value"
130
166
  msgstr ""
131
167
 
@@ -171,9 +207,18 @@ msgstr ""
171
207
  msgid "Description of smart class"
172
208
  msgstr ""
173
209
 
210
+ msgid "Disable host configuration status turning to out of sync for %s after report does not arrive within configured interval"
211
+ msgstr ""
212
+
174
213
  msgid "Display hidden values"
175
214
  msgstr ""
176
215
 
216
+ msgid "Duration in minutes after servers reporting via Puppet are classed as out of sync."
217
+ msgstr ""
218
+
219
+ msgid "ENC environment"
220
+ msgstr ""
221
+
177
222
  msgid "Edit %s"
178
223
  msgstr ""
179
224
 
@@ -195,6 +240,9 @@ msgstr ""
195
240
  msgid "Environment|Name"
196
241
  msgstr ""
197
242
 
243
+ msgid "Facts"
244
+ msgstr ""
245
+
198
246
  msgid "Failed to import %{klass} for %{name}: doesn't exists in our database - ignoring"
199
247
  msgstr ""
200
248
 
@@ -213,12 +261,21 @@ msgstr ""
213
261
  msgid "Filter classes"
214
262
  msgstr ""
215
263
 
264
+ msgid "Foreman will default to this puppet environment if it cannot auto detect one"
265
+ msgstr ""
266
+
267
+ msgid "Foreman will explicitly set the puppet environment in the ENC yaml output. This will avoid conflicts between the environment in puppet.conf and the environment set in Foreman"
268
+ msgstr ""
269
+
216
270
  msgid "Foreman will not send this parameter in classification output"
217
271
  msgstr ""
218
272
 
219
273
  msgid "Foreman will not send this parameter in classification output.Puppet will use the value defined in the Puppet manifest for this parameter"
220
274
  msgstr ""
221
275
 
276
+ msgid "Foreman will update a host's environment from its facts"
277
+ msgstr ""
278
+
222
279
  msgid "General"
223
280
  msgstr ""
224
281
 
@@ -246,6 +303,9 @@ msgstr ""
246
303
  msgid "ID of Puppet class"
247
304
  msgstr ""
248
305
 
306
+ msgid "ID of Puppet environment"
307
+ msgstr ""
308
+
249
309
  msgid "ID of Puppetclass"
250
310
  msgstr ""
251
311
 
@@ -273,9 +333,6 @@ msgstr ""
273
333
  msgid "If true, will raise an error if there is no default value and no matcher provide a value"
274
334
  msgstr ""
275
335
 
276
- msgid "If you are planning to use Foreman as an external node classifier you should provide information about one or more environments. This information is commonly imported from a pre-existing Puppet configuration by the use of the %{link_start}Puppet classes and environment importer%{link_end}."
277
- msgstr ""
278
-
279
336
  msgid "Ignored classes in the environments: %s"
280
337
  msgstr ""
281
338
 
@@ -288,6 +345,9 @@ msgstr ""
288
345
  msgid "Ignored environments: %s"
289
346
  msgstr ""
290
347
 
348
+ msgid "Ignored:"
349
+ msgstr ""
350
+
291
351
  msgid "Import"
292
352
  msgstr ""
293
353
 
@@ -324,9 +384,6 @@ msgstr ""
324
384
  msgid "Invalid proxy selected!"
325
385
  msgstr ""
326
386
 
327
- msgid "Learn more about this in the documentation."
328
- msgstr ""
329
-
330
387
  msgid "List all Puppet class IDs for host"
331
388
  msgstr ""
332
389
 
@@ -387,6 +444,9 @@ msgstr ""
387
444
  msgid "List of smart class parameters for a specific host group"
388
445
  msgstr ""
389
446
 
447
+ msgid "List template combination"
448
+ msgstr ""
449
+
390
450
  msgid "Loading parameters..."
391
451
  msgstr ""
392
452
 
@@ -399,6 +459,9 @@ msgstr ""
399
459
  msgid "Name"
400
460
  msgstr ""
401
461
 
462
+ msgid "New"
463
+ msgstr ""
464
+
402
465
  msgid "No changes to your environments detected"
403
466
  msgstr ""
404
467
 
@@ -435,6 +498,9 @@ msgstr ""
435
498
  msgid "Number of classes"
436
499
  msgstr ""
437
500
 
501
+ msgid "Obsolete"
502
+ msgstr ""
503
+
438
504
  msgid "Omit"
439
505
  msgstr ""
440
506
 
@@ -447,6 +513,9 @@ msgstr ""
447
513
  msgid "Operating system default"
448
514
  msgstr ""
449
515
 
516
+ msgid "Operation"
517
+ msgstr ""
518
+
450
519
  msgid "Optional comma-delimited stringcontaining either 'new', 'updated', or 'obsolete'that is used to limit the imported Puppet classes"
451
520
  msgstr ""
452
521
 
@@ -504,9 +573,15 @@ msgstr ""
504
573
  msgid "Puppet ENC"
505
574
  msgstr ""
506
575
 
576
+ msgid "Puppet Environment"
577
+ msgstr ""
578
+
507
579
  msgid "Puppet Environments"
508
580
  msgstr ""
509
581
 
582
+ msgid "Puppet Modules"
583
+ msgstr ""
584
+
510
585
  msgid "Puppet YAML"
511
586
  msgstr ""
512
587
 
@@ -516,6 +591,9 @@ msgstr ""
516
591
  msgid "Puppet external nodes YAML dump"
517
592
  msgstr ""
518
593
 
594
+ msgid "Puppet interval"
595
+ msgstr ""
596
+
519
597
  msgid "Puppet parameter"
520
598
  msgstr ""
521
599
 
@@ -543,12 +621,18 @@ msgstr ""
543
621
  msgid "Remove this override"
544
622
  msgstr ""
545
623
 
624
+ msgid "Remove:"
625
+ msgstr ""
626
+
546
627
  msgid "Required parameter without value.<br/><b>Please override!</b><br/>"
547
628
  msgstr ""
548
629
 
549
630
  msgid "Select environment"
550
631
  msgstr ""
551
632
 
633
+ msgid "Select the changes you want to apply to Foreman"
634
+ msgstr ""
635
+
552
636
  msgid "Set parameters to defaults"
553
637
  msgstr ""
554
638
 
@@ -576,6 +660,9 @@ msgstr ""
576
660
  msgid "Show an override value for a specific smart class parameter"
577
661
  msgstr ""
578
662
 
663
+ msgid "Show template combination"
664
+ msgstr ""
665
+
579
666
  msgid "Smart Class Parameter"
580
667
  msgstr ""
581
668
 
@@ -614,6 +701,9 @@ msgstr ""
614
701
  msgid "The order in which values are resolved"
615
702
  msgstr ""
616
703
 
704
+ msgid "The requested environment cannot be found."
705
+ msgstr ""
706
+
617
707
  msgid "There are no puppet environments set up on this puppet master. Please check the puppet master configuration."
618
708
  msgstr ""
619
709
 
@@ -629,6 +719,9 @@ msgstr ""
629
719
  msgid "To update the class signature, go to the Puppet Classes page and select \"Import\"."
630
720
  msgstr ""
631
721
 
722
+ msgid "Toggle"
723
+ msgstr ""
724
+
632
725
  msgid "Total"
633
726
  msgstr ""
634
727
 
@@ -641,6 +734,9 @@ msgstr ""
641
734
  msgid "Unable to generate output, Check log files"
642
735
  msgstr ""
643
736
 
737
+ msgid "Update"
738
+ msgstr ""
739
+
644
740
  msgid "Update a Puppet class"
645
741
  msgstr ""
646
742
 
@@ -656,6 +752,18 @@ msgstr ""
656
752
  msgid "Update an override value for a specific smart class parameter"
657
753
  msgstr ""
658
754
 
755
+ msgid "Update environment from facts"
756
+ msgstr ""
757
+
758
+ msgid "Update template combination"
759
+ msgstr ""
760
+
761
+ msgid "Update:"
762
+ msgstr ""
763
+
764
+ msgid "Updated"
765
+ msgstr ""
766
+
659
767
  msgid "Updated hosts: changed environment"
660
768
  msgstr ""
661
769
 
@@ -692,6 +800,9 @@ msgstr ""
692
800
  msgid "belongs to config group"
693
801
  msgstr ""
694
802
 
803
+ msgid "environment id"
804
+ msgstr ""
805
+
695
806
  msgid "included already from parent"
696
807
  msgstr ""
697
808