mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 15:06:51 +02:00
change: Create /var/www/certbot on every manager node
This commit is contained in:
@@ -41,12 +41,12 @@ write_files:
|
|||||||
path: /run/tmpfiles.d/sysctl-setup.sh
|
path: /run/tmpfiles.d/sysctl-setup.sh
|
||||||
encoding: base64
|
encoding: base64
|
||||||
defer: true
|
defer: true
|
||||||
%{ if main_node ~}
|
|
||||||
- owner: root:root
|
- owner: root:root
|
||||||
content: "${certbot_setup}"
|
content: "${certbot_setup}"
|
||||||
path: /run/tmpfiles.d/certbot-setup.sh
|
path: /run/tmpfiles.d/certbot-setup.sh
|
||||||
encoding: base64
|
encoding: base64
|
||||||
defer: true
|
defer: true
|
||||||
|
%{ if main_node ~}
|
||||||
- owner: root:root
|
- owner: root:root
|
||||||
content: "${swarm_setup}"
|
content: "${swarm_setup}"
|
||||||
path: /run/tmpfiles.d/swarm-setup.sh
|
path: /run/tmpfiles.d/swarm-setup.sh
|
||||||
@@ -59,7 +59,7 @@ runcmd:
|
|||||||
- /usr/local/bin/firewall-setup.sh
|
- /usr/local/bin/firewall-setup.sh
|
||||||
- /usr/local/bin/ssh-setup.sh
|
- /usr/local/bin/ssh-setup.sh
|
||||||
- /usr/local/bin/sysctl-setup.sh
|
- /usr/local/bin/sysctl-setup.sh
|
||||||
%{ if main_node ~}
|
|
||||||
- /usr/local/bin/certbot-setup.sh
|
- /usr/local/bin/certbot-setup.sh
|
||||||
|
%{ if main_node ~}
|
||||||
- /usr/local/bin/swarm-setup.sh
|
- /usr/local/bin/swarm-setup.sh
|
||||||
%{ endif ~}
|
%{ endif ~}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p /var/www/certbot
|
mkdir -p /var/www/certbot
|
||||||
mkdir -p /etc/letsencrypt
|
|
||||||
|
|||||||
Reference in New Issue
Block a user