diff --git a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/ec2_bastion/scripts/install.sh.tpl b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/ec2_bastion/scripts/install.sh.tpl index 7f8abdae..609cec63 100755 --- a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/ec2_bastion/scripts/install.sh.tpl +++ b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/ec2_bastion/scripts/install.sh.tpl @@ -82,11 +82,11 @@ brew install awscli terraform terragrunt helm k9s # install mongodb client # ------------------------------------------------------------- -sudo apt install -y software-properties-common gnupg apt-transport-https ca-certificates +sudo apt install -y software-properties-common gnupg apt-transport-https ca-certificates -y sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B echo "deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list sudo apt update -sudo apt install mongodb-org +sudo apt install mongodb-org -y mongo --version # install Docker CE @@ -95,7 +95,7 @@ sudo apt install lsb-release ca-certificates apt-transport-https software-proper curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update -sudo apt install docker-ce +sudo apt install docker-ce -y sudo usermod -aG docker $USER sudo systemctl enable docker diff --git a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/scripts/install.sh b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/scripts/install.sh index a2a98fb6..ebb5eae6 100755 --- a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/scripts/install.sh +++ b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/scripts/install.sh @@ -43,14 +43,14 @@ df -h sudo apt update sudo apt upgrade -y -sudo apt install -y awscli software-properties-common gnupg apt-transport-https ca-certificates +sudo apt install -y awscli software-properties-common gnupg apt-transport-https ca-certificates -y sudo apt autoremove # install mongodb sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B echo "deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list sudo apt update -sudo apt install mongodb-org +sudo apt install mongodb-org -y sudo chown -R mongodb /var/lib/mongodb sudo chgrp -R mongodb /var/lib/mongodb