| Adding samba share, NAS container. - selfhost - Incus configurations for my sel… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 2e337e95c067dbadbb8f3bf59c37dc8f6694d111 | |
| parent f8d072f34847716840713281d2a0fd4866f733e4 | |
| Author: Jay Scott <[email protected]> | |
| Date: Sat, 15 Jun 2024 17:17:20 +0100 | |
| Adding samba share, NAS container. | |
| Diffstat: | |
| M adguard/files/AdGuardHome.yaml | 2 ++ | |
| A nas/init.sh | 12 ++++++++++++ | |
| A nas/nas.yaml | 44 +++++++++++++++++++++++++++++… | |
| 3 files changed, 58 insertions(+), 0 deletions(-) | |
| --- | |
| diff --git a/adguard/files/AdGuardHome.yaml b/adguard/files/AdGuardHome.yaml | |
| @@ -155,6 +155,8 @@ filtering: | |
| answer: 192.168.2.13 | |
| - domain: adguard.jay.scot | |
| answer: 192.168.2.10 | |
| + - domain: nas.jay.scot | |
| + answer: 192.168.2.14 | |
| safebrowsing_cache_size: 1048576 | |
| safesearch_cache_size: 1048576 | |
| parental_cache_size: 1048576 | |
| diff --git a/nas/init.sh b/nas/init.sh | |
| @@ -0,0 +1,12 @@ | |
| +#!/bin/sh | |
| + | |
| +HOST=nas | |
| + | |
| +incus stop $HOST | |
| +incus delete $HOST | |
| +incus launch images:alpine/3.20/cloud $HOST < $HOST.yaml | |
| + | |
| +incus exec $HOST -- cloud-init status --wait | |
| +incus exec $HOST -- smbpasswd -a samba | |
| +incus exec $HOST -- rc-service samba restart | |
| + | |
| diff --git a/nas/nas.yaml b/nas/nas.yaml | |
| @@ -0,0 +1,44 @@ | |
| +devices: | |
| + htdocs: | |
| + path: /share | |
| + source: /srv | |
| + type: disk | |
| + | |
| +config: | |
| + cloud-init.network-config: | | |
| + version: 2 | |
| + ethernets: | |
| + eth0: | |
| + addresses: | |
| + - 192.168.2.14/24 | |
| + gateway4: 192.168.2.1 | |
| + cloud-init.user-data: | | |
| + #cloud-config | |
| + package_upgrade: true | |
| + hostname: nas.jay.scot | |
| + timezone: Europe/London | |
| + manage_resolv_conf: true | |
| + resolv_conf: | |
| + nameservers: ['192.168.2.10', '1.1.1.1'] | |
| + write_files: | |
| + - path: /etc/samba/smb.conf | |
| + content: | | |
| + [global] | |
| + allow insecure wide links = yes | |
| + workgroup = WORKGROUP | |
| + dos charset = cp866 | |
| + unix charset = utf-8 | |
| + force user = samba | |
| + | |
| + [storage] | |
| + follow symlinks = yes | |
| + wide links = yes | |
| + browseable = yes | |
| + writeable = yes | |
| + path = /share | |
| + users: | |
| + - name: samba | |
| + group: users | |
| + passwd: $6$WNXusbujTtdH5X3z$43RgrNloS.Qz9nVoN5jIiaSpzgrur9KpRwfiQP.3rV… | |
| + packages: | |
| + - samba |