[Crowbar] bc-template-$barclamp.schema file duplication

Adam Spiers aspiers at suse.com
Mon Jul 23 05:37:06 CDT 2012


Are the *.schema files in 

  barclamps/crowbar/crowbar_framework/schema

still necessary?  They seem to partially duplicate the *.schema files
in each barclamp.  Using this shell hack:

    for s in barclamps/*/chef/data_bags/crowbar/*.schema; do
      s2=barclamps/crowbar/crowbar_framework/schema/${s##*/}
      if ! [ -e $s2 ]; then 
        echo "NOT THERE: $s2"
      else 
        if cmp $s $s2 >/dev/null; then
          echo "IDENTICAL: $s and $s2"
        else
          diff -u $s $s2 | diffstat | grep -v 'file changed'
        fi
      fi
    done | sort

tells me that 6 of the pairs are identical, 6 are different, and 6 are
missing from barclamps/crowbar/crowbar_framework/schema.



More information about the Crowbar mailing list