Initial release
This commit is contained in:
commit
9427cb9e05
12 changed files with 327 additions and 0 deletions
28
tasks/main.yml
Normal file
28
tasks/main.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
- debug: var=my_context
|
||||
tags: prom
|
||||
|
||||
- name: Weave setup
|
||||
block:
|
||||
- name: namespace
|
||||
k8s:
|
||||
state: present
|
||||
name: weave
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
|
||||
|
||||
- name: Weave Scope files
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
with_items:
|
||||
- scope-clusterrolebinding.yaml.j2
|
||||
- scope-clusterrole.yaml.j2
|
||||
- scope-sa.yaml.j2
|
||||
- scope-svc.yaml.j2
|
||||
- scope-ds.yaml.j2
|
||||
- scope.yaml.j2
|
||||
- weave_ingress.yaml.j2
|
||||
tags: weave
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue