openshift-evangelists / vagrant-origin

[DEPRECATED] Use https://github.com/minishift/minishift
Apache License 2.0
61 stars 35 forks source link

configurable master IP #5

Open ryanj opened 8 years ago

ryanj commented 8 years ago

Potential bug: 10.2.2.2 sounds like an excellent default value, since most private LANs use class B or C address spaces internally. However, hard-coding this value may result in a conflict on some networks.

Feature request: In addition to the master's IP, I'd also like to be able to configure the master's hostname (default to master IP), app namespace ("cloudapps"), app host basename ("{$app_namespace}.{$IP}.xip.io")

jorgemoralespou commented 8 years ago

Change of the ip of a configured OpenShift installation requires to recreate certificates, and hence go through the complete configuration process again. Change of the app_namespace also will affect to the existing routes.

My proposal would be to ship the box with a script that on first boot (firt vagrant up, when ip and domain would be set) to run the origin-setup.sh script to reconfigure origin. This would take some time, but would effectively make the trick.

Other option is to ask users to follow the packaging process if they want to change the ip.

And third option would be to havea complex Vagrantfile, which I would rather not. I would like final users to have a minimal Vagrantfile to work, as everything should be already set up on the box we ship.

Let's discuss with @thesteve0 in Brno