diff options
author | k.kedron <k.kedron@partner.samsung.com> | 2019-07-09 13:02:08 +0200 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2019-07-10 12:43:55 +0000 |
commit | 004fb6486e9f31a2f8398051c77dcd8ce86e20d2 (patch) | |
tree | dd120428486e42614352262e174e8d4cb61e8bc9 /asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb | |
parent | 533eb74d88fef53ce652e97c1251dac63f392760 (diff) |
Corrected typos in chef scripts.
Corrected typos and checkstyles.
Issue-ID: SDC-2424
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: If2464645dad7da3fa7706e35e4ccace3ece6aeb4
Diffstat (limited to 'asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb')
-rw-r--r-- | asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb new file mode 100644 index 0000000000..0490c89668 --- /dev/null +++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb @@ -0,0 +1,20 @@ +working_directory = "/tmp" +cl_release=node['version'].split('.')[0..2].join('.').split('-')[0] +printf("\033[33mcl_release=[%s]\n\033[0m", cl_release) + + + +bash "import-Conformance" do + cwd "#{working_directory}" + code <<-EOH + conf_dir=/tmp/sdctool/config + tosca_dir=/tmp/sdctool/tosca + + cl_version=`grep 'toscaConformanceLevel:' $conf_dir/configuration.yaml |awk '{print $2}'` + + cd /tmp/sdctool/scripts + /bin/chmod +x sdcSchemaFileImport.sh + echo "execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap" + ./sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap + EOH +end
\ No newline at end of file |