mirror of https://github.com/lucascbeyeler/zimbra
Including PolicyD configuration as said in Issue #2
This commit is contained in:
parent
90a5ccf564
commit
af2465d618
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
# mysql:host=xx;dbname=yyy
|
||||
#
|
||||
# pgsql:host=xx;dbname=yyy
|
||||
#
|
||||
# sqlite:////full/unix/path/to/file.db?mode=0666
|
||||
#
|
||||
#$DB_DSN="sqlite:////tmp/cluebringer.sqlite";
|
||||
#$DB_DSN="mysql:host=localhost;dbname=cluebringer";
|
||||
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb";
|
||||
$DB_USER="root";
|
||||
#$DB_PASS="";
|
||||
$DB_TABLE_PREFIX="";
|
||||
|
||||
|
||||
#
|
||||
# THE BELOW SECTION IS UNSUPPORTED AND MEANT FOR THE ORIGINAL SPONSOR OF V2
|
||||
#
|
||||
|
||||
#$DB_POSTFIX_DSN="mysql:host=localhost;dbname=postfix";
|
||||
#$DB_POSTFIX_USER="root";
|
||||
#$DB_POSTFIX_PASS="";
|
||||
|
||||
?>
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
# tasks file for zimbra
|
||||
# This is the main file for the role.
|
||||
|
||||
#
|
||||
# Loading variables
|
||||
|
|
@ -15,4 +14,6 @@
|
|||
- include: nodistro/install-spamassassin.yml
|
||||
- include: nodistro/modify-logo.yml
|
||||
when: zmlogologin is defined and zmlogoapp is defined
|
||||
- include: nodistro/policyd.yml
|
||||
when: zmlogologin is defined and zmlogoapp is defined
|
||||
notify: reboot-machine
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# FILE: install-zimbra
|
||||
# AUTHOR: Lucas Costa Beyeler
|
||||
# E-MAIL: lucas.costab@outlook.com
|
||||
# LAST CHANGE: 15/02/2017
|
||||
#
|
||||
# Playbook file to install and activate the PolicyD service in the Open Source Edition.
|
||||
# PLEASE - If you made a change here, remember to do in a way that every distro
|
||||
# can use this change. Otherwise, please use the folder RedHat/Debian.
|
||||
|
||||
- name: Installing and Enabling the PolicyD Service
|
||||
shell: ./zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd
|
||||
args:
|
||||
chdir: /opt/zimbra/bin/
|
||||
|
||||
- name: Configuring PolicyD Database
|
||||
copy:
|
||||
src: 'config.php'
|
||||
dest: /opt/zimbra/common/share/webui/includes/config.php
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Configuring PolicyD Web Interface
|
||||
file:
|
||||
src: /opt/zimbra/common/share/webui
|
||||
dest: /opt/zimbra/data/httpd/htdocs/webui
|
||||
state: link
|
||||
Loading…
Reference in New Issue