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.
- checksums.yaml +4 -4
- data/doc/host_create.md +10 -0
- data/doc/release_notes.md +9 -0
- data/lib/hammer_cli_foreman/associating_commands.rb +8 -8
- data/lib/hammer_cli_foreman/host.rb +1 -1
- data/lib/hammer_cli_foreman/hostgroup.rb +10 -0
- data/lib/hammer_cli_foreman/smart_class_parameter.rb +1 -0
- data/lib/hammer_cli_foreman/smart_variable.rb +1 -0
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/hammer-cli-foreman.edit.po +127 -70
- data/locale/de/hammer-cli-foreman.po +3 -3
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/hammer-cli-foreman.edit.po +97 -49
- data/locale/en/hammer-cli-foreman.po +37 -1
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/hammer-cli-foreman.edit.po +120 -69
- data/locale/en_GB/hammer-cli-foreman.po +8 -8
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/hammer-cli-foreman.edit.po +106 -50
- data/locale/es/hammer-cli-foreman.po +3 -3
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/hammer-cli-foreman.edit.po +106 -50
- data/locale/fr/hammer-cli-foreman.po +2 -2
- data/locale/hammer-cli-foreman.pot +111 -62
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/hammer-cli-foreman.edit.po +107 -51
- data/locale/it/hammer-cli-foreman.po +6 -6
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/hammer-cli-foreman.edit.po +106 -50
- data/locale/ja/hammer-cli-foreman.po +3 -3
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/hammer-cli-foreman.edit.po +106 -50
- data/locale/ko/hammer-cli-foreman.po +6 -6
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/hammer-cli-foreman.edit.po +106 -50
- data/locale/pt_BR/hammer-cli-foreman.po +31 -30
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/hammer-cli-foreman.edit.po +198 -140
- data/locale/ru/hammer-cli-foreman.po +3 -3
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/hammer-cli-foreman.edit.po +106 -50
- data/locale/zh_CN/hammer-cli-foreman.po +6 -6
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/hammer-cli-foreman.edit.po +106 -50
- data/locale/zh_TW/hammer-cli-foreman.po +6 -6
- data/test/unit/hostgroup_test.rb +2 -2
- metadata +4 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee543dac02c656e65986c6ee749715e063421a34
|
4
|
+
data.tar.gz: 61ce4eac9d70431ffdcddce15bc11c508c587298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|
Binary file
|