r/web/hlc: Configure formsubmit

Tabitha's Hatch Learning Center site has two user submission forms: one
for signing in/out students for class, and another for parents to
register new students for the program.  These are handled by
*formsubmit* and store data in CSV spreadsheets.
This commit is contained in:
2023-01-09 12:59:58 -06:00
parent 632e1dd906
commit 1b7a8885b8
3 changed files with 37 additions and 0 deletions

View File

@@ -49,3 +49,29 @@
notify: reload httpd
tags:
- apache-config
- name: ensure hatchlearningcenter.org data directory exists
file:
path: /srv/www/hatchlearningcenter.org/data
mode: ug=rwx,o=
owner: webapp.hlc
group: apache
setype: httpd_sys_rw_content_t
state: directory
tags:
- datadir
- name: ensure formsubmit is configured hatchlearningcenter.org attendance
copy:
content: '{{ hlc_formsubmit_attendance|to_nice_yaml(indent=2) }}'
dest: /etc/formsubmit/hlc-attendance.yml
mode: u=rw,go=r
tags:
- config
- name: ensure formsubmit is configured hatchlearningcenter.org signup
copy:
content: '{{ hlc_formsubmit_signup|to_nice_yaml(indent=2) }}'
dest: /etc/formsubmit/hlc-signup.yml
mode: u=rw,go=r
tags:
- config