-
Notifications
You must be signed in to change notification settings - Fork 66
Socket file creation? #16
Comments
+1 This worked for me too. Could be missing something also, but I needed this symlink to be able to connect Sequel Pro to my local mysql server. |
i ended up overriding the project with: if $mysql {
$mysql_dbs = $mysql ? {
true => ["${name}_development", "${name}_test"],
default => $mysql,
}
mysql::db { $mysql_dbs:
notify => File['/tmp/mysql.sock']
}
}
file { '/tmp/mysql.sock':
ensure => link,
target => '/opt/boxen/data/mysql/socket',
} I didn't go all the way to getting the path from the system, but wouldn't be too hard. |
There is a issue #3 where this is discussed but, they ended up using a bloated database.yml file. |
Agreed. I was trying to get this running for a simple php project, and ran into a bit of trouble. First I used the symlink that @dinshaw first tried:
This allowed Sequel Pro to connect, but not php because the defaults in the php.ini were looking for the socket at So, instead of changing every instance of
For good measure I restarted mysql and apache:
..and got it working for both php and Sequel Pro. Now I am new to Boxen and have not yet taken the high dive into Puppet. I'm afraid I'm probably not the one to submit a pull request until I make it further into Puppet's Docs. Perhaps someone would be willing to take this on and I could learn from the commit. Thanks a lot |
I think this comes down to engineering teams determining the tools they use; if they decide to use Boxen or support developers using Boxen, it's not (IMO) much to provide Rails database configs (in the examples above) with support for Boxen or non-Boxen users. |
to avoid the need to customize the database config, would it be possible/a good idea to do something like:
?
This worked for me on a Mt Lion install. This is my first dip into Puppet/Boxen, so sorry if i missed something obvious.
if it seems like a good approach, i will submit a PR
The text was updated successfully, but these errors were encountered: