Last active
September 21, 2017 19:38
-
-
Save johnpmitsch/18c4241ddfc427e8b75fdb020628c6a6 to your computer and use it in GitHub Desktop.
setup change hostname
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
yum install -y git vim | |
cd ~ | |
git config --global user.name "John Mitsch" | |
git config --global user.email jomitsch@redhat.com | |
git clone https://github.com/Katello/katello-packaging | |
cd katello-packaging/ | |
git remote add fork https://github.com/johnpmitsch/katello-packaging | |
git fetch fork | |
git checkout fork/katello_script_refactor | |
cd ~ | |
ln -s katello-packaging/katello/katello-change-hostname katello-change-hostname | |
chmod a+x katello-change-hostname | |
uptime | |
after a snapshot restore | |
git config --global user.name "John Mitsch" | |
git config --global user.email jomitsch@redhat.com | |
cd ~/katello-packaging | |
git fetch --all | |
git reset --hard fork/katello-change-hostname | |
./katello-change-hostname foo.example.com -u admin -p changeme -g satellite -s satellite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment