Skip to content

rickmanley-nc/satellite

Repository files navigation

Deploy and Configure Satellite 6.4

This repo is dedicated to building a Satellite 6.4 VM on LibVirt KVM through a series of Ansible playbooks. If you've used the previous Operations repo, consider that version 1.0. This is version 2.0, and is much more user-friendly. The original intent was to just learn how to use Ansible effectively while also needing to have a reliable Satellite 6 environment that was "rinse and repeat". This is something that I can use to demonstrate on my local laptop regardless of internet connectivity.

I cannot take all the credit. I've learned from many folks within Red Hat and Ansible as well as our customers, and users in the community. Thank you all!

After kicking off the playbook (on a decent wifi connection, this will take just under 3 hours consistently, 3.5 hours if with IdM integration), and running through the manual steps listed in section "Remaining Items to Complete", the following Demo, Enablement Session, or Workshop is ready to be delivered:

  • General Layout and Overview (I have this listed for those first/initial walkthroughs with customers)
  • Provisioning (against LibVirt)
  • Patching (Promotion, Publishing, Apply Errata, Remote Execution)
  • Content Views and Composite Content Views
  • Content View filters for EPEL7
  • Red Hat Insights
  • OpenSCAP scanning and reporting against a Standard Policy system and a STIG policy
  • When installed with IdM integration... RBAC, LDAP, Kerb Auth, SSO

Requirements and Steps

  • Configure laptop with appropriate httpd, libvirtd, and create-libvirt-network roles from the following repo: https://github.com/rickmanley-nc/laptop-configure
  • Create an Activation Key (from https://access.redhat.com/management/activation_keys) and add at least 1 Satellite subscription to it. Call the Activation Key "ak-satellite"
  • Create a Subscription Allocation (from https://access.redhat.com/management/subscription_allocations) and at least 1 Red Hat Enterprise Linux (and hopefully EAP) subscription to it.
    • Download the Subscription Manifest, via the Export Manifest button, and rename it to 'manifest-USERNAME-6.3.zip', where 'USERNAME' is your username
      • Copy the manifest to /var/www/html
      • Run 'restorecon' against /var/www/html
  • Update group_vars/all
  • Execute the following command to fully deploy and configure Satellite on your laptop:
    • wget -qO- https://github.com/rickmanley-nc/satellite/raw/master/run.sh | bash
  • Execute the following command to fully deploy and configure Satellite with integration to an existing IdM server on your laptop:
    • wget -qO- https://github.com/rickmanley-nc/satellite/raw/master/run-idm-integrated.sh | bash

Gotchas!

  • Once you have your manifest, you'll need to verify which subscriptions are attached to the activation keys in roles/activation-keys/tasks/main.yml. We're using hammer output to search for the RHEL Server Premium and EPEL subscriptions. This can be restructured to search for any other subscriptions by changing the '--search' argument.

  • If the playbook fails, it is not idempotent yet. You will likely need to delete the deployed VM and kick of the playbook again. Some of this is due to improper tagging, some because there's not a 'hammer' module, and some due to not having the correct conditionals. The 'check-for-existing-satellite' role is not used as effectively as it could, and that's something I'm currently working on.

Roles

  • check-for-existing-satellite
  • hostname
  • firewall
  • etc-hosts
  • register
  • install-satellite
  • configure-satellite
  • install-satellite-idm-integrated
  • configure-satellite-idm-integrated
  • manifest
  • domain
  • openscap
  • sync-plan
  • lazy-sync
  • lifecycle-environments
  • product-repo-RHEL7
  • product-repo-EPEL7
  • ccv-RHEL7-EPEL7
  • product-repo-EAP7
  • ccv-RHEL7-EAP7
  • activation-keys
  • provision-libvirt
  • ansible-tower-sync-prep

Remaining Items to Complete

License

Red Hat, the Shadowman logo, Ansible, and Ansible Tower are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the United States and other countries.

All other parts of this project are made available under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages