{"action":"closed","issue":{"url":"https://api.github.com/repos/boxen/puppet-mysql/issues/9","labels_url":"https://api.github.com/repos/boxen/puppet-mysql/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/boxen/puppet-mysql/issues/9/comments","events_url":"https://api.github.com/repos/boxen/puppet-mysql/issues/9/events","html_url":"https://github.com/boxen/puppet-mysql/issues/9","id":11492610,"number":9,"title":"mysql databases are created on every boxen run","user":{"login":"bilke","id":149656,"avatar_url":"https://avatars.githubusercontent.com/u/149656?v=3","gravatar_id":"","url":"https://api.github.com/users/bilke","html_url":"https://github.com/bilke","followers_url":"https://api.github.com/users/bilke/followers","following_url":"https://api.github.com/users/bilke/following{/other_user}","gists_url":"https://api.github.com/users/bilke/gists{/gist_id}","starred_url":"https://api.github.com/users/bilke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilke/subscriptions","organizations_url":"https://api.github.com/users/bilke/orgs","repos_url":"https://api.github.com/users/bilke/repos","events_url":"https://api.github.com/users/bilke/events{/privacy}","received_events_url":"https://api.github.com/users/bilke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boxen/puppet-mysql/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2013-02-28T09:11:13Z","updated_at":"2015-04-25T21:54:51Z","closed_at":"2015-04-25T21:54:51Z","body":"I have a rails project:\r\n\r\n```puppet\r\nclass projects::rails-ember {\r\n\r\n\tboxen::project { 'rails-ember':\r\n\t\truby   => '1.9.3',\r\n\t\tmysql => true,\r\n\t\tnginx  => true,\r\n\t\tsource => 'bilke/rails-ember'\r\n  }\r\n\r\n}\r\n```\r\n\r\nOn the first boxen run everything is setup fine but on subsequent runs boxen tries to create the mysql databases again:\r\n\r\n```bash\r\nNotice: /Stage[main]/Projects::Rails-ember/Boxen::Project[rails-ember]/Mysql::Db[rails-ember_test]/Exec[create mysql db rails-ember_test]/returns: mysqladmin: CREATE DATABASE failed; error: 'Can't create database 'rails-ember_test'; database exists'\r\nError: mysqladmin -uroot create rails-ember_test returned 1 instead of one of [0]\r\nError: /Stage[main]/Projects::Rails-ember/Boxen::Project[rails-ember]/Mysql::Db[rails-ember_test]/Exec[create mysql db rails-ember_test]/returns: change from notrun to 0 failed: mysqladmin -uroot create rails-ember_test returned 1 instead of one of [0]\r\n```\r\n\r\nHow to fix that? Am I missing something?\r\nThanks!"}}