aboutsummaryrefslogtreecommitdiff
path: root/manifests/role
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role')
-rw-r--r--manifests/role/mail.pp1
-rw-r--r--manifests/role/proxy.pp14
2 files changed, 14 insertions, 1 deletions
diff --git a/manifests/role/mail.pp b/manifests/role/mail.pp
index 93f7ff7..0f5ba04 100644
--- a/manifests/role/mail.pp
+++ b/manifests/role/mail.pp
@@ -18,6 +18,7 @@ class nodo::role::mail {
package { 'libcache-cache-perl': # needed by munin mysql plugin
ensure => present,
}
+
munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
config => "user root\nenv.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf",
ensure => $virtual ? {
diff --git a/manifests/role/proxy.pp b/manifests/role/proxy.pp
index ef9c86c..9c6186d 100644
--- a/manifests/role/proxy.pp
+++ b/manifests/role/proxy.pp
@@ -1,5 +1,17 @@
class nodo::role::proxy inherits nodo::base::vserver {
- include nginx
+ class { 'nginx': }
+
+ ssl::cert { "$::domain":
+ notify => Service['nginx'],
+ }
+
+ # For SNI
+ # TODO: generate automatically
+ ssl::cert { "example.org":
+ #generate => true,
+ verify => false,
+ notify => Service['nginx'],
+ }
# Graph nginx
munin::plugin { [ 'nginx_request', 'nginx_status' ]: