hammer_cli_foreman 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of hammer_cli_foreman might be problematic. Click here for more details.

Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/doc/host_create.md +10 -0
  3. data/doc/release_notes.md +9 -0
  4. data/lib/hammer_cli_foreman/associating_commands.rb +8 -8
  5. data/lib/hammer_cli_foreman/host.rb +1 -1
  6. data/lib/hammer_cli_foreman/hostgroup.rb +10 -0
  7. data/lib/hammer_cli_foreman/smart_class_parameter.rb +1 -0
  8. data/lib/hammer_cli_foreman/smart_variable.rb +1 -0
  9. data/lib/hammer_cli_foreman/version.rb +1 -1
  10. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  11. data/locale/de/hammer-cli-foreman.edit.po +127 -70
  12. data/locale/de/hammer-cli-foreman.po +3 -3
  13. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  14. data/locale/en/hammer-cli-foreman.edit.po +97 -49
  15. data/locale/en/hammer-cli-foreman.po +37 -1
  16. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  17. data/locale/en_GB/hammer-cli-foreman.edit.po +120 -69
  18. data/locale/en_GB/hammer-cli-foreman.po +8 -8
  19. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  20. data/locale/es/hammer-cli-foreman.edit.po +106 -50
  21. data/locale/es/hammer-cli-foreman.po +3 -3
  22. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  23. data/locale/fr/hammer-cli-foreman.edit.po +106 -50
  24. data/locale/fr/hammer-cli-foreman.po +2 -2
  25. data/locale/hammer-cli-foreman.pot +111 -62
  26. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  27. data/locale/it/hammer-cli-foreman.edit.po +107 -51
  28. data/locale/it/hammer-cli-foreman.po +6 -6
  29. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  30. data/locale/ja/hammer-cli-foreman.edit.po +106 -50
  31. data/locale/ja/hammer-cli-foreman.po +3 -3
  32. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  33. data/locale/ko/hammer-cli-foreman.edit.po +106 -50
  34. data/locale/ko/hammer-cli-foreman.po +6 -6
  35. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  36. data/locale/pt_BR/hammer-cli-foreman.edit.po +106 -50
  37. data/locale/pt_BR/hammer-cli-foreman.po +31 -30
  38. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  39. data/locale/ru/hammer-cli-foreman.edit.po +198 -140
  40. data/locale/ru/hammer-cli-foreman.po +3 -3
  41. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  42. data/locale/zh_CN/hammer-cli-foreman.edit.po +106 -50
  43. data/locale/zh_CN/hammer-cli-foreman.po +6 -6
  44. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  45. data/locale/zh_TW/hammer-cli-foreman.edit.po +106 -50
  46. data/locale/zh_TW/hammer-cli-foreman.po +6 -6
  47. data/test/unit/hostgroup_test.rb +2 -2
  48. metadata +4 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08aefb712db29b91623d22e401287fa27e3e3f0e
4
- data.tar.gz: bfaf0c75a8060cd2005f5ca6168fb393c323c959
3
+ metadata.gz: ee543dac02c656e65986c6ee749715e063421a34
4
+ data.tar.gz: 61ce4eac9d70431ffdcddce15bc11c508c587298
5
5
  SHA512:
6
- metadata.gz: d2ee27634d9ddd7107651fab6cb96e8db3057f10f1055cc60429a5357ab9215e1d4937033a2e68b1e9657dcd29b9cd15f5eb145fed98738e1b7a4374d42ac9f8
7
- data.tar.gz: 4bfa4ce631e90cbe1166afb917fe0a26aa4b6004577f5d86f3f8caee3baee18cc772fb5110ef55a56761a1344886b58504ca38052a1bc009b028ef3aae57beab
6
+ metadata.gz: e1445bbbb84e20c1713b394e8d5e6f4e58ef9434ff165cec79188dbf9c1264d030f6d6201940f35e08f399c6a7e492c99d8806e7e463516e6bd08be93d4e05ef
7
+ data.tar.gz: 0d1b5dccedb96c4dab684c19701e8a5603f44ef5d03a7950ebd0dea1a3a79edde66982415951467cac20c321f32462f764d7b42046e7d38db2cff66c654f3d3a
data/doc/host_create.md CHANGED
@@ -232,6 +232,16 @@ path
232
232
 
233
233
  Available keys for `--interface`:
234
234
  ```
235
+ compute_type # Type of the network adapter, for example one of:
236
+ # VirtualVmxnet
237
+ # VirtualVmxnet2
238
+ # VirtualVmxnet3
239
+ # VirtualE1000
240
+ # VirtualE1000e
241
+ # VirtualPCNet32
242
+ # See documentation center for your version of vSphere to find
243
+ # more details about available adapter types:
244
+ # https://www.vmware.com/support/pubs/
235
245
  compute_network
236
246
  ```
237
247
 
data/doc/release_notes.md CHANGED
@@ -1,6 +1,15 @@
1
1
  Release notes
2
2
  =============
3
3
 
