Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify uchiwa is not installed #29

Open
a13x212 opened this issue Feb 20, 2015 · 2 comments
Open

Verify uchiwa is not installed #29

a13x212 opened this issue Feb 20, 2015 · 2 comments

Comments

@a13x212
Copy link

a13x212 commented Feb 20, 2015

http.rb will download and install the package on every chef run. It should only try to install the package if it is not already installed. Probably want to use chef only_if

remote_file "#{Chef::Config[:file_cache_path]}/#{pkg}" do
source url
end

package pkg do
options package_options
source "#{Chef::Config[:file_cache_path]}/#{pkg}"
end

@eheydrick
Copy link
Contributor

I'm not able to repro this. Can you include the debug log output and the chef-version/platform you are seeing this on. Here is what I get with Chef 12.0.3 on Ubuntu 14.04:

Recipe: uchiwa::http
  * remote_file[/var/chef/cache/uchiwa_0.5.1-1_amd64.deb] action create (up to date)
  * dpkg_package[uchiwa_0.5.1-1_amd64.deb] action install (up to date)

@a13x212
Copy link
Author

a13x212 commented Apr 24, 2015

CentOS release 6.6 (Final)
Chef: 11.16.4

Recipe: uchiwa::http

  • remote_file[/var/chef/cache/uchiwa-0.5.1-1.x86_64.rpm] action create (up to date)
  • package[uchiwa-0.5.1-1.x86_64.rpm] action install
    • install version 0.5.1-1 of package uchiwa-0.5.1-1.x86_64.rpm
      Recipe: uchiwa::default
  • template[/etc/sensu/uchiwa.json] action create (up to date)
  • service[uchiwa] action enable (up to date)
  • service[uchiwa] action start (up to date)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants