Drop Backuppc support

debian_11^2
Emilien Mantel 2020-08-23 15:44:53 +02:00 committed by Emilien M
parent 4c63efa588
commit da08953a27
10 changed files with 0 additions and 103 deletions

View File

@ -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

View File

@ -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 %}

View File

@ -1,19 +1,3 @@
--- ---
- 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

View File

@ -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

View File

@ -17,7 +17,6 @@
- cron - cron
- curl - curl
- daemonize - daemonize
- fcgiwrap
- jq - jq
- nghttp2 - nghttp2
- strace - strace
@ -40,11 +39,6 @@
changed_when: false changed_when: false
register: cur_php_version register: cur_php_version
- name: SERVICE | Force start fcgiwrap
service:
name: "fcgiwrap"
state: started
# Bypasses Ansible+Docker issue. With service module... php is not really started! # Bypasses Ansible+Docker issue. With service module... php is not really started!
- name: COMMAND | Force start PHP - name: COMMAND | Force start PHP
command: "service php{{ cur_php_version.stdout }}-fpm start" command: "service php{{ cur_php_version.stdout }}-fpm start"

View File

@ -29,7 +29,6 @@
packages: packages:
- curl - curl
- daemonize - daemonize
- fcgiwrap
# - GeoIP # - GeoIP
- jq - jq
- nghttp2 - nghttp2
@ -49,7 +48,6 @@
register: sf register: sf
loop: loop:
- php-fpm - php-fpm
- fcgiwrap
- name: STAT | Check ports - name: STAT | Check ports
stat: stat:

View File

@ -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
# -------------------------------- # --------------------------------

View File

@ -1,6 +1,3 @@
nginx_events_use: 'epoll' nginx_events_use: 'epoll'
nginx_pid: '/run/nginx.pid' nginx_pid: '/run/nginx.pid'
nginx_etc_dir: '/etc/nginx' nginx_etc_dir: '/etc/nginx'
# Specific sites
nginx_fcgiwrap_sock: '/var/run/fcgiwrap.socket'

View File

@ -2,7 +2,4 @@ nginx_events_use: 'kqueue'
nginx_pid: '/var/run/nginx.pid' nginx_pid: '/var/run/nginx.pid'
nginx_etc_dir: '/usr/local/etc/nginx' nginx_etc_dir: '/usr/local/etc/nginx'
# Specific sites
nginx_fcgiwrap_sock: '/var/run/fcgiwrap/fcgiwrap.sock'
nginx_acmesh_bin: '/usr/local/sbin/acme.sh' nginx_acmesh_bin: '/usr/local/sbin/acme.sh'

View File

@ -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: