summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 23:11:55 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 23:11:55 +0200
commit3fb143685949bb12fabfbc5b011d38df12281fd8 (patch)
tree4224635c7eaed869f7ad1acc135f40dd7f3ead18
parentRevert "Add githook for updating description from metadata.json." (diff)
downloadprofiles-3fb143685949bb12fabfbc5b011d38df12281fd8.tar.gz
profiles-3fb143685949bb12fabfbc5b011d38df12281fd8.tar.xz
Add basic zabbix server and agent.
-rw-r--r--manifests/zabbix_agent.pp7
-rw-r--r--manifests/zabbix_server.pp14
2 files changed, 21 insertions, 0 deletions
diff --git a/manifests/zabbix_agent.pp b/manifests/zabbix_agent.pp
new file mode 100644
index 0000000..fdbaa04
--- /dev/null
+++ b/manifests/zabbix_agent.pp
@@ -0,0 +1,7 @@
+class profiles::zabbix_agent (
+ String $server,
+) {
+ class { 'zabbix::agent':
+ server => $server,
+ }
+}
diff --git a/manifests/zabbix_server.pp b/manifests/zabbix_server.pp
new file mode 100644
index 0000000..ed4400b
--- /dev/null
+++ b/manifests/zabbix_server.pp
@@ -0,0 +1,14 @@
+# username: Admin
+# Password: zabbix
+class profiles::zabbix_server {
+ class { 'apache':
+ mpm_module => 'prefork',
+ }
+ include apache::mod::php
+
+ class { 'postgresql::server': }
+
+ class { 'zabbix':
+ zabbix_url => $::fqdn,
+ }
+}