4
+ ### 0.4.0 (2015-09-21)
5
+ * Adding match_default to smart variables and smart class parameters ([#10731](http://projects.theforeman.org/issues/10731))
6
+ * Missing field for VMWare host creation docs ([#11088](http://projects.theforeman.org/issues/11088))
7
+ * Delete direct dependencies (refs [#11452](http://projects.theforeman.org/issues/11452))
8
+ * Messages in associating commands weren't translated ([#7236](http://projects.theforeman.org/issues/7236))
9
+ * Add root_pass option ([#11236](http://projects.theforeman.org/issues/11236))
10
+ * Drop Ruby 1.8 support (refs [#11280](http://projects.theforeman.org/issues/11280))
11
+
12
+
4
13
  ### 0.3.0 (2015-07-29)
5
14
  * Add normalizer converting id parameter values to numbers ([#11137](http://projects.theforeman.org/issues/11137))
6
15
  * Docs - updated information about host creation
@@ -146,16 +146,16 @@ module HammerCLIForeman
146
146
  associated_resource :users
147
147
  desc _("Associate an user")
148
148
 
149
- success_message "The user has been associated"
150
- failure_message "Could not associate the user"
149
+ success_message _("The user has been associated")
150
+ failure_message _("Could not associate the user")
151
151
  end
152
152
 
153
153
  class RemoveUserCommand < HammerCLIForeman::RemoveAssociatedCommand
154
154
  associated_resource :users
155
155
  desc _("Disassociate an user")
156
156
 
157
- success_message "The user has been disassociated"
158
- failure_message "Could not disassociate the user"
157
+ success_message _("The user has been disassociated")
158
+ failure_message _("Could not disassociate the user")
159
159
  end
160
160
  end
161
161
 
@@ -168,8 +168,8 @@ module HammerCLIForeman
168
168
 
169
169
  command_name 'add-user-group'
170
170
 
171
- success_message "The user group has been associated"
172
- failure_message "Could not associate the user group"
171
+ success_message _("The user group has been associated")
172
+ failure_message _("Could not associate the user group")
173
173
  end
174
174
 
175
175
  class RemoveUsergroupCommand < HammerCLIForeman::RemoveAssociatedCommand
@@ -178,8 +178,8 @@ module HammerCLIForeman
178
178
 
179
179
  command_name 'remove-user-group'
180
180
 
181
- success_message "The user group has been disassociated"
182
- failure_message "Could not disassociate the user group"
181
+ success_message _("The user group has been disassociated")
182
+ failure_message _("Could not disassociate the user group")
183
183
  end
184
184
  end
185
185
 
@@ -59,7 +59,7 @@ module HammerCLIForeman
59
59
  end
60
60
 
61
61
  def self.ask_password
62
- prompt = "Enter the root password for the host: "
62
+ prompt = _("Enter the root password for the host:") + " "
63
63
  ask(prompt) {|q| q.echo = false}
64
64
  end
65
65
 
@@ -14,6 +14,14 @@ module HammerCLIForeman
14
14
  base.option "--parent", "PARENT_NAME", _("Name of parent hostgroup")
15
15
  base.option "--puppet-classes", "PUPPET_CLASS_NAMES", "",
16
16
  :format => HammerCLI::Options::Normalizers::List.new
17
+ base.option "--root-pass", "ROOT_PASSWORD", _("Root password")
18
+ base.option "--ask-root-pass", "ASK_ROOT_PW", "",
19
+ :format => HammerCLI::Options::Normalizers::Bool.new
20
+ end
21
+
22
+ def self.ask_password
23
+ prompt = _("Enter the root password for the host group:") + " "
24
+ ask(prompt) {|q| q.echo = false}
17
25
  end
18
26
 
19
27
  def request_params
@@ -22,6 +30,8 @@ module HammerCLIForeman
22
30
  params['hostgroup']["puppet_proxy_id"] ||= proxy_id(option_puppet_proxy)
23
31
  params['hostgroup']["puppet_ca_proxy_id"] ||= proxy_id(option_puppet_ca_proxy)
24
32
  params['hostgroup']['puppetclass_ids'] = option_puppet_class_ids || puppet_class_ids(option_puppet_classes)
33
+ params['hostgroup']['root_pass'] = option_root_pass if option_root_pass
34
+ params['hostgroup']['root_pass'] = HammerCLIForeman::HostgroupUpdateCreateCommons::ask_password if option_ask_root_pass
25
35
  params
26
36
  end
27
37
 
@@ -68,6 +68,7 @@ module HammerCLIForeman
68
68
  end
69
69
  label _("Override values") do
70
70
  field :merge_overrides, _("Merge overrides"), Fields::Boolean
71
+ field :merge_default, _("Merge default value"), Fields::Boolean
71
72
  field :avoid_duplicates, _("Avoid duplicates"), Fields::Boolean
72
73
  field :override_value_order, _("Order"), Fields::List
73
74
  collection :override_values, _("Values") do
@@ -56,6 +56,7 @@ module HammerCLIForeman
56
56
  end
57
57
  label _("Override values") do
58
58
  field :merge_overrides, _("Merge overrides"), Fields::Boolean
59
+ field :merge_default, _("Merge default value"), Fields::Boolean
59
60
  field :avoid_duplicates, _("Avoid duplicates"), Fields::Boolean
60
61
  field :override_value_order, _("Order"), Fields::List
61
62
  collection :override_values, _("Values") do
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForeman
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.3.0'
3
+ @version ||= Gem::Version.new '0.4.0'
4
4
  end
5
5
  end