Skip to content

Instantly share code, notes, and snippets.

@michaeltchapman
Created March 27, 2014 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeltchapman/9807110 to your computer and use it in GitHub Desktop.
Save michaeltchapman/9807110 to your computer and use it in GitHub Desktop.
[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
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