services:cobbler
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:cobbler [2016/10/04 17:57] – [Adding a new Distro] dgalloway | services:cobbler [2022/11/22 11:49] (current) – akraitman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Cobbler ====== |
| ===== Summary ===== | ===== Summary ===== | ||
| - | [[https:// | + | [[https:// |
| Access the Web UI at https:// | Access the Web UI at https:// | ||
| Line 9: | Line 9: | ||
| ===== Creating a new user for Web UI access ===== | ===== Creating a new user for Web UI access ===== | ||
| - | - Generate a random password ('' | + | - In the '' |
| - | - Generate the hashed password ('' | + | - Create a new branch named '' |
| - | - Paste the generated password when prompted | + | - Paste the output |
| - | - Create a new branch named '' | + | - git commit, git push the branch, and create a Pull Request |
| - | - Paste the output | + | - '' |
| - | - git commit, git push the branch, and create a PR | + | |
| < | < | ||
| # Example | # Example | ||
| - | $ mkpasswd | + | $ ~/ |
| - | b39feiiSiuQ% | + | Enter username: bob |
| - | $ htdigest | + | ------ String |
| - | Adding password | + | bob:Cobbler:07a95ca759fd46e9416de672a5e2bb60 |
| - | New password: | + | |
| - | Re-type new password: | + | |
| - | $ cat / | ||
| - | bob: | ||
| # Add the user to the cobbler.yml secrets group_vars file | # Add the user to the cobbler.yml secrets group_vars file | ||
| Line 39: | Line 34: | ||
| - " | - " | ||
| - " | - " | ||
| - | + - " | + | + - " |
| </ | </ | ||
| ===== Adding a new Distro ===== | ===== Adding a new Distro ===== | ||
| - Create an entry for the new distro in ceph-cm-ansible' | - Create an entry for the new distro in ceph-cm-ansible' | ||
| - | | + | |
| + | - **If** the distro' | ||
| - Add a dummy entry (Distro name and blank iso var) to '' | - Add a dummy entry (Distro name and blank iso var) to '' | ||
| - Add to '' | - Add to '' | ||
| - | - Else if the distro' | + | - **Else if** the distro' |
| - | - Run '' | + | - Run '' |
| - In cobbler web UI, go to **Profiles** | - In cobbler web UI, go to **Profiles** | ||
| - Click **Create New Sub-profile** | - Click **Create New Sub-profile** | ||
| Line 54: | Line 50: | ||
| - Set **Parent Profile** to '' | - Set **Parent Profile** to '' | ||
| - **Save** | - **Save** | ||
| + | |||
| + | ==== RHEL in Sepia ==== | ||
| + | Because RHEL ISOs are only available inside the Red Hat firewall, we can't add an '' | ||
| + | |||
| + | - Find the ISO hosted inside the Red Hat firewall and download it | ||
| + | - Once downloaded, '' | ||
| + | - In the ceph-sepia-secrets repo, set the appropriate '' | ||
| + | |||
| + | ==== Error adding brand new distro ==== | ||
| + | Cobbler keeps a list of supported distros in ''/ | ||
| + | |||
| + | If a distro is brand-spankin' | ||
| + | |||
| + | First try running '' | ||
| + | |||
| + | - Edit ''/ | ||
| + | - '' | ||
| + | |||
| + | ===== Re-importing a Distro ===== | ||
| + | This would typically be done if a newer ISO (minor revision) of an OS is released. | ||
| + | |||
| + | - First, you need to make sure no machines in Cobbler are set to use the distro you plan to replace | ||
| + | - ssh to the Cobbler host | ||
| + | - Set the profile for each machine using the distro you wish to replace with something else < | ||
| + | # Example: | ||
| + | for host in $(cobbler system find --profile Ubuntu-16.04-server-x86_64); | ||
| + | </ | ||
| + | - You may wish to '' | ||
| + | cobbler system find --profile Ubuntu-16.04-server-x86_64 > currently_xenial.dgalloway | ||
| + | for host in $(cat currently_xenial.dgalloway); | ||
| + | # Reimport distro | ||
| + | for host in $(cat currently_xenial.dgalloway); | ||
| + | rm currently_xenial.dgalloway | ||
| + | </ | ||
| + | - Delete all associated profiles under the **Profiles** tab in the Cobbler web UI | ||
| + | - Delete the distro from **Distros** in the web UI | ||
| + | - Proceed with [[services: | ||
services/cobbler.1475603828.txt.gz · Last modified: by dgalloway
