Closed joseluis-fw closed 4 years ago
8.5.1
ALL
Use package_action option in mysql_service
package_action
mysql_service
mysql_service 'wadus' do package_action :upgrade end
Upgrade the server package
================================================================================ 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'
Cookbook version
8.5.1
Chef-client version
ALL
Platform Details
ALL
Scenario:
Use
package_action
option inmysql_service
Steps to Reproduce:
Expected Result:
Upgrade the server package
Actual Result: