GitHub Enterprise Server
is an APPLIANCE. No salt minion, No sft.
To SSH in you must have your public key manually added.
Host github Port 122 User admin HostName 10.80.101.78
OKTA does NOT manage the permissions on the GitHub server. To give a user access to a new team, like mdr-engineering, log into the github server and access this URL: Login . Find the new user by clicking on the "Add a member" button.
ghe-update-check
ghe-upgrade /var/lib/ghe-updates/github-enterprise-2.17.22.hpkg
Upgrading major version
ghe-upgrade
fdisk -l
two partitions are installed. when you run an upgrade the VM will install the upgrade to the other partiion. After the upgrade it will switch the primary boot partitions. This leaves the previous version available for roll back.
Hit ghe- (TAB) to view all ghe commands. GitHub Command-line utilities
Should be able to do just via the UI. https://github.mdr.defpoint.com:8443/setup/upgrade. But there's a gotcha with disabling the DSA key (for a FEDRAMP POAM). Your services may not restart after updating the license.
+ cp /data/user/common/ssh_host_rsa_key /data/user/common/ssh_host_rsa_key.pub /data/user/common/ssh_host_dsa_key /data/user/common/ssh_host_dsa_key.pub /data/user/common/ssh_host_ecdsa_key /data/user/common/ssh_host_ecdsa_key.pub /etc/ssh/
cp: cannot stat '/data/user/common/ssh_host_dsa_key': No such file or directory
cp: cannot stat '/data/user/common/ssh_host_dsa_key.pub': No such file or directory
Jun 30 16:09:54 ERROR: Preparing storage device
License install procedure:
# Put the DSA key back in place
sudo bash -c "mv /data/user/user-tmp/ssh_host_dsa* /data/user/common/"
# Now install the new license using the UI
# And re-remove the DSA key ...
sudo mv /data/user/common/ssh_host_dsa_key* /data/user/user-tmp/
sudo systemctl restart babeld
I'll open a case with github too.
The ghe-backup
servers are instances running Docker
.
Docker is installed via the docker
salt state.
Most backup configuration is managed by the salt github.backup
state:
/usr/local/github-backup-utils
contains a copy of the github repository https://github.com/github/backup-utilsdocker build --build-arg=http_proxy=$HTTP_PROXY --build-arg=https_proxy=$HTTPS_PROXY -t github/backup-utils:v3.0.0 .
. You can run this if you get an error when applying the state.If there is a new github or a new ghe-backup server, you will need to accept the ssh key. To do so, from the ghe-backup server, run:
sudo ssh -p 122 -i /etc/github-backup-utils/.ssh/id_rsa -o UserKnownHostsFile=/etc/github-backup-utils/.ssh/known_hosts github-enterprise-0.pvt.xdrtest.accenturefederalcyber.com -l admin
and accept the key.
Restoring should be similar to the command called by /root/github-backup.sh, except with a 'ghe-restore' command.
0) Create Okta App Manually 1) Stand everything up. 2) Run highstate 2x (This can t