35 lines
829 B
Plaintext
35 lines
829 B
Plaintext
gpodder:
|
|
pkg.installed:
|
|
- pkgs:
|
|
- php-sqlite3
|
|
- libapache2-mod-php8.2
|
|
|
|
srv_gpodder_directory:
|
|
file.recurse:
|
|
- name: /srv/gpodder
|
|
- source: salt://gpodder/micro-gpodder-server/server
|
|
- user: www-data
|
|
- group: www-data
|
|
- dir_mode: '0755'
|
|
|
|
gpodder_web:
|
|
file.managed:
|
|
- require:
|
|
- sls: apache
|
|
- sls: certificates/client
|
|
- names:
|
|
- /etc/apache2/sites-available/gpodder.lunch.org.uk.conf:
|
|
- source: salt://gpodder/gpodder.lunch.org.uk.conf
|
|
apache_module.enabled:
|
|
- name: php8.2
|
|
apache_site.enabled:
|
|
- require:
|
|
- file: /etc/apache2/sites-available/gpodder.lunch.org.uk.conf
|
|
- name: gpodder.lunch.org.uk
|
|
service.running:
|
|
- name: apache2
|
|
- reload: true
|
|
- watch:
|
|
- file: /etc/apache2/sites-available/gpodder.lunch.org.uk.conf
|
|
|