sous-chefs / mysql

Development repository for the mysql cookbook
https://supermarket.chef.io/cookbooks/mysql
Apache License 2.0
338 stars 690 forks source link

`package_action` option in README no longer exists #590

Closed joseluis-fw closed 4 years ago

joseluis-fw commented 5 years ago

Cookbook version

8.5.1

Chef-client version

ALL

Platform Details

ALL

Scenario:

Use package_action option in mysql_service

Steps to Reproduce:

mysql_service 'wadus' do
  package_action :upgrade
end

Expected Result:

Upgrade the server package

Actual Result:

 ================================================================================
 Recipe Compile Error in /var/chef/cache/cookbooks/mysql_pt/recipes/default.rb
 ================================================================================

 NoMethodError
 -------------
 undefined method `package_action' for MysqlCookbook::MysqlService

 Cookbook Trace:
 ---------------
   /var/chef/cache/cookbooks/mysql_pt/recipes/default.rb:37:in `block in from_file'
   /var/chef/cache/cookbooks/mysql_pt/recipes/default.rb:7:in `from_file'

 Relevant File Content:
 ----------------------
 /var/chef/cache/cookbooks/mysql_pt/recipes/default.rb:

  30:      'collation-server' => 'utf8_general_ci',
  31:      'max_heap_table_size' => '32M',
  32:      'expire_logs_days' => '10',
  33:      'max_binlog_size' => '100M',
  34:      'innodb_buffer_pool_size' => '256M'
  35:    )
  36:    package_name 'mysql-community-server'
  37>>   package_action :upgrade
  38:    initial_root_password node['mysql']['initial_root_password']
  39:    service_manager 'sysvinit'