commit | 3632ff95d57ae8ac8dbfb9b2628bc93147fe8b43 | [log] [tgz] |
---|---|---|
author | Greg Stein <gstein@gmail.com> | Thu Apr 15 15:12:10 2021 -0500 |
committer | GitHub <noreply@github.com> | Thu Apr 15 15:12:10 2021 -0500 |
tree | e60f8c2d70206aa5b3309dfb33e2a0279f6f04a5 | |
parent | 9767713b1dda55441314bd16db5c60f7dddf2b93 [diff] |
Add instructions for testing
This daemon uses pubsub to watch for both:
If either are detected, an updated asf-authorization and pit-authorization file will be generated in the directory specified as output_dir
in the svnauthz.yaml.erb template found in the subversion_server module.
This service uses the ASF's pipservice
Puppet class to operate and configure the daemon, and is deployed using the custom subversion_server::svnauthz
class.
Encrypted vars used to generate svnauthz.yaml from template are handled by and scoped for the subversion_server::svnauthz
class.
These values are defined in the encrypted nodefile for the host running the service.
This service runs as www-data
. The installation directory: /opt/svnauthz
and its contents are owned by www-data:www-data
This service is deployed and runs as a systemd service unit.
systemctl (start|stop|status) pipservice-svnauthz.service
journalctl -u pipservice-svnauthz.service
In order to test changes to template files
svnauthz.yaml
output_dir
to (say) /tmp/authz
template_url
to /path/to/your/templates/
(this will likely be .../modules/subversion_server/files/authorization/
; make sure the trailing slash is present)ref
to hold “reference” outputs$ scp svn-master.apache.org:/x1/svn/authorization/*n .
$ ./authz.py
WRITE_FILE:
lines$ diff /tmp/authz/asf-authorization ref/