-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·34 lines (33 loc) · 1.26 KB
/
Copy pathMakefile
File metadata and controls
executable file
·34 lines (33 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
help:
@echo "How to use:"
@echo " make install - install everything, use for bootstrap on nude distribution"
install:
@echo "****************************"
@echo "Start bootstrap installation"
@echo "****************************"
@echo ""
@echo " >> Install base packages"
@sudo apt-get update
@sudo apt-get install git htop vim curl wget tree tmux terminator software-properties-common dirmngr -y
@echo ""
@echo " >> Install dotfiles"
@if [ -d "`eval echo '~/dotfiles'`" ]; then git -C ~/dotfiles pull; else git clone https://github.com/letournel/dotfiles.git ~/dotfiles; fi
@sh ~/dotfiles/setup.sh
@echo ""
@echo " >> Install ansible package"
@if ! grep -i "ansible" /etc/apt/sources.list; then echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list; fi
@sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
@sudo apt-get update
@sudo apt-get install ansible -y
@echo ""
@echo " >> Play ansible playbook"
@ansible-playbook ~/devenv/playbook.yml -i ~/devenv/hosts
@echo ""
@echo " >> Change user shell"
@chsh -s /bin/zsh
@echo ""
@echo " >> Add user to docker group"
@sudo adduser letournel docker
@echo ""
@echo "Installation finished"
@echo "Please run 'systemctl reboot'"