Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created November 28, 2013 17:40
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 bodepd/7695685 to your computer and use it in GitHub Desktop.
Save bodepd/7695685 to your computer and use it in GitHub Desktop.
# file manifests/osd.pp
class ceph::osd($instance_hash) {
create_resources('osd::instance', $instance_hash)
}
# file manifests/osd/instance.pp
define ceph::osd::instance(param1, ...) {
# logic goes here
}
Copy link

ghost commented Nov 28, 2013

# file manifests/osd.pp

class ceph::osd($array_of_instance_hash) {
$array_of_instance_hash.each do |instance_hash|
create_resources('osd::instance', $instance_hash)
end
}

file manifests/osd/instance.pp

define ceph::osd::instance(param1, ...) {

logic goes here

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment