Anton Dollmaier @ MiniDebConf Regensburg
class minidebconf::webserver () {
nginx::resource::server { $facts['fqdn']:
www_root => '/var/www/html',
index_files => [
'index.html',
'index.nginx-debian.html',
],
ipv6_enable => true,
}
}
[server]
reports = store,puppetdb
storeconfigs = true
storeconfigs_backend = puppetdb
---
master:
facts:
terminus: puppetdb
cache: yaml
puppetdb ssl-setup
class ssh {
# Declare:
@@sshkey { $facts['fqdn']:
type => dsa,
key => $facts['sshdsakey'],
}
# Collect:
Sshkey <<| |>>
Concat::Fragment <<| tag == "bacula-storage-dir-${bacula_director}" |>>
}
include prometheus::node_exporter
include prometheus::elasticsearch_exporter
prometheus::node_exporter::export_scrape_job: true
prometheus::elasticsearch_exporter::export_scrape_job: true
prometheus::node_exporter::scrape_job_name: node
include prometheus::server
prometheus::collect_scrape_jobs:
- job_name: node
- job_name: elasticsearch