librenms: debian buster
This commit is contained in:
parent
a6a973c034
commit
3d1a681850
@ -8,19 +8,19 @@
|
||||
- graphviz
|
||||
- imagemagick
|
||||
- mtr-tiny
|
||||
- mysql-server
|
||||
- mariadb-server
|
||||
- nmap
|
||||
- php-net-ipv4
|
||||
- php-net-ipv6
|
||||
- php-pear
|
||||
- php7.0-cli
|
||||
- php7.0-curl
|
||||
- php7.0-fpm
|
||||
- php7.0-gd
|
||||
- php7.0-json
|
||||
- php7.0-mcrypt
|
||||
- php7.0-mysql
|
||||
- php7.0-snmp
|
||||
- php7.3-cli
|
||||
- php7.3-curl
|
||||
- php7.3-fpm
|
||||
- php7.3-gd
|
||||
- php7.3-json
|
||||
- php7.3-mbstring
|
||||
- php7.3-mysql
|
||||
- php7.3-snmp
|
||||
- python-mysqldb
|
||||
- rrdtool
|
||||
- snmp
|
||||
@ -39,15 +39,18 @@
|
||||
- name: Clone librenms
|
||||
git: repo=https://github.com/librenms/librenms.git dest=/usr/share/librenms depth=1 update=no
|
||||
|
||||
- name: Ensure rrd directory exists
|
||||
file: path=/var/lib/librenms/rrd owner=librenms group=www-data mode=0775 state=directory
|
||||
|
||||
- name: Ensure rrd link exists
|
||||
file: src=/var/lib/librenms/rrd dest=/usr/share/librenms/rrd state=link
|
||||
|
||||
- name: Configure librenms
|
||||
template: src=config.php.j2 dest=/usr/share/librenms/config.php owner=librenms group=www-data mode=0440
|
||||
|
||||
- name: Set php timezone
|
||||
lineinfile:
|
||||
path: "{{ item }}"
|
||||
regexp: ';?date\.timezone'
|
||||
line: 'date.timezone = Europe/Berlin'
|
||||
with_items:
|
||||
- /etc/php/7.3/cli/php.ini
|
||||
- /etc/php/7.3/fpm/php.ini
|
||||
|
||||
- name: Ensure certificates are available
|
||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ librenms_domain }}.key -out /etc/nginx/ssl/{{ librenms_domain }}.crt -days 730 -subj "/CN={{ librenms_domain }}" creates=/etc/nginx/ssl/{{ librenms_domain }}.crt
|
||||
notify: Restart nginx
|
||||
@ -70,5 +73,5 @@
|
||||
file: src=/etc/nginx/sites-available/librenms dest=/etc/nginx/sites-enabled/librenms state=link
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Start php7.0-fpm
|
||||
service: name=php7.0-fpm state=started enabled=yes
|
||||
- name: Start php7.3-fpm
|
||||
service: name=php7.3-fpm state=started enabled=yes
|
||||
|
@ -31,7 +31,7 @@ server {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
|
||||
fastcgi_intercept_errors on;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user