From 7be564c46b8bc626084061c0be865bc737357168 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 14 May 2020 00:16:10 +0200 Subject: [PATCH] removed all about vagrant --- README.md | 4 --- TODO | 1 - install.yml | 6 ---- vagrant/archlinux/README.md | 37 ---------------------- vagrant/archlinux/Vagrantfile | 58 ----------------------------------- vagrant/freebsd/README.md | 37 ---------------------- vagrant/freebsd/Vagrantfile | 37 ---------------------- 7 files changed, 180 deletions(-) delete mode 100644 vagrant/archlinux/README.md delete mode 100644 vagrant/archlinux/Vagrantfile delete mode 100644 vagrant/freebsd/README.md delete mode 100644 vagrant/freebsd/Vagrantfile diff --git a/README.md b/README.md index 31cafb4..9574a18 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,6 @@ - Flexibility: Push your dotfiles from/to any hosts. - Toolbox: Dry-run mode, diff mode, secrets encryption, tags... -### Test - -See ``vagrant/*/README.md`` and ``docker/*/README.md``. - ### How to **Use carefully**, backup your home before using ! diff --git a/TODO b/TODO index 3862d50..8d2486f 100644 --- a/TODO +++ b/TODO @@ -36,4 +36,3 @@ * wf-recorder * systemctl pager is fucked, still ? * ssh-agent after reinstall -- retest vagrant boxes diff --git a/install.yml b/install.yml index 2b0281d..412596b 100644 --- a/install.yml +++ b/install.yml @@ -32,9 +32,3 @@ - { role: variety, tags: variety } - { role: wofi, tags: wofi } - { role: kitty, tags: kitty } - - tasks: - - include_role: - name: vagrant - when: ansible_user_id == "vagrant" - tags: vagrant diff --git a/vagrant/archlinux/README.md b/vagrant/archlinux/README.md deleted file mode 100644 index ffc6877..0000000 --- a/vagrant/archlinux/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# Dependencies - -- Vagrant -- Virtualbox - -# Provision - -This is fully automatised - -``` -git clone --recursive https://github.com/eoli3n/dotfiles -cd dotfiles -git checkout -cd vagrant/ -vagrant up -``` - -# Test - -- Launch virtualbox GUI, open VM -- Login in TTY - - Login : ``vagrant`` - - Password : ``vagrant`` -- ``startx`` - -# Clean after test - -- Suppress Virtualbox VM -``` -cd ~/dotfiles/vagrant/ -vagrant destroy -``` -- Suppress Vagrant box -``` -vagrant box list -vagrant box remove -``` diff --git a/vagrant/archlinux/Vagrantfile b/vagrant/archlinux/Vagrantfile deleted file mode 100644 index 921210e..0000000 --- a/vagrant/archlinux/Vagrantfile +++ /dev/null @@ -1,58 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -Vagrant.configure("2") do |config| - config.vm.box = "terrywang/archlinux" - - config.vm.provider "virtualbox" do |vb| - # Display the VirtualBox GUI when booting the machine - #vb.gui = true - - # Customize the amount of memory on the VM: - vb.name = "archlinux_dotfiles" - vb.memory = "1024" - vb.cpus = 2 - end - - config.vm.provision "shell", inline: <<-SHELL - # SWAP - fallocate -l 1G /swapfile - chmod 600 /swapfile - mkswap /swapfile - swapon /swapfile - echo "/swapfile none swap defaults 0 0" >> /etc/fstab - # TMP - mount -o remount,size=1G /tmp - # LOCALE - echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen - locale-gen - echo 'LANG="fr_FR.UTF-8"' > /etc/locale.conf - # KEYBOARD - echo 'KEYMAP=fr' > /etc/vconsole.conf - loadkeys fr - localectl --no-convert set-x11-keymap fr - # UPGRADE - pacman -Syu --noconfirm - # DEPS - pacman -S ansible jshon --noconfirm - pacman -R cowsay --noconfirm || : - # DOTFILES DIR - mkdir -p /home/vagrant/dotfiles - SHELL - - config.vm.synced_folder "../../", "/home/vagrant/dotfiles/", type: "rsync", rsync__exclude: [".git/", ".vagrant.d/"] - - $script = <<-SCRIPT - # PREP - touch ~/.viminfo; rm ~/.viminfo - touch ~/.vimrc; rm ~/.vimrc - # EXEC - cd /tmp - curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git; makepkg PKGBUILD --install --needed --noconfirm - cd $HOME/dotfiles - echo "[desktop]\nlocalhost ansible_connection=local" > hosts - ansible-playbook install.yml && echo -e "vagrant\n/usr/bin/zsh" | chsh - SCRIPT - - config.vm.provision "shell", inline: $script, privileged: false -end diff --git a/vagrant/freebsd/README.md b/vagrant/freebsd/README.md deleted file mode 100644 index ffc6877..0000000 --- a/vagrant/freebsd/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# Dependencies - -- Vagrant -- Virtualbox - -# Provision - -This is fully automatised - -``` -git clone --recursive https://github.com/eoli3n/dotfiles -cd dotfiles -git checkout -cd vagrant/ -vagrant up -``` - -# Test - -- Launch virtualbox GUI, open VM -- Login in TTY - - Login : ``vagrant`` - - Password : ``vagrant`` -- ``startx`` - -# Clean after test - -- Suppress Virtualbox VM -``` -cd ~/dotfiles/vagrant/ -vagrant destroy -``` -- Suppress Vagrant box -``` -vagrant box list -vagrant box remove -``` diff --git a/vagrant/freebsd/Vagrantfile b/vagrant/freebsd/Vagrantfile deleted file mode 100644 index fa51b70..0000000 --- a/vagrant/freebsd/Vagrantfile +++ /dev/null @@ -1,37 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -Vagrant.configure("2") do |config| - config.vm.box = "generic/freebsd11" - - config.vm.provider "virtualbox" do |vb| - # Customize the amount of memory on the VM: - vb.name = "freebsd_dotfiles" - vb.memory = "1024" - vb.cpus = 1 - end - - config.vm.provision "shell", inline: <<-SHELL - env ASSUME_ALWAYS_YES=YES pkg install ansible git - ln -s /usr/local/bin/python2 /usr/bin/python - echo 'hostname="freebsd"' >> /etc/rc.conf - hostname freebsd - # DOTFILES DIR - mkdir -p /home/vagrant/dotfiles - SHELL - - config.vm.synced_folder "../../", "/home/vagrant/dotfiles/", type: "rsync", rsync__exclude: [".git/", ".vagrant.d/"] - - $script = <<-SCRIPT - # PREP - touch ~/.viminfo; rm ~/.viminfo - touch ~/.vimrc; rm ~/.vimrc - # EXEC - cd $HOME/dotfiles - echo "[server]\nlocalhost ansible_connection=local" > hosts - ansible-playbook install.yml - #CHANGE SH LINE : chsh -s /usr/local/bin/zsh -p ?? how to use crypt - SCRIPT - config.vm.provision "shell", inline: $script, privileged: false - -end