Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created November 28, 2013 17:40
Show Gist options
  • Select an option

  • Save bodepd/7695685 to your computer and use it in GitHub Desktop.

Select an option

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
}

ghost commented Nov 28, 2013

Copy link
Copy Markdown
# 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