Upgrade rather than install
Change-Id: I29aac79903dfb6c9b164af6cda07d06fec212afc
This commit is contained in:
parent
c0040fb26e
commit
e781461f2c
@ -2,8 +2,8 @@
|
||||
#
|
||||
include_recipe 'python'
|
||||
|
||||
# Pre-reqs that when installed by os package avoid compilation by pip
|
||||
%w[python-pymongo python-yaml supervisor sysstat build-essential python-lxml].each do |pkg_name|
|
||||
# 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 libxml2-dev libxslt1-dev].each do |pkg_name|
|
||||
package pkg_name do
|
||||
action :install
|
||||
end
|
||||
@ -16,7 +16,7 @@ execute 'monasca-setup' do
|
||||
end
|
||||
|
||||
python_pip 'monasca-agent' do
|
||||
action :install
|
||||
action :upgrade
|
||||
notifies :run, 'execute[monasca-setup]'
|
||||
end
|
||||
|
||||
|
@ -27,7 +27,7 @@ describe 'monasca_agent::default' do
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
it 'executes the monasca-setup program' do
|
||||
|
Loading…
x
Reference in New Issue
Block a user