...
 
Commits (2)
  • Lance Albertson's avatar
    Add missing notifies for ohai[reload_packages] on Fedora/RHEL · 2421f2f5
    Lance Albertson authored
    Without this, it doesn't properly run ``installed_rabbitmq_version`` and causes
    an error:
    
    ```
      * ohai[reload_packages] action nothing (skipped due to action :nothing)
    Recipe: rabbitmq::management_ui
      * rabbitmq_plugin[rabbitmq_management] action enable
    
        ================================================================================
        Error executing action `enable` on resource 'rabbitmq_plugin[rabbitmq_management]'
        ================================================================================
    
        NoMethodError
        -------------
        undefined method `[]' for nil:NilClass
    
        Cookbook Trace: (most recent call first)
        ----------------------------------------
        /tmp/kitchen/cache/cookbooks/rabbitmq/libraries/default.rb:79:in `installed_rabbitmq_version'
        /tmp/kitchen/cache/cookbooks/rabbitmq/providers/plugin.rb:26:in `plugin_enabled?'
        /tmp/kitchen/cache/cookbooks/rabbitmq/providers/plugin.rb:40:in `block in class_from_file'
    ```
    Signed-off-by: default avatarLance Albertson <lance@osuosl.org>
    2421f2f5
  • Michael Klishin's avatar
    Merge pull request #562 from ramereth/ohai-package-notify · 333064ec
    Michael Klishin authored
    Add missing notifies for ohai[reload_packages] on Fedora/RHEL
    333064ec
......@@ -174,6 +174,7 @@ if platform_family?('fedora')
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
notifies :reload, 'ohai[reload_packages]', :immediately
end
else
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do
......@@ -213,6 +214,7 @@ if platform_family?('rhel')
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
notifies :reload, 'ohai[reload_packages]', :immediately
end
else
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do
......