mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 19:26: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
|
||||
encoding: base64
|
||||
defer: true
|
||||
%{ if main_node ~}
|
||||
- owner: root:root
|
||||
content: "${certbot_setup}"
|
||||
path: /run/tmpfiles.d/certbot-setup.sh
|
||||
encoding: base64
|
||||
defer: true
|
||||
%{ if main_node ~}
|
||||
- owner: root:root
|
||||
content: "${swarm_setup}"
|
||||
path: /run/tmpfiles.d/swarm-setup.sh
|
||||
@@ -59,7 +59,7 @@ runcmd:
|
||||
- /usr/local/bin/firewall-setup.sh
|
||||
- /usr/local/bin/ssh-setup.sh
|
||||
- /usr/local/bin/sysctl-setup.sh
|
||||
%{ if main_node ~}
|
||||
- /usr/local/bin/certbot-setup.sh
|
||||
%{ if main_node ~}
|
||||
- /usr/local/bin/swarm-setup.sh
|
||||
%{ endif ~}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /var/www/certbot
|
||||
mkdir -p /etc/letsencrypt
|
||||
|
||||
Reference in New Issue
Block a user