bodepd/puppet-drdb — pull request #4 by hunner (2012-10-07 07:12:51+00:00)
Title: Use exported resources

These commits replaces the `host1`/`host2` and `ip1`/`ip2` parameters with a `cluster` parameter. The configuration file is discovered via exported resources, created via concat fragments, and the drbd cluster is initialized when both the primary and secondary resources have been realized.

The service resource has been make virtual and moved into its own class so that dependencies may be placed on it, but it may not be realized in the case that both primary & secondary resources are not present.

These commits also adds a `mountpoint` parameter such that an alternate mountpoint may be specified for the drbd-resource.

The exported resources use cases are complex and should be spec tested. These commits add 52 spec tests for the various states a node could be in. It depends on currently-unmerged rodjek/rspec-puppet#51 for testing.

Acceptance tests would also be nice, but that is something for the future.

This change is backwards-incompatible.