parent
a15cb4bcd4
commit
884c437e7b
@ -1,3 +0,0 @@ |
||||
*.iso |
||||
disks/ |
||||
|
@ -0,0 +1,7 @@ |
||||
# local playbook |
||||
this playbook will be run inside a already set up vm to set up the services |
||||
|
||||
used if someone wants to set up vm themselves + wants more disks in the pool |
||||
|
||||
includes varable for which disks to turn into a zfs pool |
||||
|
@ -0,0 +1,31 @@ |
||||
- name: install proftpd |
||||
apt: |
||||
name: proftpd |
||||
state: present |
||||
update_cache: yes |
||||
|
||||
|
||||
# make `/mirror/root` dir |
||||
|
||||
# will this overwrite the /mirror/root/include ? |
||||
|
||||
# double check perms |
||||
|
||||
# proftpd requires modules (how to install ?) |
||||
- name: Copy assets |
||||
copy: |
||||
src: "{{ role_path }}/templates/proftpd.conf" |
||||
dest: /etc/proftpd/proftpd.conf |
||||
# owner: root |
||||
# group: root |
||||
# mode: 0755 |
||||
|
||||
|
||||
# also need to get |
||||
# /etc/proftpd/blacklist.dat (binary) |
||||
# /etc/proftpd/dhparams.pem (maybe not) |
||||
# /etc/proftpd/ldap.conf (unable to read) |
||||
# /etc/proftpd/modules.conf (and maybe everything in /usr/lib/proftpd/) |
||||
# /etc/proftpd/sql.conf (unable to read) |
||||
# /etc/proftpd/tls.conf |
||||
# /etc/proftpd/virtuals.conf |
@ -1,38 +0,0 @@ |
||||
--- |
||||
- name: copy over crond job |
||||
copy: |
||||
src: "{{ role_path }}/templates/csc-mirror" |
||||
dest: /etc/cron.d/csc-mirror |
||||
owner: root |
||||
group: root |
||||
mode: 0644 |
||||
# restart cron |
||||
|
||||
# create mirror home dir in user role |
||||
# - name: mirror home |
||||
# file: |
||||
# path: /home/mirror |
||||
# state: directory |
||||
# owner: mirror |
||||
# group: mirror |
||||
# mode: 0755 |
||||
# recurse: yes |
||||
|
||||
# user template module instead |
||||
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html |
||||
- name: Copy index files |
||||
copy: |
||||
src: "{{ role_path }}/templates/mirror-index" |
||||
dest: /home/mirror/mirror-index |
||||
owner: mirror |
||||
group: mirror |
||||
mode: 0775 |
||||
|
||||
- name: Copy assets |
||||
copy: |
||||
src: "{{ role_path }}/templates/include" |
||||
dest: /mirror/root/include |
||||
owner: root |
||||
group: csc-mirror |
||||
mode: 0755 |
||||
|
@ -0,0 +1,25 @@ |
||||
troubleshooting: try to load the kvm module with `modprobe kvm_intel` |
||||
|
||||
interface should automatically come up but can also use |
||||
$ virt-viewer --domain-name mirror |
||||
if vm is on a remote machine |
||||
$ virt-viewer --connect qemu+ssh://user@host.example.com/system vmnamehere |
||||
|
||||
for now just have a folder of screenshots |
||||
- change name of lvm volume from "lv0-root" to just "root" |
||||
troubleshooting: ignore "failed to unmount /cdrom" and just ctrl+c in viewer |
||||
|
||||
login into your created user (from install), change to root, and create password for root |
||||
$ sudo su |
||||
type in your password |
||||
$ passwd |
||||
create root password |
||||
|
||||
may already be mounted but just to be sure |
||||
$ zfs mount -a |
||||
|
||||
- mirror hosts |
||||
- http://mirror.csclub.uwaterloo.ca (the mirror) |
||||
- http://ca.releases.ubuntu.com (ubuntu releases) |
||||
- http://ca.ceph.com (ceph releases) |
||||
- http://debian.csclub.uwaterloo.ca (csclub's debian packages) |
@ -0,0 +1,73 @@ |
||||
# setup will folders and users for us to use here |
||||
|
||||
# merlin will create |
||||
# /mirror/merlin/run + run/merlin.sock |
||||
|
||||
# do we need to create ln -s from /mirror/merlin/run/merlin.sock to /mirror/merlin/merlin.sock |
||||
|
||||
# - name: set up /home/mirror |
||||
|
||||
|
||||
|
||||
|
||||
- name: copy over crond job |
||||
copy: |
||||
src: "{{ role_path }}/templates/csc-mirror" |
||||
dest: /etc/cron.d/csc-mirror |
||||
owner: root |
||||
group: root |
||||
mode: 0644 |
||||
# restart cron |
||||
|
||||
# create mirror home dir in user role |
||||
# - name: mirror home |
||||
# file: |
||||
# path: /home/mirror |
||||
# state: directory |
||||
# owner: mirror |
||||
# group: mirror |
||||
# mode: 0755 |
||||
# recurse: yes |
||||
|
||||
# also create /mirror/root |
||||
|
||||
- name: Copy index files |
||||
copy: |
||||
src: "{{ role_path }}/templates/mirror-index" |
||||
dest: /home/mirror/mirror-index |
||||
owner: mirror |
||||
group: mirror |
||||
mode: 0775 |
||||
|
||||
- name: Copy assets |
||||
copy: |
||||
src: "{{ role_path }}/templates/include" |
||||
dest: /mirror/root/include |
||||
owner: root |
||||
group: csc-mirror |
||||
mode: 0755 |
||||
|
||||
|
||||
# merlin goes goes under /home |
||||
|
||||
# csc-mirror goes under /etc/cron.d |
||||
|
||||
# include and merlin go under /mirror |
||||
|
||||
|
||||
# delete symlinks and recreate when installing |
||||
|
||||
# the git repo @mirror only update with /home/mirror |
||||
|
||||
# could just rsync whatever is in that repo to /home/mirror |
||||
|
||||
# unable to read files with +s |
||||
# - /mirror/merlin/run/merlin.sock |
||||
# what the: looks like python will create this |
||||
# may need to ln -s from run/merlin.sock to /mirror/merlin/merlin.sock and /home/mirror/merlin/merlin.sock |
||||
|
||||
# for busybox |
||||
# ln -s /bin/busybox ls |
||||
# then ./ls will execute ls from busybox |
||||
|
||||
# in /mirror/merlin/dev need to create null random urandom with mknod |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue