All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 14s
Ansible Playbook for CMS - Contest Management System
Installation
- Works on ArchLinux with systemd-boot.
- Just run
ansible-playbook playbooks/install.yml.
Configure CMS Contests
- Run
sudo -iu cmsuserto login cmsuser. - Run
cmsAddAdmin kcwto create admin user. - Run
cmsAdminWebServerto open a temporary admin webserver.- which opens on port 8889 or
<dns_prefix>-admin.<dns_suffix>on port 80.
- which opens on port 8889 or
- You can start / enable
cms@<contest id>.serviceafter contest setup.
Configure group vars secret
# group_vars/cms/secret.yml
---
username: cmsuser
password: example_p4ssword
dns_prefix: cms-test
dns_suffix: example.com
Import Users
- Create a username / password mapping in
/srv/cms/passwd.
e.g.
111550087 ThisIsARandomPassword
- Run
./users.bashto generatecontest.yaml. - Run
cmsImportUser -A -c <contest id> ..
Delete all users from contest
Since you can't import users if they were already in the database.
You'll need to delete them manually before import.
- Run
cut -d' ' -f1 passwd | xargs cmsRemoverUser
Import Tasks
- Put polygon zips in
/tmp/kcw*-.zip. - Run
./import.bashand wait.
Description
Languages
Jinja
93.6%
Shell
6.4%