role/cert-manager: update

This commit is contained in:
Haitao Pan 2023-03-24 13:12:20 +08:00
parent 447515be88
commit ce546100aa
4 changed files with 3 additions and 14 deletions

View File

@ -10,9 +10,9 @@ curl https://get.acme.sh | sh -s email=156405189@qq.com
rm -rvf ${domain}.* -f
sh ~/.acme.sh/acme.sh --set-default-ca --server zerossl --issue --force --dns dns_ali -d ${domain} -d "*.${domain}"
cat ~/.acme.sh/${domain}/${domain}.cer > ${domain}.pem
cat ~/.acme.sh/${domain}/ca.cer >> ${domain}.pem
cat ~/.acme.sh/${domain}/${domain}.key > ${domain}.key
cat ~/.acme.sh/${domain}_ecc/${domain}.cer > ${domain}.pem
cat ~/.acme.sh/${domain}_ecc/ca.cer >> ${domain}.pem
cat ~/.acme.sh/${domain}_ecc/${domain}.key > ${domain}.key
kubectl create namespace $namespace || echo true
kubectl delete secret tls $secret -n $namespace || echo true

View File

@ -1,4 +0,0 @@
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo up
kubectl create ns database
helm upgrade --install mysql bitnami/mysql -n database

View File

@ -1,4 +0,0 @@
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo up
kubectl create ns redis
helm upgrade --install redis bitnami/redis -n redis

View File

@ -1,3 +0,0 @@
- name: Setup Redis Server
script: files/setup-redis.sh
when: inventory_hostname in groups[group]