joerocklin / chef-mariadb

A cookbook for installing MariaDB, based on a fork of the Opscode Cookbook for MySQL.
Apache License 2.0
25 stars 24 forks source link

fix for user/group mismatch in recipes/server_ec2.rb #8

Open neurogenesis opened 10 years ago

neurogenesis commented 10 years ago

mariadb::server will install with user/group owner of 'mysql' by default, while recipe/server_ec2.rb expects user & group to be 'mariadb'.

this patch allows recipes/server_ec2.rb to use two new default options set in attributes/server.rb:

default['mariadb']['service']['user'] = 'mysql' default['mariadb']['service']['group'] = 'mysql'

recipes/server.rb should also be refactored to support custom user/group.

joerocklin commented 10 years ago

For consistency, the user/group settings should be set in all other recipes too. Otherwise this leads to a confusing attribute setting - unless it gets scoped within an ec2 name.