Register a Red Hat system

For a full list of keys, refer to the Red Hat subscription module schema.

Example 1

1#cloud-config
2rh_subscription:
3  username: [email protected]
4  ## Quote your password if it has symbols to be safe
5  password: '1234abcd'

Example 2

1#cloud-config
2rh_subscription:
3  activation-key: foobar
4  org: "ABC"

Example 3

 1#cloud-config
 2rh_subscription:
 3  activation-key: foobar
 4  org: 12345
 5  auto-attach: true
 6  service-level: self-support
 7  add-pool:
 8    - 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a
 9    - 2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b
10  enable-repo:
11    - repo-id-to-enable
12    - other-repo-id-to-enable
13  disable-repo:
14    - repo-id-to-disable
15    - other-repo-id-to-disable
16  # Alter the baseurl in /etc/rhsm/rhsm.conf
17  rhsm-baseurl: http://url
18  # Alter the server hostname in /etc/rhsm/rhsm.conf
19  server-hostname: foo.bar.com