Skip to content

Commit a4c9809

Browse files
Progress on Vagrant support. Only replication settings and python 3 are
missing
1 parent eaa5558 commit a4c9809

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

Vagrantfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ Vagrant::Config.run do |config|
2121
chef.add_recipe "python"
2222
chef.add_recipe "mysql::client"
2323
chef.add_recipe "mysql::server"
24+
chef.add_recipe "pymysqlreplication-test"
2425
# chef.add_role "web"
2526
#
2627
# # You may also specify custom JSON attributes:
2728
chef.json = {
2829
:mysql => {
30+
:bind_address => "127.0.0.1",
2931
:tunable => {
3032
:log_bin => "mysql-bin.log"
31-
}
33+
},
34+
:server_root_password => "",
35+
:server_repl_password => "",
36+
:server_debian_password => "maint"
3237
}
3338
}
3439
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
maintainer "Julien Duponchelle"
2+
maintainer_email "[email protected]"
3+
license "Apache 2.0"
4+
description "Installs Virtual envs for testing pymysql replication."
5+
version "0.0.1"
6+
7+
depends "python"
8+
9+
recipe "pymysqlreplication-test", "Installs python, pip, and virtualenv"
10+
11+
%w{ ubuntu }.each do |os|
12+
supports os
13+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
vepath = "/home/vagrant/pymysqlreplication2.7"
2+
3+
python_virtualenv vepath do
4+
interpreter "python2.7"
5+
owner "vagrant"
6+
group "vagrant"
7+
action :create
8+
end
9+
10+
python_pip "pymysql" do
11+
virtualenv vepath
12+
action :install
13+
end

0 commit comments

Comments
 (0)