Bunch more work on infinoted
This commit is contained in:
parent
343e31a903
commit
1c254ae9a1
6 changed files with 70 additions and 0 deletions
|
@ -20,6 +20,15 @@
|
|||
- sudo
|
||||
- collectd/base
|
||||
- openvpn/client
|
||||
- cgit/base
|
||||
- cgit/clean_lock_cron
|
||||
- cgit/make_pkgs_list
|
||||
- git/server
|
||||
- role: apache
|
||||
- role: httpd/mod_ssl
|
||||
- role: httpd/certificate
|
||||
name: wildcard-2014.fedorapeople.org
|
||||
SSLCertificateChainFile: wildcard-2014.fedorapeople.org.intermediate.cert
|
||||
- infinote
|
||||
|
||||
tasks:
|
||||
|
|
1
roles/cgit/make_pkgs_list/files/cgit-projects-infinote
Normal file
1
roles/cgit/make_pkgs_list/files/cgit-projects-infinote
Normal file
|
@ -0,0 +1 @@
|
|||
infinote.git
|
|
@ -25,6 +25,10 @@
|
|||
copy: src=cgit-projects-batcave dest=/etc/cgit-projects-batcave mode=0644
|
||||
when: inventory_hostname.startswith('batcave')
|
||||
|
||||
- name: install the file for infinote
|
||||
copy: src=cgit-projects-infinote dest=/etc/cgit-projects-infinote mode=0644
|
||||
when: inventory_hostname.startswith('infinote')
|
||||
|
||||
- name: install the cron job
|
||||
cron: >
|
||||
name="make-cgit-pkgs-list" cron_file="ansible-make-cgit-pkgs-list"
|
||||
|
|
11
roles/infinote/files/infinoted.service
Normal file
11
roles/infinote/files/infinoted.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=infinoted server
|
||||
After=network.target
|
||||
Documentation=https://github.com/gobby/libinfinity
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/infinoted-0.6
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -27,3 +27,22 @@
|
|||
tags:
|
||||
- infinote
|
||||
- config
|
||||
|
||||
- name: add systemd unit file to start infinote daemon
|
||||
copy: src=infinoted.service dest=/etc/system/systemd/infinoted.service
|
||||
notify: reload systemd service files
|
||||
tags:
|
||||
- infinote
|
||||
- config
|
||||
|
||||
- name: enable infinoted
|
||||
action: service name=infinoted state=running enabled=true
|
||||
tags:
|
||||
- infinote
|
||||
- config
|
||||
|
||||
- name: add config file for infinoted
|
||||
template: src=infinoted.conf dest=/etc/xdg/infinoted.conf
|
||||
tags:
|
||||
- infinote
|
||||
- config
|
||||
|
|
26
roles/infinote/templates/infinoted.conf
Normal file
26
roles/infinote/templates/infinoted.conf
Normal file
|
@ -0,0 +1,26 @@
|
|||
[infinoted]
|
||||
certificate-file=/etc/pki/tls/certs/wildcard-2014.fedoraproject.org.cert
|
||||
key-file=/etc/pki/tls/private/wildcard-2014.fedoraproject.org.key
|
||||
certificate-chain=/etc/pki/tls/certs/wildcard-2014.fedoraproject.org.intermediate.cert
|
||||
port=6522
|
||||
security-policy=require-tls
|
||||
root-directory=/srv/infinote
|
||||
plugins=note-text,autosave,directory-sync,logging
|
||||
password="{{ infinote-password }}"
|
||||
|
||||
[autosave]
|
||||
interval=60
|
||||
# TODO: write git hook. https://github.com/gobby/gobby/wiki/PluginAutosave
|
||||
#hook=
|
||||
|
||||
[directory-sync]
|
||||
directory=/srv/web/infinote
|
||||
interval=10
|
||||
# TODO: write git hook. https://github.com/gobby/gobby/wiki/PluginDirectorySync
|
||||
#hook=
|
||||
|
||||
[logging]
|
||||
log-connections=true
|
||||
log-connection-errors=true
|
||||
log-session-errors=true
|
||||
log-session-request-extra=true
|
Loading…
Add table
Add a link
Reference in a new issue