This commit is contained in:
Andrew Wang 2021-10-03 22:53:41 -04:00
parent 9ed7dcf0c3
commit 895d9e3251
5 changed files with 14 additions and 10 deletions

View File

@ -58,7 +58,7 @@ and ssh
ssh local@192.168.123.XXX
```
in the machine switch to root and update before installing some packages and cloning the repo
In the vm switch to root, install some packages, and clone the repo.
```
$ sudo su
$ cd
@ -66,7 +66,7 @@ $ apt update && apt upgrade
$ apt install git ansible
$ git clone https://git.csclub.uwaterloo.ca/public/mirror-env.git
```
then enter `mirror-env/mirror` and use the instructions listed there
Then enter `mirror-env/mirror` and follow the instructions there.
## Troubleshooting
```

View File

@ -1,7 +1,7 @@
---
- name: setup mirror vm
hosts: 127.0.0.1
gather_facts: false
gather_facts: no
tasks:
- name: mirbr0 network exists
command: "virsh net-dumpxml mirbr0"

View File

@ -1,2 +1,5 @@
# Mirror Playbook
This playbook will be run inside a vm to set up the mirror's services
```
ansible-playbook main.yml
```

View File

@ -1,5 +1,6 @@
- name: setup mirror vm
hosts: 127.0.0.1
gather_facts: no
roles:
- "../roles/system"
- "../roles/mirror"

View File

@ -34,8 +34,8 @@
- { file: ssh_host_ecdsa_key, type: ecdsa }
- { file: ssh_host_ed25519_key, type: ed25519 }
- { file: ssh_host_rsa_key, type: rsa }
- { file: ssh_mirror_ed25519_key, type: ed25519 }
- { file: ssh_mirror_rsa_key, type: rsa }
- { file: ssh_mirror_host_ed25519_key, type: ed25519 }
- { file: ssh_mirror_host_rsa_key, type: rsa }
- name: create .ssh for mirror and push
file: