- Upload the license and set initial password once the image is accessible via IP (API Reference)
# Setup license and management console password
curl -X POST "https://${GHE_IP}:8443/setup/api/start" -k -F license=@./github-enterprise.ghl -F "password=${GHE_PWD}"
- Apply settings through the Management Console API using a
settings.json
file (API Reference)
curl -L -X PUT "https://api_key:${GHE_PWD}@${GHE_IP}:8443/setup/api/settings" --data-urlencode "settings=`cat ./settings.json`" -k
- Start the configuration process (API Reference)
curl -L -X POST "https://api_key:${GHE_PWD}@${GHE_IP}:8443/setup/api/configure" -k
Below is the minimal settings.json
example used in the webinar (basically just turns on public pages) (Full API Reference)
{
"enterprise": {
"private_mode": true,
"public_pages": true,
"subdomain_isolation": false,
"signup_enabled": false,
"auth_mode": "default",
"assets": null,
"pages": {
"enabled": true
}
}
}
Adding here the
outputs.tf
file shown in the demo for convenience!