Upgrade rather than install

Change-Id: I29aac79903dfb6c9b164af6cda07d06fec212afc
This commit is contained in:
Tim Kuhlman 2014-07-31 16:36:23 -06:00
parent c0040fb26e
commit e781461f2c
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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