From 9f014d613b929efea5a8ee8692d35159b9ff4063 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 9 Oct 2022 15:05:02 +0200 Subject: [PATCH] bootstrap script renamed --- Vagrantfile | 2 +- bootstrap-gitlab.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 bootstrap-gitlab.sh diff --git a/Vagrantfile b/Vagrantfile index f0fc021..89f4102 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -13,7 +13,7 @@ Vagrant.configure("2") do |config| vb.memory = "4096" vb.cpus = 2 end - config.vm.provision :shell, path: "bootstrap-mgmt.sh" + config.vm.provision :shell, path: "bootstrap-gitlab.sh" config.vm.provision "ansible" do |ansible| ansible.playbook = "ansible/gitlab_server.yml" ansible.groups = { diff --git a/bootstrap-gitlab.sh b/bootstrap-gitlab.sh new file mode 100644 index 0000000..7f91c73 --- /dev/null +++ b/bootstrap-gitlab.sh @@ -0,0 +1,12 @@ +!/usr/bin/env bash + +## install ansible (http://docs.ansible.com/intro_installation.html) +# apt-get -y install software-properties-common +# apt-add-repository -y ppa:ansible/ansible +apt-get update +apt-get -y install tree + +sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config + +ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime +dpkg-reconfigure --frontend noninteractive tzdata