Upgrade rather than install
Change-Id: I29aac79903dfb6c9b164af6cda07d06fec212afc
This commit is contained in:
parent
c0040fb26e
commit
e781461f2c
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
include_recipe 'python'
|
include_recipe 'python'
|
||||||
|
|
||||||
# Pre-reqs that when installed by os package avoid compilation by pip
|
# Pre-reqs that when installed by os packages avoid or enable compilation by pip as needed
|
||||||
%w[python-pymongo python-yaml supervisor sysstat build-essential python-lxml].each do |pkg_name|
|
%w[python-pymongo python-yaml supervisor sysstat build-essential libxml2-dev libxslt1-dev].each do |pkg_name|
|
||||||
package pkg_name do
|
package pkg_name do
|
||||||
action :install
|
action :install
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ execute 'monasca-setup' do
|
||||||
end
|
end
|
||||||
|
|
||||||
python_pip 'monasca-agent' do
|
python_pip 'monasca-agent' do
|
||||||
action :install
|
action :upgrade
|
||||||
notifies :run, 'execute[monasca-setup]'
|
notifies :run, 'execute[monasca-setup]'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe 'monasca_agent::default' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'python_pip installs monasca-agent' do
|
it 'python_pip installs monasca-agent' do
|
||||||
expect(chef_run).to install_python_pip 'monasca-agent'
|
expect(chef_run).to upgrade_python_pip 'monasca-agent'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'executes the monasca-setup program' do
|
it 'executes the monasca-setup program' do
|
||||||
|
|
Loading…
Reference in New Issue