Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Last active September 21, 2017 19:38
Show Gist options
  • Save johnpmitsch/18c4241ddfc427e8b75fdb020628c6a6 to your computer and use it in GitHub Desktop.
Save johnpmitsch/18c4241ddfc427e8b75fdb020628c6a6 to your computer and use it in GitHub Desktop.
setup change hostname
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