add some packages and a fstab

This commit is contained in:
Simon Bruder 2018-02-12 14:37:03 +00:00
parent 1efe06fdba
commit 659e20e012
7 changed files with 25 additions and 3 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
rootfs.tar
rootfs.tar.gz
rootfs.torrent

View file

@ -2,9 +2,12 @@
- hosts: default
any_errors_fatal: yes
roles:
- role: packages
tags:
- packages
- role: auth
tags:
- auth
- role: base
tags:
- base
- role: packages
tags:
- packages

View file

@ -0,0 +1,5 @@
---
- name: configure fstab
template:
src: fstab.j2
dest: /etc/fstab

View file

@ -0,0 +1,2 @@
---
- import_tasks: filesystem.yml

View file

@ -0,0 +1,2 @@
# device mountpoint type options dump pass
/dev/sda1 / ext4 defaults 0 0

View file

@ -6,5 +6,6 @@
update_cache: yes
with_items:
- bash
- less
- htop
- systemd-sysv

7
generate.sh Executable file
View file

@ -0,0 +1,7 @@
echo "building with packer…"
packer build packer.json
echo "compressing image…"
gzip -k -f rootfs.tar
echo "generate torrent…"
rm rootfs.torrent
mktorrent -a udp://tracker.sbruder.de:6969/announce -o rootfs.torrent -l 22 -w 'http://10.2.2.1:8081/rootfs.tar.gz' rootfs.tar.gz