services:cobbler
This is an old revision of the document!
Table of Contents
WIP - Cobbler
Summary
Cobbler is used to reimage testnodes in the lab. The Cobbler host is cobbler.front.sepia.ceph.com and is managed by Ansible. It's a VM in RHEV.
Access the Web UI at https://cobbler.front.sepia.ceph.com/cobbler_web/
Reimaging/Reinstalling a host
See testnodereimage
Creating a new user for Web UI access
- Generate a random password (
mkpasswd -l 12) - Generate the hashed password (
htdigest -c /tmp/users.digest “Cobbler” $username)- Paste the generated password when prompted
- Create a new branch named
wip-usernamein the secrets repo - Paste the output of
cat /tmp/users.digestinto a new line inansible/inventory/group_vars/cobbler.ymlunderusers_digest_lines - git commit, git push the branch, and create a PR
# Example $ mkpasswd -l 12 b39feiiSiuQ% $ htdigest -c /tmp/users.digest "Cobbler" bob Adding password for bob in realm Cobbler. New password: Re-type new password: $ cat /tmp/users.digest bob:Cobbler:027abc2039e7495f72128d9c3c628686 # Add the user to the cobbler.yml secrets group_vars file dgalloway@w541 ceph-sepia-secrets (wip-bob)$ git diff diff --git a/ansible/inventory/group_vars/cobbler.yml b/ansible/inventory/group_vars/cobbler.yml index 758427a..6968689 100644 --- a/ansible/inventory/group_vars/cobbler.yml +++ b/ansible/inventory/group_vars/cobbler.yml @@ -15,6 +15,7 @@ users_digest_lines: - "yuriw:Cobbler:XXXXX" - "vasu:Cobbler:XXXXX" - "dmick:Cobbler:XXXXX" + - "bob:Cobbler:027abc2039e7495f72128d9c3c628686"
Adding a new Distro
- Create an entry for the new distro in ceph-cm-ansible's root
cobbler.yml- If the distro's ISO is not publicly accessible (e.g., RHEL/inktank-rescue),
- Add a dummy entry (Distro name and blank iso var) to
roles/cobbler_profile/defaults/main.yml - Add to
ansible/inventory/group_vars/cobbler.ymlin the secrets repo
- Else if the distro's ISO is public (e.g., CentOS/Ubuntu), just add the iso path, sha256, etc. to
roles/cobbler_profile/defaults/main.yml
- Run
ansible-playbook cobbler.yml --tags="$NEW_PROFILE_TAG"where $NEW_PROFILE_TAG is the tag created in Step 1 - In cobbler web UI, go to Profiles
- Click Create New Sub-profile
- Name it
$NEW_DISTRO_NAME-stock - Set Parent Profile to
$NEW_DISTRO_NAME - Save
services/cobbler.1475604114.txt.gz · Last modified: by dgalloway
