add some packages and a fstab
This commit is contained in:
parent
1efe06fdba
commit
659e20e012
7 changed files with 25 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1,3 @@
|
|||
rootfs.tar
|
||||
rootfs.tar.gz
|
||||
rootfs.torrent
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5
ansible/roles/base/tasks/filesystem.yml
Normal file
5
ansible/roles/base/tasks/filesystem.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: configure fstab
|
||||
template:
|
||||
src: fstab.j2
|
||||
dest: /etc/fstab
|
||||
2
ansible/roles/base/tasks/main.yml
Normal file
2
ansible/roles/base/tasks/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- import_tasks: filesystem.yml
|
||||
2
ansible/roles/base/templates/fstab.j2
Normal file
2
ansible/roles/base/templates/fstab.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# device mountpoint type options dump pass
|
||||
/dev/sda1 / ext4 defaults 0 0
|
||||
|
|
@ -6,5 +6,6 @@
|
|||
update_cache: yes
|
||||
with_items:
|
||||
- bash
|
||||
- less
|
||||
- htop
|
||||
- systemd-sysv
|
||||
|
|
|
|||
7
generate.sh
Executable file
7
generate.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue