-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provisioning support #295
Provisioning support #295
Changes from 1 commit
acbaf30
225e3f3
d3a1111
65d0ed0
ddf19b8
c5f3823
69a8a20
eeaf019
6d208a5
20549a3
3cbab50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Katello provisioning setup | ||
|
||
A role is included which will configure an all-on-one provisioning environment | ||
with Katello. It uses nested libvirt to make your virtual machine a hypervisor | ||
capable of running it's own VM's. It also sets up a private NAT network on the | ||
host. | ||
|
||
## How to configure | ||
|
||
1. Enable nested virt on your phyiscal box. See http://www.rdoxenham.com/?p=275 | ||
comments for more details. Essentially, add this line to kvm-intel.conf and | ||
reboot: | ||
|
||
echo "options kvm-intel nested=1" | sudo tee /etc/modprobe.d/kvm-intel.conf | ||
|
||
2. Build a box | ||
|
||
- Option 1: Use the `centos7-provisioning-nightly` box. | ||
|
||
- Option 2: Use an existing katello box (e.g. centos7-katello-p4-nightly) and run the provisioning playbook (it takes a while, as it syncs (on-demand) centos7, puppet 4). ***Note*: If you are using puppet 4, you need to increase the ram on the box, to something like 8096 otherwise candlepin crashes with OOM.** | ||
`ansible-playbook -l centos7-katello-p4-nightly playbooks/katello_provisioning.yml` | ||
|
||
4. Login and create a compute profile, because this isn't possible with hammer or the API. | ||
|
||
- Click Infrastructure / Compute Resources | ||
- Click "libvirt" | ||
- Click Compute profiles | ||
- Click 2-Medium | ||
- increse ram to 1024MB (required for centos 7) | ||
- change network type to NAT, network name = provision | ||
- Click Submit | ||
|
||
5. Configure Activation Key | ||
|
||
- Content/ Activation Keys | ||
- Assign all available subscriptions to the activation key | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We in theory should be able to do this with the API or hammer (not requiring it). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is possible, but it's a mess of grepping and fact registration, since you need the UUID. I can save it for a future enhancement... |
||
|
||
6. Configure / Host groups | ||
|
||
- Edit Forklift CentOS 7 | ||
- Set Compute profile to be "2-Medium" | ||
- Assign the `CentOS 7` activation key to the host group | ||
|
||
7. You're good to go! Let's provision a box! | ||
|
||
- Click Hosts/ New Host | ||
- Fill in: | ||
- org, location, host group | ||
- deploy on = libvirt | ||
|
||
DONE! Click submit :tada: | ||
|
||
7. If you want to view the console while it boots, make sure to trust the CA certificate in your browser, it's hosted at https://centos7-katello-nightly.example.com/pub/katello-server-ca.crt, and you'll need to make sure you're accessing the katello via it's proper hostname (add an entry to /etc/hosts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could turn the link into something clickable with markdown using
[]()
syntaxEDIT: Ignore me, it does that already if the link is used.