Create Organization and Location
Create Organization and Location
- On the top left, hover over the "Any Context" tab and select "Manage Organizations".
- Select "Default Organization", rename it and submit the changes.
- Select the drop-down next "Edit" on the organization you made and select "Assign the 1 host with no organization to [organization]"
- Hover over the box that has your organization in the top left and select "Manage locations"
- Edit the location and submit the changes.
- Select the drop-down next "Edit" on the location created select "Assign the 1 host with no location to [location]."
Create Lifecycle Environments
Create Lifecycle Environments
- The first step is to create a lifecycle environment for provisioned machines, the first one created will be production.
- Under the "Content" dropdown, select "Lifecycle Environments"
- Select "Create environment path" to create a new path.
- Name the path "Production", the label will be automatically generated. Give the path a short description if you wish.
Import GPG Keys
Import GPG Keys
- Next, we will import GPG keys in order to allow yum installations during the provisioning process.
- Under "Content" go to "GPG Keys" and select "Create GPG Key"
- Name the GPG key "CentOS_7_GPG" and paste the contents from the following link into the block.
- Repead steps 2 and 3 with the following link to apply the EPEL GPG key.
Adding Content and Repositories
Adding Content and Repositories
- Under the "Content" tab, select "Products" and then select "Create Product"
- Name the product "CentOS_7" and select the CentOS 7 GPG key created earlier.
- Under the Repositories tab under the product created, select "New Repository".
- Name the repository "OS_x86_64" and for the "type" choose "yum".
- Use the following URL where it asks for the URL http://mirror.centos.org/centos-7/7/os/x86_64/.
- Choose "Immediate" under the "Download Policy" option and then select the CentOS 7 GPG key created earlier.
- Repeat steps 3-6 with the "Extras", "Updates", and "EPEL" repos which are the following links.
- Select the repositories added to the product and select "Sync Now", this step may take awhile.
Creating Content View (CV)
Creating Content View (CV)
- In order to create a content view, head over to "Content View" under the "Content" tab.
- Select "Create New View" and name it CentOS.
- Under the new Content View, go to the "Yum Content" tab and select "Add".
- Select the repositories you wish to add to this content view and select "Add repositories".
- Select "Publish New Version", give it a short description, and then save it.
- Select "Promote" then select the environment you wish this content view to be placed under and then select "Promote Version"
Creating an Activation Key
Creating an Activation Key
- An activation key is what allows provisioned hosts to update their repositories list to the local ones created in foreman.
- Once the content view is created, head over to "Activation Keys" under the "Content" tab.
- Select "Create Activation Key"
- 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.
- Once the activation key is created, select the subscriptions tab and select "Add".
- Add the repositories you with to use with this activation key and and select "Add Selected" to confirm.
Configure Smart proxies
Configure Smart proxies
- On the web console, select "Smart Proxies" under the "Infrastructure" tab.
- Select the dropdown on the right of the host and select "Autosign"
- Select "New: and enter the following to automatically sign every host requesting to be signed under your domain.
- *.domain.com