1 working_directory = "/tmp"
2 cl_release=node['version'].split('.')[0..2].join('.').split('-')[0]
3 printf("\033[33mcl_release=[%s]\n\033[0m", cl_release)
5 cookbook_file "/tmp/sdctool.tar" do
9 bash "extract sdctool.tar" do
10 cwd "#{working_directory}"
12 tar xvf /tmp/sdctool.tar
17 bash "import-Comformance" do
18 cwd "#{working_directory}"
20 conf_dir=/tmp/sdctool/config
21 tosca_dir=/tmp/sdctool/tosca
23 cl_version=`grep 'toscaConformanceLevel:' $conf_dir/configuration.yaml |awk '{print $2}'`
25 cd /tmp/sdctool/scripts
26 /bin/chmod +x sdcSchemaFileImport.sh
27 echo "execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} "
28 ./sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir}