Coder Social home page Coder Social logo

debian-zfs's Introduction

debian-zfs

Ansible roles that implements https://github.com/zfsonlinux/zfs/wiki/Debian-Buster-Root-on-ZFS

Usage

  • Edit ansible/vars.yml with your desired settings.
  • Run packer build -on-error=ask debian-zfs-{{ mbr || efi }}.json to test the playbook in a Virtualbox machine.
  • The last provisioner is simply a shell provisioner that runs false, so you can examine the resulting system once the playbook has completed.
  • Playbook hasn't yet been tested on real hardware, will report back with more commits
    • it should go without saying, but trying to run this on real hardware will result in data loss

some handy variables

  • zfsprep_zap_disks: true - forcibly nuke any partitions on existing disks
  • zfsprep_legacy_device_nodes - set to true to use /dev/sdX device names instead of by-id
  • zfsprep_root_pool - root pool name
  • zfsprep_data_pool - data pool name (separate from root pool)
  • zfsprep_efi: true - Use EFI layout, install grub-efi instead of grub-pc. Set to false to install grub-pc instead
  • zfsprep_luks - LUKS support
  • zfsprep_luks_flags - flags to pass to luksFormat
  • zfsprep_luks_passphrase - passphrase for luksFormat/luksOpen
  • zfsprep_hostname - short and FQDN hostnames to configure in the target OS
  • zfsprep_root_disks - target disks for root pool
  • zfsprep_data_disks - target disks for data pool
  • zfsprep_root_pool_type - pool type for root pool
  • zfsprep_data_pool_type - pool type for data pool
  • zfsprep_extra_locales - list of extra locales to install alongside en_US.UTF-8
  • zfsprep_lang - LANG to set in /etc/default/locale
  • zfsprep_timezone - timezone to set in resulting OS (defaults to UTC)

a few more in ansible/roles/01-system-prep/defaults/main.yml

debian-zfs's People

Contributors

jmpolom avatar

Watchers

 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.