Merge pull request #2772 from rlarocque2/apiserver_auth

Implement apiserver communication for Vagrant
This commit is contained in:
Eric Tune
2014-12-10 07:13:40 -08:00
3 changed files with 15 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
{% set token_auth_file = "-token_auth_file=/dev/null" -%}
{% if grains.cloud is defined -%}
{% if grains.cloud == 'gce' -%}
{% if grains.cloud == 'gce' or grains.cloud == 'vagrant' -%}
# TODO: generate and distribute tokens for other cloud providers.
{% set token_auth_file = "-token_auth_file=/srv/kubernetes/known_tokens.csv" -%}
{% endif -%}

View File

@@ -39,7 +39,7 @@
{% endif %}
{% if grains.cloud is defined %}
{% if grains.cloud == 'gce' %}
{% if grains.cloud == 'gce' or grains.cloud == 'vagrant' %}
# TODO: generate and distribute tokens on other cloud providers.
/srv/kubernetes/known_tokens.csv:
file.managed: