Bug 1328056

Summary: [RFE] Ability to add/update realm using hammer
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NEXTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.1.8CC: bkearney, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 16:41:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ranjan Kumar 2016-04-18 10:26:43 UTC
Description of problem: There is no hammer command to add/update realm.

Description of problem:
1. Who is the customer behind the request?  
Account: name and acct # Unacle B.V 1370669
  
TAM customer: no  
SRM customer: no  
Strategic: no  
  
2. What is the nature and description of the request?  
-->
Ability to add/update realm using hammer.
Currently there is no option to add/update realm using hammer
  
3. Why does the customer need this? (List the business requirements here)  
-->
It will be bit easy to customer to add realm using console
  
4. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
-->
No
  
5. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
-->
Not specific
  
6. Is the sales team involved in this request and do they have any additional input?  
-->
No
  
7. Would the customer be able to assist in testing this functionality if implemented?
-->
Probably yes.

Comment 1 Bryan Kearney 2017-08-10 16:41:54 UTC
I show this command as existing in the satellite 6.3 code base. I am thereore closing this out as NEXTRELEASE.

[vagrant@sat63-qa-rhel7 ~]$ hammer realm --help
Usage:
    hammer realm [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create a realm
 delete                        Delete a realm
 info                          Show a realm
 list                          List of realms
 update                        Update a realm

Options:
 -h, --help                    print help

[vagrant@sat63-qa-rhel7 ~]$ hammer realm update --help
Usage:
    hammer realm update [OPTIONS]

Options:
 --id ID                              
 --location-ids LOCATION_IDS         REPLACE locations with given ids
                                     Comma separated list of values. Values containing comma should be double quoted
 --locations LOCATION_NAMES          Comma separated list of values. Values containing comma should be double quoted
 --name NAME                         Name to search by
 --new-name NEW_NAME                 The realm name, e.g. EXAMPLE.COM
 --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.
                                     Comma separated list of values. Values containing comma should be double quoted
 --organizations ORGANIZATION_NAMES  Comma separated list of values. Values containing comma should be double quoted
 --realm-proxy-id REALM_PROXY_ID     Capsule ID to use within this realm
 --realm-type REALM_TYPE             Realm type, e.g. Red Hat Identity Management or Active Directory
 -h, --help                          print help
[vagrant@sat63-qa-rhel7 ~]$