[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-misc
Subject:    Re: Project: Creating an "immutable" OpenBSD disk image with Packer and Ansible
From:       Antoine Jacoutot <ajacoutot () bsdfrog ! org>
Date:       2016-03-31 12:57:47
Message-ID: 20160331125747.GB10242 () janus ! obspm ! bsdfrog ! org
[Download RAW message or body]

On Thu, Mar 31, 2016 at 09:55:39AM +0200, Yann Hamon wrote:
> Hi,
> 
> I've been working for some time on a project to manage my router@home, I'm
> sharing it here in the hope that it will be useful to someone else.
> 
> Here it is: https://github.com/yannh/openbsd_immutable_router
> 
> It contains a set of configuration scripts for Packer and Ansible that make
> it easy to generate a disk image, that you can then copy to a USB stick to
> boot from.
> 
> To minimize writes to the USB stick, the root partition is mounted
> read-only, and all folders that require writes are mounted as MFS.
> 
> There is also some pf/dyndns/pppoe configuration that I left for learning
> purposes.
> 
> This workflow allows me to regenerate an image, or do a system upgrade, in
> about 20 minutes - packer build -var-file=config.json openbsd.json, dd
> if=output-qemu/openbsd of=/dev/sdb, reboot. I procrastinate less when doing
> my upgrades now :)

Oh that's funky. Thanks :-)

-- 
Antoine

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic