~comcloudway/ansible-srht

cfd50b96ad61ded95add8e63afa38708b4a65747 — Jakob Meier 11 months ago c17179c
Updated setup guide to fix networking and missing dependency issues
1 files changed, 8 insertions(+), 1 deletions(-)

M docs/PREPARATION.md
M docs/PREPARATION.md => docs/PREPARATION.md +8 -1
@@ 32,6 32,11 @@ you can enable and start the bridge interface
rc-update add dnsmasq.lxcbr0 boot
rc-service dnsmasq.lxcbr0 start
```
**NOTE**: Starting `dnsmasq.lxcbr0` in run-level `boot` didn't work for me,
so I used `default` instead. 
The source code block above uses the `boot` run-level, 
because the [Alpine Wiki](https://wiki.alpinelinux.org/wiki/LXC#Prepare_network_on_host) says so.


### Creating the container
Because you installed `lxc-templates-legacy-alpine` earlier,


@@ 90,8 95,10 @@ lxc-attach -n srht -- ping example.com
The easiest way to deploy sourcehut on the lxc container
is to install ansible on the host machine.
``` sh
apk add ansible git # git is required for the next step
apk add ansible git py3-lxc
```
(git is required to clone the playbook 
and we'll `py3-lxc` to easily connect ansible to the lxc container)

Now clone this repo and open it
``` sh