summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hostgroup.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-08-24 23:40:32 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-27 13:31:04 -0400
commit4b6b710ba6ce75ffcb9ced43acee0d55adb6163c (patch)
tree021fc409342115f1a5cbc1978ee5f67069934c4f /ipalib/plugins/hostgroup.py
parentea76d8c59af338f6a79ec87d7a931d2c8643e747 (diff)
downloadfreeipa-4b6b710ba6ce75ffcb9ced43acee0d55adb6163c.tar.gz
freeipa-4b6b710ba6ce75ffcb9ced43acee0d55adb6163c.tar.xz
freeipa-4b6b710ba6ce75ffcb9ced43acee0d55adb6163c.zip
Update command documentation based on feedback from docs team.
ticket #158
Diffstat (limited to 'ipalib/plugins/hostgroup.py')
-rw-r--r--ipalib/plugins/hostgroup.py32
1 files changed, 19 insertions, 13 deletions
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index ff97a1394..2f9cbab2c 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -20,24 +20,30 @@
"""
Groups of hosts.
-This is useful for Host-Based Access Control (HBAC) to group a series
-of hosts together for applying access control.
+Manage groups of hosts. This is useful for applying access control to a
+number of hosts by using Host-based Access Control.
EXAMPLES:
- Create a new host group:
- ipa hostgroup-add --desc='Baltimore hosts' baltimore
+ Add a new host group:
+ ipa hostgroup-add --desc="Baltimore hosts" baltimore
- Add some hosts to the group:
+ Add another new host group:
+ ipa hostgroup-add --desc="Maryland hosts" maryland
+
+ Add members to the hostgroup:
ipa hostgroup-add-member --hosts=box1,box2,box3 baltimore
- Remove a host from the group:
+ Add a hostgroup as a member of another hostgroup:
+ ipa hostgroup-add-member --hostgroups=baltimore maryland
+
+ Remove a host from the hostgroup:
ipa hostgroup-remove-member --hosts=box2 baltimore
Display a host group:
ipa hostgroup-show baltimore
- Removey a host group:
+ Delete a hostgroup:
ipa hostgroup-del baltimore
"""
@@ -94,7 +100,7 @@ api.register(hostgroup)
class hostgroup_add(LDAPCreate):
"""
- Create new hostgroup.
+ Add a new hostgroup.
"""
msg_summary = _('Added hostgroup "%(value)s"')
@@ -104,7 +110,7 @@ api.register(hostgroup_add)
class hostgroup_del(LDAPDelete):
"""
- Delete hostgroup.
+ Delete a hostgroup.
"""
msg_summary = _('Deleted hostgroup "%(value)s"')
@@ -114,7 +120,7 @@ api.register(hostgroup_del)
class hostgroup_mod(LDAPUpdate):
"""
- Modify hostgroup.
+ Modify a hostgroup.
"""
msg_summary = _('Modified hostgroup "%(value)s"')
@@ -136,7 +142,7 @@ api.register(hostgroup_find)
class hostgroup_show(LDAPRetrieve):
"""
- Display hostgroup.
+ Display information about a hostgroup.
"""
api.register(hostgroup_show)
@@ -144,7 +150,7 @@ api.register(hostgroup_show)
class hostgroup_add_member(LDAPAddMember):
"""
- Add members to hostgroup.
+ Add members to a hostgroup.
"""
api.register(hostgroup_add_member)
@@ -152,7 +158,7 @@ api.register(hostgroup_add_member)
class hostgroup_remove_member(LDAPRemoveMember):
"""
- Remove members from hostgroup.
+ Remove members from a hostgroup.
"""
api.register(hostgroup_remove_member)