diff --git a/ansible/playbook.yaml b/ansible/playbook.yaml index 42b6f32..ce0af26 100644 --- a/ansible/playbook.yaml +++ b/ansible/playbook.yaml @@ -3,4 +3,4 @@ tasks: - apt: update-cache=yes upgrade=yes - - command: /vagrant/contrib/install.sh -i faafo -i messaging -r api -r worker -r demo + - command: /vagrant/contrib/install.sh -i faafo -i messaging -i database -r api -r worker -r demo -d 'mysql://faafo:password@%localhost:3306/faafo' -m 'amqp://guest:guest@localhost:5672/' -e 'http://localhost' diff --git a/contrib/install.sh b/contrib/install.sh index b97977c..bc16953 100755 --- a/contrib/install.sh +++ b/contrib/install.sh @@ -100,7 +100,7 @@ if [[ -e /etc/os-release ]]; then if [[ $INSTALL_FAAFO -eq 1 ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then sudo apt-get update - sudo apt-get install -y python-dev python-pip supervisor git zlib1g-dev + sudo apt-get install -y python-dev python-pip supervisor git zlib1g-dev libmysqlclient-dev #elif [[ $ID = 'centos' || $ID = 'fedora' || $ID = 'rhel' ]]; then # sudo yum install -y python-devel python-pip #elif [[ $ID = 'opensuse' || $ID = 'sles' ]]; then diff --git a/requirements.txt b/requirements.txt index e0a5ed8..f5157a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ pbr>=0.6,!=0.7,<1.0 anyjson>=0.3.3 eventlet>=0.16.1,!=0.17.0 +MySQL-python PyMySQL>=0.6.2 # MIT License Pillow==2.4.0 # MIT requests>=2.2.0,!=2.4.0