Created
March 27, 2014 13:04
-
-
Save michaeltchapman/9807110 to your computer and use it in GitHub Desktop.
This file contains 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
[root@localhost ~]# puppet apply test.pp | |
Notice: Scope(Backends[volume]): ceph2 lvm1 ceph1 | |
Notice: Compiled catalog for localhost.localdomain.domain.name in environment production in 0.03 seconds | |
Notice: Finished catalog run in 0.05 seconds |
This file contains 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
Backends<| title == 'volume' |> { | |
backends +> 'ceph2' | |
} | |
Backends<| title == 'volume' |> { | |
backends +> 'lvm1' | |
} | |
Backends<| title == 'volume' |> { | |
backends +> 'ceph1' | |
} | |
backends {'volume':} | |
define backends( | |
$backends = [] | |
){ | |
notice($backends) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment