Create Organization and Location

  1. On the top left, hover over the "Any Context" tab and select "Manage Organizations".
  2. Select "Default Organization", rename it and submit the changes.
  3. Select the drop-down next "Edit" on the organization you made and select "Assign the 1 host with no organization to [organization]"
  4. Hover over the box that has your organization in the top left and select "Manage locations"
  5. Edit the location and submit the changes.
  6. Select the drop-down next "Edit" on the location created select "Assign the 1 host with no location to [location]."

Create Lifecycle Environments

  1. The first step is to create a lifecycle environment for provisioned machines, the first one created will be production.
  2. Under the "Content" dropdown, select "Lifecycle Environments"
  3. Select "Create environment path" to create a new path.
  4. Name the path "Production", the label will be automatically generated. Give the path a short description if you wish.

Import GPG Keys

  1. Next, we will import GPG keys in order to allow yum installations during the provisioning process.
  2. Under "Content" go to "GPG Keys" and select "Create GPG Key"
  3. Name the GPG key "CentOS_7_GPG" and paste the contents from the following link into the block.
    1. http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
  4. Repead steps 2 and 3 with the following link to apply the EPEL GPG key.
    1. https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7

Adding Content and Repositories

  1. Under the "Content" tab, select "Products" and then select "Create Product"
  2. Name the product "CentOS_7" and select the CentOS 7 GPG key created earlier.
  3. Under the Repositories tab under the product created, select "New Repository".
  4. Name the repository "OS_x86_64" and for the "type" choose "yum".
  5. Use the following URL where it asks for the URL http://mirror.centos.org/centos-7/7/os/x86_64/.
  6. Choose "Immediate" under the "Download Policy" option and then select the CentOS 7 GPG key created earlier.
  7. Repeat steps 3-6 with the "Extras", "Updates", and "EPEL" repos which are the following links.
    1. http://mirror.centos.org/centos-7/7/extras/x86_64/
    2. http://mirror.centos.org/centos-7/7/updates/x86_64/
    3. https://dl.fedoraproject.org/pub/epel/7/x86_64/
  8. Select the repositories added to the product and select "Sync Now", this step may take awhile.

Creating Content View (CV)

  1. In order to create a content view, head over to "Content View" under the "Content" tab.
  2. Select "Create New View" and name it CentOS.
  3. Under the new Content View, go to the "Yum Content" tab and select "Add".
  4. Select the repositories you wish to add to this content view and select "Add repositories".
  5. Select "Publish New Version", give it a short description, and then save it.
  6. Select "Promote" then select the environment you wish this content view to be placed under and then select "Promote Version"

Creating an Activation Key

  1. An activation key is what allows provisioned hosts to update their repositories list to the local ones created in foreman.
  2. Once the content view is created, head over to "Activation Keys" under the "Content" tab.
  3. Select "Create Activation Key"
  4. Give the activation key a name and place it in the environment you wish, select the content view you wish to associate with this activation key and select save.
  5. Once the activation key is created, select the subscriptions tab and select "Add".
  6. Add the repositories you with to use with this activation key and and select "Add Selected" to confirm.

Configure Smart proxies

  1. On the web console, select "Smart Proxies" under the "Infrastructure" tab.
  2. Select the dropdown on the right of the host and select "Autosign"
  3. Select "New: and enter the following to automatically sign every host requesting to be signed under your domain.
    1. *.domain.com