From 4dbefe7d6f2a1774a29b7c9979352abcbe4f1f5f Mon Sep 17 00:00:00 2001
From: Claudio Pisa <claudio.pisa@garr.it>
Date: Wed, 9 Oct 2019 14:44:11 +0000
Subject: [PATCH] add HA wordpress bundle

---
 redundantwp_bundle.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 redundantwp_bundle.yaml

diff --git a/redundantwp_bundle.yaml b/redundantwp_bundle.yaml
new file mode 100644
index 0000000..34041b5
--- /dev/null
+++ b/redundantwp_bundle.yaml
@@ -0,0 +1,26 @@
+series: bionic
+applications:
+  wordpress:
+    charm: "/home/ubuntu/wordpress"
+    num_units: 3
+    to: [ "0", "1", "2" ]
+  percona-cluster:
+    charm: cs:percona-cluster-279
+    num_units: 3
+    to: [ "0", "1", "2" ]
+  haproxy:
+    charm: cs:haproxy
+    num_units: 3
+    to: [ "0", "1", "2" ]
+    expose: true
+    options:
+      peering_mode: active-active
+machines:
+  "0": {}
+  "1": {}
+  "2": {}
+relations:
+- - wordpress:database
+  - percona-cluster:db
+- - wordpress:website
+  - haproxy:reverseproxy
-- 
GitLab