blob: 1f71f8cf326aeb9ae501d9d51f5c3303b918b475 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cookbook_file "/tmp/normatives.tar.gz" do
source "normatives.tar.gz"
end
working_directory = "/tmp"
bash "upgrade-normatives" do
cwd "#{working_directory}"
code <<-EOH
tar xvfz /tmp/normatives.tar.gz
cd normatives/scripts/import/tosca/
/bin/chmod +x upgradeNormative.py importGroupTypes.py
python upgradeNormative.py -i "#{node['HOST_IP']}" --debug=true > /var/lib/jetty/logs/upgradeNormative.log
python importGroupTypes.py -i "#{node['HOST_IP']}" > /var/lib/jetty/logs/importGroupTypes.log
EOH
end
|