You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
990 B
YAML
35 lines
990 B
YAML
- name: Install bitnami repo
|
|
hosts: localhost
|
|
vars:
|
|
helm_chart_url: "https://charts.bitnami.com/bitnami"
|
|
tasks:
|
|
- name: Add helm repo
|
|
kubernetes.core.helm_repository:
|
|
name: bitnami
|
|
repo_url: "{{ helm_chart_url }}"
|
|
|
|
- name: Install PostgreSQL from bitnami
|
|
hosts: localhost
|
|
vars:
|
|
postgre_version: "12.2.3"
|
|
tasks:
|
|
- name: Install PostgreSQL Chart
|
|
kubernetes.core.helm:
|
|
name: posrgre
|
|
namespace: test
|
|
force: true
|
|
chart_ref: bitnami/postgresql
|
|
chart_version: "{{ postgre_version }}"
|
|
set_values:
|
|
- value: auth.database=mydb
|
|
value_type: string
|
|
- value: primary.initdb.scripts={"init.sql":"CREATE TABLE clients(id SERIAL PRIMARY KEY, userip CHAR(12));"}
|
|
value_type: json
|
|
- name: playground
|
|
kubernetes.core.helm:
|
|
name: playground
|
|
namespace: test
|
|
force: true
|
|
chart_ref: playgroud
|
|
chart_version: "0.1.3"
|