Here's the summary of changes to make it easier to be reviewed:
- update provision.sh in docker provisioner and Vagrantfile's $script Here Doc in vm provisioner to generate yaml configurations which accorded to hiera conversion.
- update components in default vagrantconfig.yamls to be an array: [hadoop, hbase], to accord hiera conversion.
- enable default vagrantyamlconf $vagrantyamlconf = "vagrantconfig.yaml" to fix that ./docker-hadoop.sh --destroy can not find variable issue
- Adjust for loop structure in docker-hadoop.sh create function to reduce code duplication.
Now both provisioners should work with the hiera converted puppet recipes.