diff --git a/README.md b/README.md
index 42aab22..56ed406 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,5 @@
-# Website
-Cloudbourne Website deployment though AppZ
+# Wordpress on Google Cloud
+
+We at [CloudControl](https://www.ecloudcontrol.com) decided to give our webiste a facelift. The site is using Wordpress with Avada theme. This repo is used for our GitOps based deployment using our flagship [GitOps platform AppZ](https://www.ecloudcontrol.com/achieving-infrastructure-agility-with-cloud-controls-appz/).
+
+Learn more about our GitOps platform and watch the video of the deployment at [Wordpress on Google Cloud](https://www.ecloudcontrol.com/wordpress-on-google-cloud/)
diff --git a/appz.yml b/appz.yml
index 8051e71..3dd5031 100644
--- a/appz.yml
+++ b/appz.yml
@@ -1,37 +1,50 @@
app:
- name: eCloudControl.com
+ name: v4.eCloudControl.com
code: ECSWEB
notify: appzdev@cloudbourne.co
build:
- version: 2.0
- env: DEV
+ version: 4.0
+ env: PROD
build_file: none
output_files: output/*.zip
- image_template: wordpress-5.2_avada5.9
- image_name: myco/website
+ image_template: wordpress-6.5
deploy:
- context: myco/DEV
+ context: ecloudcontrol/PROD
+ type: statefulset
+ ingress: none
replicas: 1
+ resources: x-large
port:
- - 80
+ - 443
volumes:
- - claim: ecs-website-uploads-pvc
- mount: /var/www/html/wp-content/uploads
- name: uploads
- - claim: ecs-website-uploads-backup-pvc
+ - claim: wp-content
+ mount: /var/www/html/wp-content
+ name: wp-content
+ size: 250Gi
+ - claim: wp-backup
mount: /appz/backup
name: backup
-
-monitor:
- notify: appzops@cloudbourne.co
+ size: 250Gi
properties:
- revision : 24
MYSQL_HOST : "mysql-5-7:3306"
- MYSQL_DATABASE : "ecloudcontrol_com"
+ MYSQL_DATABASE : "ecloudcontrol_com_v4"
MYSQL_USER : "ecloudcontrol_com"
- SITE_URL : "https://ecloudcontrol.com"
- SITE_TITLE : "eCloudControl.com"
+ ENABLE_HA : "no"
+ WP_BACKUP_VERBOSE : 0
+ MYSQL_PASSWORD:
+ vault: MYSQL_PASSWORD
+ SITE_URL : "https://www.v4.ecloudcontrol.com"
+ SITE_TITLE : "CLOUDCONTROL"
+ ADMIN_USER : webmaster
+ ADMIN_EMAIL : webmaster@ecloudcontrol.com
+ ADMIN_PASSWORD:
+ vault: ADMIN_PASSWORD
+ SITE_PRIVATE_KEY:
+ vault: SITE_PRIVATE_KEY
+ SITE_CERT:
+ vault: SITE_CERT
+ revision : 83
diff --git a/contents.yaml b/contents.yaml
new file mode 100644
index 0000000..d5414a0
--- /dev/null
+++ b/contents.yaml
@@ -0,0 +1,7 @@
+---
+theme:
+ - name: Avada
+ url: https://www.ecloudcontrol.com/wp-content/uploads/2024/07/Avada-7.11.zip
+ - name: Avada-Child-Theme
+ url: https://www.ecloudcontrol.com/wp-content/uploads/2024/07/Avada-Child-Theme-7.11.zip
+
diff --git a/init.sh b/init.sh
new file mode 100644
index 0000000..73aa860
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,109 @@
+#!/bin/bash
+filename="AppZ-Healthcare-Case-Study-Oct-2020-v2-1"
+if grep $filename -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+filename1="CloudControl-Approach-Database-Migration-and-Management-V1"
+if grep $filename1 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_01.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+filename2="CC_Brochure_May2021-1"
+if grep $filename2 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_02.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+
+filename3="AppZ-CloudControl-brochure-Oct-21"
+if grep $filename3 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_03.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+
+filename4="Case-Study-EdTech-Cloud-Native-v05"
+if grep $filename4 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_04.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+
+filename5="CCS-AppZ-for-AutoMobile-Company-V01"
+if grep $filename5 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_05.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+
+filename6="Signature-SRE-Dec2022-v8"
+if grep $filename6 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_06.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
+filename7="White-Paper_-Migrating-Data-from-Sybase-to-Azure-SQL-Server-v7"
+if grep $filename6 -q /var/www/html/wp-content/themes/Avada/header.php ;then
+ echo "theme change already exist..."
+else
+ sed -n -i -e '//r /wp-contents/plugin-customization/contact7_download_07.php' -e 1x -e '2,${x;p}' -e '${x;p}' /var/www/html/wp-content/themes/Avada/header.php 2>error.txt
+ if [ -s error.txt ];then
+ rm error.txt
+ echo "failed to update header.php"
+ else
+ echo "header.php successfully updated"
+fi
+rm error.txt
+fi
diff --git a/plugin-customization/contact7_download.php b/plugin-customization/contact7_download.php
new file mode 100644
index 0000000..7900574
--- /dev/null
+++ b/plugin-customization/contact7_download.php
@@ -0,0 +1,9 @@
+
+
+
diff --git a/plugin-customization/contact7_download_01.php b/plugin-customization/contact7_download_01.php
new file mode 100644
index 0000000..b1bd3d3
--- /dev/null
+++ b/plugin-customization/contact7_download_01.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_02.php b/plugin-customization/contact7_download_02.php
new file mode 100644
index 0000000..3c0d259
--- /dev/null
+++ b/plugin-customization/contact7_download_02.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_03.php b/plugin-customization/contact7_download_03.php
new file mode 100644
index 0000000..e45d37c
--- /dev/null
+++ b/plugin-customization/contact7_download_03.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_04.php b/plugin-customization/contact7_download_04.php
new file mode 100644
index 0000000..cd355cd
--- /dev/null
+++ b/plugin-customization/contact7_download_04.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_05.php b/plugin-customization/contact7_download_05.php
new file mode 100644
index 0000000..a3d652d
--- /dev/null
+++ b/plugin-customization/contact7_download_05.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_06.php b/plugin-customization/contact7_download_06.php
new file mode 100644
index 0000000..c8f204a
--- /dev/null
+++ b/plugin-customization/contact7_download_06.php
@@ -0,0 +1,7 @@
+
diff --git a/plugin-customization/contact7_download_07.php b/plugin-customization/contact7_download_07.php
new file mode 100644
index 0000000..0fd3090
--- /dev/null
+++ b/plugin-customization/contact7_download_07.php
@@ -0,0 +1,7 @@
+