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:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user