Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Last active November 12, 2020 07:26
Show Gist options
  • Save johnpmitsch/f5a0817b23964ee1d2022768199a7882 to your computer and use it in GitHub Desktop.
Save johnpmitsch/f5a0817b23964ee1d2022768199a7882 to your computer and use it in GitHub Desktop.
setup satellite clone script
#!/bin/bash
subscription-manager register
subscription-manager attach --auto
yum install -y vim git
git clone https://github.com/RedHatSatellite/satellite-clone
cd satellite-clone/
chmod -R 755 helpers/
# Change RHEL version as needed
sed -ie 's/RHEL_MAJOR_VERSION="0"/RHEL_MAJOR_VERSION="7"/g' ./helpers/control_node_setup.sh
./helpers/control_node_setup.sh
# uncomment below to resize root partition
#./helpers/reallocate.sh
cp inventory.sample inventory
cp roles/sat6repro/vars/main.sample.yml roles/sat6repro/vars/main.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment