Skip to content

Instantly share code, notes, and snippets.

@blkperl
Created April 17, 2014 06:11
Show Gist options
  • Select an option

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

Select an option

Save blkperl/10956900 to your computer and use it in GitHub Desktop.
class role::leonardo {
$template_dir = '/opt/leonardo/leonardo/graphs'
class { '::leonardo':
graphite_url => 'https://graphite.example.org',
template_dir => $template_dir,
install_dir => '/opt/leonardo/leonardo',
}->
file { [$template_dir, "${template_dir}/servers"]:
ensure => directory,
}
# Environment tag can be removed when environment support is added to PuppetDB
File <<| tag == "env_leonardo_${::environment}" |>> {}
Leonardo::Dashboard <<| tag == "env_leonardo_${::environment}" |>> {}
Leonardo::Graph <<| tag == "env_leonardo_${::environment}" |>> {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment