puppetlabs/beaker — pull request #224 by anodelman (2014-04-24 04:39:53+00:00)
Title: (QENG-597) 'master' DSL helper can return a non-master node...

...when actual master is confined away

- change around the logic so that the default node is defined at options
parsing, not during test runtime
- determine the default node by it either being
1. the node with the role defined as 'default'
2. the master node
3. the only node
Then add the role 'default' to that node, if necessary
- differentiate between master and default, no longer allow the default
to be used as a master if the master is undefined (keep roles clear,
the master should only be the node defined as master)