Last active
November 12, 2020 07:26
-
-
Save johnpmitsch/f5a0817b23964ee1d2022768199a7882 to your computer and use it in GitHub Desktop.
setup satellite clone script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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