Booting a Kubernetes cluster on Vagrant

* Using Fedora 21 as the base box
* Discover the active network interfaces in the box to avoid hardcoding
  them in configuration.
* Use the master IP for the certificate.
This commit is contained in:
Fred Jean
2015-07-17 15:28:54 -06:00
parent 109c3f2b05
commit 1305f54645
4 changed files with 18 additions and 11 deletions

View File

@@ -9,9 +9,6 @@
{% if grains.cloud == 'azure' %}
{% set cert_ip='_use_azure_dns_name_' %}
{% endif %}
{% if grains.cloud == 'vagrant' %}
{% set cert_ip=grains.ip_interfaces.eth1[0] %}
{% endif %}
{% if grains.cloud == 'vsphere' %}
{% set cert_ip=grains.ip_interfaces.eth0[0] %}
{% endif %}