Advertisement
keith_shannon

Smokeping init.pp

May 12th, 2015
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.58 KB | None | 0 0
  1. class smokeping(
  2.     $mode               = 'standalone',
  3.     $master_url         = 'http://somewhere/cgi-bin/smokeping.cgi',
  4.     $shared_secret      = '/etc/smokeping/slavesecrets.conf',
  5.     $slave_secrets      = '/etc/smokeping/smokeping_secrets',
  6.     $slave_name         = 'slave1',
  7.     $slave_dir          = '/etc/smokeping/config.d/slaves.d',
  8.     $slave_location     = '',
  9.     $slave_display_name = '',
  10.     $slave_color        = '',
  11.     $webserver_user     = 'apache',
  12.     $webserver_group    = 'apache',
  13.     $master_name        = 'default',
  14.     $owner              = 'FF Linux Admins',
  15.     $contact            = 'sa@ffn.com',
  16.     $mailhost           = '10.15.2.70',
  17.     $cgiurl             = 'http://127.0.0.1/smokeping.cgi',
  18.     $syslogfacility     = 'local0',
  19.     $syslogpriority     = 'info',
  20.     $probes             = [ { name => 'FPing', binary => '/usr/bin/fping', step => '300' } ],
  21.     $default_probe      = 'FPing',
  22.     $alerts_to          = 'sa@ffn.com',
  23.     $alerts_from        = 'smokealert@ffn.com',
  24.     $alerts             = [ {
  25.         name    => 'someloss',
  26.         type    => 'loss',
  27.         pattern => '>0%,*12*,>0%,*12*,>0%',
  28.         comment => 'loss 3 times in a row' } ],
  29.     $cgi_remark_top     = 'Welcome to SmokePing for FFN',
  30.     $cgi_title_top      = 'Smokeping Latency Grapher',
  31.     $targets_dir        = '/etc/smokeping/config.d/targets.d',
  32.     $daemon_user        = 'nobody',
  33.     $daemon_group       = 'nobody',
  34.     $path_sendmail      = '/usr/sbin/sendmail',
  35.     $path_imgcache      = '/var/cache/smokeping/images',
  36.     $path_imgurl        = '../smokeping/images',
  37.     $path_datadir       = '/var/lib/smokeping',
  38.     $path_piddir        = '/var/run/smokeping',
  39.     $path_smokemail     = '/etc/smokeping/smokemail',
  40.     $path_tmail         = '/etc/smokeping/tmail',
  41.     $path_cache         = '/var/cache/smokeping/',
  42.     $path_configd       = '/etc/smokeping/config.d/',
  43.     $version            = 'present',
  44.     $enable             = true,
  45.     $start              = true,
  46. )
  47.  
  48. create_resources('smokeping::resource::menu', $smokeping_menu)
  49. create_resources('smokeping::resource::pagetitle', $smokeping_pagetitle)
  50. create_resources('smokeping::resource::alerts', $smokeping_alerts)
  51. create_resources('smokeping::resource::hierarchyparent', $smokeping_hierarchyparent)
  52. create_resources('smokeping::resource::hierarchylevel', $smokeping_hierarchylevel)
  53. create_resources('smokeping::resource::host', $smokeping_host)
  54.  
  55.   {
  56.     class{'smokeping::install': } ->
  57.     class{'smokeping::config': } ~>
  58.     class{'smokeping::service': } ->
  59.     Class['smokeping']
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement