Coder Social home page Coder Social logo

gavberlin / ansible-debian-zfs-root Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjaminschubert/ansible-debian-zfs-root

0.0 0.0 0.0 14 KB

A set of playbook to automatically configure a Debian system with ZFS on root

License: MIT License

Jinja 100.00%

ansible-debian-zfs-root's Introduction

Debian ZFS on root bootstrap

This project is a set of ansible playbooks to automate the installation of a Debian system with an encrypted ZFS on root system.

Assumptions on the setup

  • ⚠️ The disk(s) can be erased. ⚠️
  • You want encryption.
  • The system supports UEFI.
  • You want Debian Buster (will not work before Buster. Might work on later versions).
  • You have ansible >2.10 installed on your system.
  • You have a wired connection on your machine.

Installation

Preparing the system

The first step is to setup a live environment in which we will be able to start the installation.

You will need to disable SecureBoot for the installation. We will re-enable it later.

You will need to start by getting a Debian live CD and boot your system with it.

You will then need to install an ssh server an set it up:

sudo apt update
sudo apt install openssh-server
sudo systemctl start sshd

And gather the connection information:

ip addr show scope global | grep inet

Preparing the inventory

⚠️⚠️⚠️

This is the most critical part of the setup and later steps will wipe disks. Be careful with what you set here. You have been warned.

⚠️⚠️⚠️

Edit the inventory file ./inventory.yml and fill in the fields according to the inline documentation.

Starting the installation

⚠️⚠️⚠️ This will wipe the disks you have selected and you will loose all data on them. You have been warned.

In order to install the system, run:

ansible-playbook --diff playbook.yml

Once it is done, you can safely reboot your computer, and will be able to log in remotely!

Post cleanup

  • You should re-enable UEFI secure boot
  • Note that if you have decided to use a mirrored setup, the efi partitions are not replicated and you should setup that up yourself.

ansible-debian-zfs-root's People

Contributors

benjaminschubert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.