2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[playbooks] ubuntu installer for develop

This commit is contained in:
Anand Doshi 2016-03-16 15:24:19 +05:30
parent 1806d31960
commit 468d2251e8
5 changed files with 80 additions and 13 deletions

View File

@ -66,6 +66,7 @@
- git
- htop
- libcrypto++-dev
- libfreetype6-dev
- libjpeg8-dev
- liblcms2-dev
@ -76,6 +77,11 @@
- libxrender1
- libxslt1-dev
- libxslt1.1
- tcl8.6-dev
- tk8.6-dev
- zlib1g-dev
- libopenjpeg-dev
- nodejs
- npm
- ntp
@ -86,10 +92,8 @@
- redis-server
- screen
- supervisor
- tcl8.6-dev
- tk8.6-dev
- vim
- xfonts-75dpi
- xfonts-base
- zlib1g-dev
when: ansible_os_family == 'Debian'

View File

@ -0,0 +1,7 @@
---
- name: Add apt repositry
apt_repository: repo='deb [arch=amd64,i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu {{ ansible_distribution_release }} main' state=present
- name: apt-get install
apt: pkg=mariadb-server state=present

View File

@ -0,0 +1,8 @@
---
- name: Download wkhtmltopdf
get_url:
url=http://download.gna.org/wkhtmltopdf/0.12/{{ wkhtmltopdf_version }}/wkhtmltox-{{ wkhtmltopdf_version }}_linux-{{ ansible_distribution_release }}-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
dest="/tmp/"
- name: Install wkhtmltopdf deb
apt: deb=/tmp/wkhtmltox-{{ wkhtmltopdf_version }}_linux-{{ ansible_distribution_release }}-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb

View File

@ -7,7 +7,7 @@
mysql_conf_dir: /usr/local/etc/my.cnf.d
tasks:
# install pre-requisites
- name: install prequisites
homebrew: name={{ item }} state=present
@ -16,18 +16,16 @@
- redis
- mariadb
- nodejs
- npm
# install wkhtmltopdf
- name: cask installs
homebrew_cask: name={{ item }} state=present
with_items:
- wkhtmltopdf
# setup MariaDB
- include: includes/setup_mariadb.yml
# setup frappe-bench
- include: includes/setup_bench.yml

View File

@ -5,12 +5,62 @@
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
mysql_config_template: "templates/simple_mariadb_config.cnf"
mysql_conf_dir: /etc/my.cnf.d
wkhtmltopdf_version: 0.12.2.1
tasks:
# install pre-requisites
- name: install prequisites
apt: pkg={{ item }} state=present
with_items:
- redis
- nodejs
- npm
# for mariadb
- software-properties-common
# for wkhtmltopdf
- libxrender1
- libxext6
- xfonts-75dpi
- xfonts-base
# for Pillow
- libjpeg8-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms2-dev
- libwebp-dev
- python-tk
become: yes
become_user: root
- name: install pillow prerequisites for Ubuntu < 14.04
apt: pkg={{ item }} state=present
with_items:
- libtiff4-dev
- tcl8.5-dev
- tk8.5-dev
when: ansible_distribution_version < 14.04
- name: install pillow prerequisites for Ubuntu > 14.04
apt: pkg={{ item }} state=present
with_items:
- libtiff5-dev
- tcl8.6-dev
- tk8.6-dev
when: ansible_distribution_version >= 14.04
# install MariaDB
- include: includes/mariadb_ubuntu.yml
# install WKHTMLtoPDF
- include: includes/install_wkhtml.yml
# setup MariaDB
- include: includes/setup_mariadb.yml
# setup frappe-bench
- include: includes/setup_bench.yml