|
|
@ -7,9 +7,10 @@ |
|
|
|
|
|
|
|
- name: Helm | Lay Down Helm Manifests (RBAC) |
|
|
|
template: |
|
|
|
src: "{{item.file}}" |
|
|
|
src: "{{item.file}}.j2" |
|
|
|
dest: "{{kube_config_dir}}/{{item.file}}" |
|
|
|
with_items: |
|
|
|
- {name: tiller, file: tiller-namespace.yml, type: namespace} |
|
|
|
- {name: tiller, file: tiller-sa.yml, type: sa} |
|
|
|
- {name: tiller, file: tiller-clusterrolebinding.yml, type: clusterrolebinding} |
|
|
|
register: manifests |
|
|
@ -18,7 +19,7 @@ |
|
|
|
- name: Helm | Apply Helm Manifests (RBAC) |
|
|
|
kube: |
|
|
|
name: "{{item.item.name}}" |
|
|
|
namespace: "kube-system" |
|
|
|
namespace: "{{ tiller_namespace }}" |
|
|
|
kubectl: "{{bin_dir}}/kubectl" |
|
|
|
resource: "{{item.item.type}}" |
|
|
|
filename: "{{kube_config_dir}}/{{item.item.file}}" |
|
|
@ -28,7 +29,7 @@ |
|
|
|
|
|
|
|
- name: Helm | Install/upgrade helm |
|
|
|
command: > |
|
|
|
{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }} --tiller-namespace=kube-system |
|
|
|
{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }} --tiller-namespace={{ tiller_namespace }} |
|
|
|
{% if helm_skip_refresh %} --skip-refresh{% endif %} |
|
|
|
{% if helm_stable_repo_url is defined %} --stable-repo-url {{ helm_stable_repo_url }}{% endif %} |
|
|
|
{% if rbac_enabled %} --service-account=tiller{% endif %} |
|
|
|