aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb
blob: e1fcf4f556961113c768de63126ba35f511392c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#onboarding_version = "#{node['onboarding'][:version]}"
#GROUP_ID = "com/att/asdc/onboarding/#{onboarding_version}"
#NEXUS_IP = "#{node['nexus_ip']}"

bash "Excuting openecomp-zusammen-migration-1707.0.0-SNAPSHOT.jar" do
   code <<-EOH
    [ -d /var/tmp/onboarding/migration ] && rm -rf /var/tmp/onboarding || mkdir -p /var/tmp/onboarding/migration
    cd /var/tmp/onboarding/migration
    /bin/tar -xzf /root/chef-solo/cookbooks/cassandra-actions/files/default/zusammen.tgz -C /var/tmp/onboarding/migration
    cd /var/tmp/onboarding/migration 
    java -Dlog.home=/var/tmp/onboarding/migration/logs -Dconfiguration.yaml=/tmp/sdctool/config/configuration.yaml -jar openecomp-zusammen-migration-1707.0.0-SNAPSHOT.jar org.openecomp.core.migration.MigrationMain
   EOH
end