Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class smokeping(
- $mode = 'standalone',
- $master_url = 'http://somewhere/cgi-bin/smokeping.cgi',
- $shared_secret = '/etc/smokeping/slavesecrets.conf',
- $slave_secrets = '/etc/smokeping/smokeping_secrets',
- $slave_name = 'slave1',
- $slave_dir = '/etc/smokeping/config.d/slaves.d',
- $slave_location = '',
- $slave_display_name = '',
- $slave_color = '',
- $webserver_user = 'apache',
- $webserver_group = 'apache',
- $master_name = 'default',
- $owner = 'FF Linux Admins',
- $contact = 'sa@ffn.com',
- $mailhost = '10.15.2.70',
- $cgiurl = 'http://127.0.0.1/smokeping.cgi',
- $syslogfacility = 'local0',
- $syslogpriority = 'info',
- $probes = [ { name => 'FPing', binary => '/usr/bin/fping', step => '300' } ],
- $default_probe = 'FPing',
- $alerts_to = 'sa@ffn.com',
- $alerts_from = 'smokealert@ffn.com',
- $alerts = [ {
- name => 'someloss',
- type => 'loss',
- pattern => '>0%,*12*,>0%,*12*,>0%',
- comment => 'loss 3 times in a row' } ],
- $cgi_remark_top = 'Welcome to SmokePing for FFN',
- $cgi_title_top = 'Smokeping Latency Grapher',
- $targets_dir = '/etc/smokeping/config.d/targets.d',
- $daemon_user = 'nobody',
- $daemon_group = 'nobody',
- $path_sendmail = '/usr/sbin/sendmail',
- $path_imgcache = '/var/cache/smokeping/images',
- $path_imgurl = '../smokeping/images',
- $path_datadir = '/var/lib/smokeping',
- $path_piddir = '/var/run/smokeping',
- $path_smokemail = '/etc/smokeping/smokemail',
- $path_tmail = '/etc/smokeping/tmail',
- $path_cache = '/var/cache/smokeping/',
- $path_configd = '/etc/smokeping/config.d/',
- $version = 'present',
- $enable = true,
- $start = true,
- )
- create_resources('smokeping::resource::menu', $smokeping_menu)
- create_resources('smokeping::resource::pagetitle', $smokeping_pagetitle)
- create_resources('smokeping::resource::alerts', $smokeping_alerts)
- create_resources('smokeping::resource::hierarchyparent', $smokeping_hierarchyparent)
- create_resources('smokeping::resource::hierarchylevel', $smokeping_hierarchylevel)
- create_resources('smokeping::resource::host', $smokeping_host)
- {
- class{'smokeping::install': } ->
- class{'smokeping::config': } ~>
- class{'smokeping::service': } ->
- Class['smokeping']
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement