summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-13 00:38:52 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-13 00:40:06 +0200
commit5432563344f96e6d50d26016f95ef4b509398d38 (patch)
tree6b951003a92e514c5d39e6c5876e9c4829a05523
parentAdd basic zabbix server and agent. (diff)
downloadprofiles-zabbix.tar.gz
profiles-zabbix.tar.xz
Made zabbix url configurable.zabbix
-rw-r--r--manifests/zabbix_server.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/zabbix_server.pp b/manifests/zabbix_server.pp
index ed4400b..4ef1ff4 100644
--- a/manifests/zabbix_server.pp
+++ b/manifests/zabbix_server.pp
@@ -1,14 +1,19 @@
# username: Admin
# Password: zabbix
-class profiles::zabbix_server {
+class profiles::zabbix_server (
+ String $zabbix_url = $::fqdn,
+) {
class { 'apache':
mpm_module => 'prefork',
}
include apache::mod::php
+ # puppetlabs-apt needs this
+ ensure_packages(['gpg'])
+
class { 'postgresql::server': }
class { 'zabbix':
- zabbix_url => $::fqdn,
+ zabbix_url => $zabbix_url,
}
}