1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

removed all about vagrant

This commit is contained in:
eoli3n 2020-05-14 00:16:10 +02:00
parent 64d821fa55
commit 7be564c46b
7 changed files with 0 additions and 180 deletions

@ -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 !

1
TODO

@ -36,4 +36,3 @@
* wf-recorder
* systemctl pager is fucked, still ?
* ssh-agent after reinstall
- retest vagrant boxes

@ -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

@ -1,37 +0,0 @@
# Dependencies
- Vagrant
- Virtualbox
# Provision
This is fully automatised
```
git clone --recursive https://github.com/eoli3n/dotfiles
cd dotfiles
git checkout <master|dev>
cd vagrant/<archlinx|debian|centos|freebsd>
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/<archlinx|debian|centos|freebsd>
vagrant destroy
```
- Suppress Vagrant box
```
vagrant box list
vagrant box remove <box>
```

@ -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

@ -1,37 +0,0 @@
# Dependencies
- Vagrant
- Virtualbox
# Provision
This is fully automatised
```
git clone --recursive https://github.com/eoli3n/dotfiles
cd dotfiles
git checkout <master|dev>
cd vagrant/<archlinx|debian|centos|freebsd>
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/<archlinx|debian|centos|freebsd>
vagrant destroy
```
- Suppress Vagrant box
```
vagrant box list
vagrant box remove <box>
```

@ -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