Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1655

Update VM and Docker provisioner to work with hiera converted puppet recipes

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 1.0.0
    • Component/s: deployment, vm
    • Labels:
      None

      Description

      After BIGTOP-1634 has been checked in, vagrant-puppet-vm and vagrant-puppet-docker need to be updated to work with hiera converted puppet recipes. The primary change in this JIRA would be to generate site.yaml as the configuration file instead of site.csv.

        Activity

        Hide
        evans_ye Evans Ye added a comment -

        patch uploaded.
        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.

        Show
        evans_ye Evans Ye added a comment - patch uploaded. 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.
        Hide
        jayunit100 jay vyas added a comment -

        Great work Evans Ye .... Im assuming this is tested? If so +1 , looks good, thanks!

        Show
        jayunit100 jay vyas added a comment - Great work Evans Ye .... Im assuming this is tested? If so +1 , looks good, thanks!
        Hide
        evans_ye Evans Ye added a comment -

        Tested many times. It should works
        I take your +1 and committed, thanks for the review jay vyas!

        Show
        evans_ye Evans Ye added a comment - Tested many times. It should works I take your +1 and committed, thanks for the review jay vyas !

          People

          • Assignee:
            evans_ye Evans Ye
            Reporter:
            evans_ye Evans Ye
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development