Chapter 3. Associating Objects with the Default Organization and Location
3.1. Creating a New Domain
For Web UI Users
Navigate to Infrastructure → Domains and click New Domain. The UI provides a set of fields where you can input details for the domain:
In the Domain tab:
-
Name - The domain name. In this example, this is "
example.com". -
Description - A plain text description of the domain. For this example:
ACME’s example domain. - DNS Capsule - The capsule to use for DNS assignments. For this example, use the Satellite Server’s Integrated Capsule.
-
Name - The domain name. In this example, this is "
In the Locations tab:
-
Select the locations that use this domain. For example, select the
New Yorklocation.
-
Select the locations that use this domain. For example, select the
In the Organizations tab:
-
Select the organizations that use this domain. For example, select
ACME.
-
Select the organizations that use this domain. For example, select
For CLI Users
Create the domain with the following command:
# hammer domain create --name "example.com" \ --description "ACME's example domain" \ --dns_id 1 --locations "New York" \ --organizations "ACME"
In this example, the --dns-id option uses 1, which is the ID of the Satellite Server’s Integrated Capsule.
3.2. Associating the Domain with the Default Organization
Associating the Domain with the Default Organization Using the Web UI
- On the Main Menu, click Infrastructure → Domains.
- Select the domain in the Description column.
- On the Locations tab, click Default_Location to add it to the Selected items list.
- On the Organizations tab, click Default_Organization to add it to the Selected items list.
- Click Submit.
Associating the Domain with the Default Organization Using Hammer ClI
Associate the domain to your organization.
$ hammer organization add-domain --name $ORG --domain domain_name
Associate the domain to your location.
$ hammer location add-domain --name $LOCATION --domain domain-name
3.3. Configuring the Subnet
Configuring the Subnet Using the Web UI
- On the Main Menu, click Infrastructure → Subnets.
Click New Subnet and enter the information specific to your environment.
If you use DHCP, enter the following information:
- Name: Provisioning_Net
- Network address: 172.17.13.0
- Network mask: 255.255.255.0
- Gateway Address: 172.17.13.1
- Primary DNS Server: 172.17.13.2
- Secondary DNS Server: Leave blank
- IPAM: None
- Start of IP Range: 172.17.13.100
- End of IP Range: 172.17.13.150
- VLAN ID: Leave blank
- Boot Mode: DHCP
If you use static IP addresses, enter the following information:
- Name: Provisioning_Net
- Network address: 172.17.13.0
- Network mask: 255.255.255.0
- Gateway Address: 172.17.13.1
- Primary DNS Server: 172.17.13.2
- Secondary DNS Server: Leave blank
- IPAM: None
- Start of IP Range: 172.17.13.100
- End of IP Range: 172.17.13.150
- VLAN ID: Leave blank
- Boot Mode: Static
- Click Submit.
- Click Provisioning_Net to edit the subnet.
- On the Domains tab, select example.org.
- On the Capsules tab, change the TFTP and Discovery Proxy capsule to reflect the host name of the Satellite Server.
- On the Locations tab, select Default_Location under All items to associate the domain with the default location.
- On the Organizations tab, select Default_Organization under All items to associate the domain with the default organization.
Configuring the Subnet Using Hammer CLI
Create a subnet.
Create a subnet using DHCP.
# hammer subnet create --name Provisioning_Net \ --organizations 'RedHat' \ --locations 'RDU' \ --domain-ids 1 \ --boot-mode DHCP \ --network 172.17.13.0 \ --mask 255.255.255.0 \ --ipam None \ --dns-primary 172.17.13.1 \ --gateway 172.17.13.1 \ --from 172.17.13.100 \ --to 172.17.13.150 \ --tftp-id 1
Create a subnet using static IP addresses.
# hammer subnet create --name Provisioning_Net \ --organizations 'RedHat' \ --locations 'RDU' \ --domain-ids 1 \ --boot-mode Static \ --network 172.17.13.0 \ --mask 255.255.255.0 \ --ipam None \ --dns-primary 172.17.13.1 \ --gateway 172.17.13.1 \ --from 172.17.13.100 \ --to 172.17.13.150 \ --tftp-id 1
NoteYou cannot set the discovery proxy using Hammer CLI.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.