Skip to content

Instantly share code, notes, and snippets.

@blkperl
Created April 17, 2014 07:37
Show Gist options
  • Select an option

  • Save blkperl/10961436 to your computer and use it in GitHub Desktop.

Select an option

Save blkperl/10961436 to your computer and use it in GitHub Desktop.
class role::vpnserver {
class { 'openvpn::server':
# environment specific parameters
}
class { 'collectd::plugin::openvpn':
# environment specific parameters
}
@@leonardo::graph { "${::hostname}-openvpn":
target => "${dashboard_dir}/90-openvpn.graph",
parameters => { 'title' => 'OpenVPN connected users',
'vtitle' => 'Users',
'linemode' => 'connected' },
fields => {
'users' => { 'data' => "sumSeries(collectd.${collectd_name}.openvpn*.*)",},
},
tag => "env_leonardo_${environment}",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment