Drop Backuppc support
parent
8268eb266a
commit
6e5fce00e7
|
@ -10,8 +10,3 @@ About modules
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Dynamic modules must be set with full path (see `nginx_load_modules` path).
|
Dynamic modules must be set with full path (see `nginx_load_modules` path).
|
||||||
|
|
||||||
Sites not tested
|
|
||||||
----------------
|
|
||||||
|
|
||||||
- BackupPC
|
|
||||||
|
|
|
@ -41,7 +41,6 @@ Templates
|
||||||
---------
|
---------
|
||||||
|
|
||||||
- `_base`: static template
|
- `_base`: static template
|
||||||
- `_backuppc`: access to [BackupPC](http://backuppc.sourceforge.net/) (be careful: you need to install [fcgiwrap](https://packages.debian.org/stretch/fcgiwrap))
|
|
||||||
- `_dokuwiki`
|
- `_dokuwiki`
|
||||||
- `_redirect`: should not be called explicitly
|
- `_redirect`: should not be called explicitly
|
||||||
- `_phalcon`: Phalcon PHP Framework
|
- `_phalcon`: Phalcon PHP Framework
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
{% extends "_base.j2" %}
|
|
||||||
|
|
||||||
{% block root %}
|
|
||||||
root /usr/share/backuppc/cgi-bin;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_try_files %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_index %}
|
|
||||||
index index.cgi;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_local_content %}
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /backuppc/image {
|
|
||||||
alias /usr/share/backuppc/image;
|
|
||||||
expires 60d;
|
|
||||||
}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_upstream_location %}
|
|
||||||
location ~ \.cgi$ {
|
|
||||||
gzip off;
|
|
||||||
include fastcgi.conf;
|
|
||||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
||||||
fastcgi_index BackupPC_Admin;
|
|
||||||
fastcgi_param SCRIPT_FILENAME /usr/share/backuppc/cgi-bin$fastcgi_script_name;
|
|
||||||
}
|
|
||||||
{% endblock %}
|
|
|
@ -1,19 +1,2 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: APT | Install webapps and related tools
|
|
||||||
apt:
|
|
||||||
pkg: "{{ packages }}"
|
|
||||||
state: present
|
|
||||||
install_recommends: no
|
|
||||||
vars:
|
|
||||||
packages:
|
|
||||||
- backuppc
|
|
||||||
- samba-common-bin
|
|
||||||
- smbclient
|
|
||||||
|
|
||||||
- name: SERVICE | Ensure backuppc is started
|
|
||||||
service:
|
|
||||||
name: backuppc
|
|
||||||
state: started
|
|
||||||
register: b
|
|
||||||
failed_when: b.failed and 'Another BackupPC is running' not in b.msg
|
|
||||||
|
|
|
@ -1,23 +1,2 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
#- name: APT | Install web apps
|
|
||||||
# pkgng:
|
|
||||||
# name: "backuppc"
|
|
||||||
# state: present
|
|
||||||
#
|
|
||||||
#- name: COMMAND | Activate backuppc config
|
|
||||||
# command: >
|
|
||||||
# cp /usr/local/etc/backuppc/config.pl.sample /usr/local/etc/backuppc/config.pl
|
|
||||||
# creates=/usr/local/etc/backuppc/config.pl
|
|
||||||
#
|
|
||||||
#- name: FILE | Fix backuppc permissions
|
|
||||||
# file:
|
|
||||||
# path: /usr/local/etc/backuppc/config.pl
|
|
||||||
# owner: backuppc
|
|
||||||
# group: backuppc
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# We don't manage BackupPC on FreeBSD... too dirty. :/
|
|
||||||
#
|
|
||||||
#- name: SERVICE | Ensure backuppc is started
|
|
||||||
# service: name=backuppc state=started enabled=yes
|
|
||||||
|
|
|
@ -229,9 +229,6 @@
|
||||||
state: 'absent'
|
state: 'absent'
|
||||||
- name: 'redirect-to.local'
|
- name: 'redirect-to.local'
|
||||||
redirect_to: 'http://test.local'
|
redirect_to: 'http://test.local'
|
||||||
- name: 'backuppc.local'
|
|
||||||
template: '_backuppc'
|
|
||||||
htpasswd: 'hello'
|
|
||||||
- name: 'test-ssl.local'
|
- name: 'test-ssl.local'
|
||||||
proto: ['http', 'https']
|
proto: ['http', 'https']
|
||||||
template: '_base'
|
template: '_base'
|
||||||
|
@ -429,20 +426,6 @@
|
||||||
password: "qwerty"
|
password: "qwerty"
|
||||||
force_basic_auth: yes
|
force_basic_auth: yes
|
||||||
|
|
||||||
# --------------------------------
|
|
||||||
# BackupPC
|
|
||||||
# --------------------------------
|
|
||||||
- name: -- VERIFY BACKUPPC --
|
|
||||||
uri:
|
|
||||||
url: "http://backuppc.local/"
|
|
||||||
user: "hanx"
|
|
||||||
password: "qwerty"
|
|
||||||
force_basic_auth: yes
|
|
||||||
return_content: yes
|
|
||||||
register: authbpc
|
|
||||||
when: ansible_distribution != 'FreeBSD'
|
|
||||||
failed_when: authbpc.content.find('BackupPC Server Status') == -1
|
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# SSL
|
# SSL
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
|
@ -40,7 +40,6 @@ nginx_dirs:
|
||||||
owner: "root"
|
owner: "root"
|
||||||
|
|
||||||
nginx_templates_no_dir:
|
nginx_templates_no_dir:
|
||||||
- '_backuppc'
|
|
||||||
- '_proxy'
|
- '_proxy'
|
||||||
|
|
||||||
nginx_servers_default_headers:
|
nginx_servers_default_headers:
|
||||||
|
|
Loading…
Reference in New Issue