Last active
April 7, 2020 15:50
-
-
Save davidpp/e89bb8e0262ec0828734a8b6454d4fd0 to your computer and use it in GitHub Desktop.
Lando Dev Cloud-Init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_update: true | |
package_upgrade: true | |
package_reboot_if_required: true | |
manage-resolv-conf: true | |
resolv_conf: | |
nameservers: | |
- '8.8.8.8' | |
- '8.8.4.4' | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- gnupg-agent | |
- software-properties-common | |
# Install security updates daily | |
- unattended-upgrades | |
# Ban SSH brute force attempts | |
- fail2ban | |
# easy to configure firewall interface | |
- ufw | |
runcmd: | |
- ufw default deny incoming | |
- ufw default allow outgoing | |
- ufw allow ssh | |
- yes | ufw enable | |
- systemctl start fail2ban | |
- systemctl enable fail2ban | |
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
- apt-get update -y | |
- yes | apt-get install docker-ce docker-ce-cli containerd.io | |
- systemctl start docker | |
- systemctl enable docker | |
- wget https://files.devwithlando.io/lando-stable.deb | |
- dpkg -i lando-stable.deb | |
- rm -rf lando-stable.deb | |
final_message: "The system is finally up, after $UPTIME seconds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment