Created
April 17, 2014 06:11
-
-
Save blkperl/10956900 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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