This project is mirrored from https://github.com/rabbitmq/chef-cookbook.git. Pull mirroring updated .
  1. 25 Jul, 2020 1 commit
  2. 17 Jul, 2020 4 commits
    • 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
    • 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 #561 from ramereth/ramereth/plugin-umask-fix-5.x · 70fa62fe
      Michael Klishin authored
      Fix Chef 16 issue with plugin resource
      70fa62fe
    • Lance Albertson's avatar
      Fix Chef 16 issue with plugin resource · 9c061c07
      Lance Albertson authored
      It appears that ruby-2.7 (which ships with Chef 16) likely doesn't like
      ``0022`` as an integer and is causing issues on Chef 16. To workaround the
      issue, we can simply change this to a string.
      
      The following is the output of the original error I've been hitting.
      
      ```
      Recipe: rabbitmq::management_ui
        * rabbitmq_plugin[rabbitmq_management] action enable
          * execute[rabbitmq-plugins enable rabbitmq_management] action run
      
            ================================================================================
            Error executing action `run` on resource 'execute[rabbitmq-plugins enable rabbitmq_management]'
            ================================================================================
      
            TypeError
            ---------
            no implicit conversion from nil to integer
      
            Resource Declaration:
            ---------------------
            # In /tmp/kitchen/cache/cookbooks/rabbitmq/providers/plugin.rb
      
      37:     execute "rabbitmq-plugins enable #{new_resource.plugin}" do
      38:       umask 0022
      39:       Chef::Log.info "Enabling RabbitMQ plugin '#{new_resource.plugin}'."
      40:       environment shell_environment.merge(
      41:         'PATH' => "#{ENV['PATH']}:/usr/lib/rabbitmq/bin"
      42:       )
      43:       new_resource.updated_by_last_action(true)
      44:     end
      45:   end
      ```
      Signed-off-by: default avatarLance Albertson <lance@osuosl.org>
      9c061c07
  3. 14 Jul, 2020 12 commits
  4. 13 Jul, 2020 5 commits
  5. 24 Jun, 2020 2 commits
  6. 17 Jun, 2020 2 commits
  7. 10 Jun, 2020 1 commit
  8. 26 May, 2020 2 commits
  9. 05 May, 2020 2 commits
  10. 24 Feb, 2020 2 commits
  11. 19 Dec, 2019 1 commit
  12. 18 Dec, 2019 1 commit
  13. 17 Dec, 2019 2 commits
  14. 16 Dec, 2019 1 commit
  15. 12 Dec, 2019 1 commit
  16. 11 Dec, 2019 1 commit