add test and ERB conditional logic for when ::domain not present
Merge pull request #13 from nrvale0/master

add test and ERB conditional logic for when ::domain not present