Use hieradata options
This commit is contained in:
parent
2607e8b90f
commit
25d83fe1be
|
@ -2,3 +2,6 @@ coe_host: "https://127.0.0.1:8443"
|
|||
kube_context: "kubernetes-admin@kubernetes"
|
||||
config_file: "~/.kube/config"
|
||||
action: provision
|
||||
|
||||
mariadb_config:
|
||||
root_password: weakpassword
|
||||
|
|
|
@ -11,3 +11,7 @@
|
|||
mysql_clustercheck_password: clustercheck_password
|
||||
mysql_max_connections: mysql_max_connections
|
||||
fact_variable: 'mariadb_config'
|
||||
|
||||
- debug:
|
||||
var: mariadb_config
|
||||
verbosity: 2
|
||||
|
|
|
@ -42,10 +42,6 @@
|
|||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "false"
|
||||
register: create_service
|
||||
|
||||
- debug:
|
||||
var: create_service
|
||||
verbosity: 2
|
||||
|
||||
- name: Create mariadb deployment
|
||||
k8s_v1beta1_stateful_set:
|
||||
host: "{{coe_host}}"
|
||||
|
@ -73,7 +69,7 @@
|
|||
- name: KOLLA_KUBERNETES
|
||||
value: ""
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: weakpassword
|
||||
value: '{{mariadb_config.root_password}}'
|
||||
volume_mounts:
|
||||
- name: kolla-config
|
||||
mountPath: /var/lib/kolla/config_files/
|
||||
|
@ -102,7 +98,7 @@
|
|||
},
|
||||
{
|
||||
"name": "DB_ROOT_PASSWORD",
|
||||
"value": "weakpassword"
|
||||
"value": "{{mariadb_config.root_password}}"
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
|
|
Loading…
Reference in New Issue