Skip to content

Instantly share code, notes, and snippets.

@derekjkeller
Forked from johnpmitsch/setup_sat_clone.sh
Created November 12, 2020 07:26
Show Gist options
  • Select an option

  • Save derekjkeller/0d663ffa4078d5497091fbf5c608bc8f to your computer and use it in GitHub Desktop.

Select an option

Save derekjkeller/0d663ffa4078d5497091fbf5c608bc8f 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