Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

sza-1/yasi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yasi

yasi is yet another stupid installer for Arch Linux built on top of Ansible playbook.

It is based on boring Arch Linux installation guide and allows to get a minimal bootable ready-to-use Arch Linux installation in several minutes.

Getting started

Remote scenario

  • Install Ansible
  • Download, burn and boot Arch Linux somewhere, enable SSH and get IP address
  • Run ansible-playbook -i <ip-address>, site.yml, answer questions and be patient

Local scenario

TODO: add local installation scenario

Supported options

Options can be passed to ansible-playbook via -e option=value or -e @path/to/option/file to supress prompts. See man ansible-playbook for more details.

TODO: add description and usage notes for humans

TODO: think about documentation for role inputs

  • bootloader (default: auto)
  • device (default: /dev/sda)
  • filesystem (default: btrfs)
  • firmware (default: auto)
  • mirrorlist (default: https://www.archlinux.org/mirrorlist/all/)
  • packages (default: none)
  • password (default: password)
  • reboot (default: no)
  • timezone (default: UTC)
  • wipe (default: no)

This playbook is idempotent so you can stop and run the playbook again as many as you want but note that changing of initial options after the first run usually is a bad idea (use the same options every time, use auto or use wipe=yes).

TODO: install pacaur

Cheatsheet (Arch Linux)

TODO: support/describe password/keyless authentication

  • [host ] git clone git@github.com:crazyh/yasi.git && cd yasi
  • [host ] curl -O http://mirror.yandex.ru/archlinux/iso/2016.08.01/archlinux-2016.08.01-dual.iso
  • [host ] dd if=archlinux-2016.08.01-dual.iso of=/dev/sdX
  • [target] boot target
  • [target] systemctl start sshd
  • [target] printf "password\npassword" | passwd
  • [target] ip a s enp0s3
  • [host ] ssh-copy-id root@target
  • [host ] ansible-playbook -i target, site.yml

Tested

Host

  • Ansible 2.1.0.0
  • Fedora 23
  • Python 2.7.11

Target

Thanks

About

Yet another stupid installer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages