mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 00:21:23 +00:00
[playbooks] ubuntu installer for develop
This commit is contained in:
parent
1806d31960
commit
468d2251e8
@ -66,6 +66,7 @@
|
|||||||
- git
|
- git
|
||||||
- htop
|
- htop
|
||||||
- libcrypto++-dev
|
- libcrypto++-dev
|
||||||
|
|
||||||
- libfreetype6-dev
|
- libfreetype6-dev
|
||||||
- libjpeg8-dev
|
- libjpeg8-dev
|
||||||
- liblcms2-dev
|
- liblcms2-dev
|
||||||
@ -76,6 +77,11 @@
|
|||||||
- libxrender1
|
- libxrender1
|
||||||
- libxslt1-dev
|
- libxslt1-dev
|
||||||
- libxslt1.1
|
- libxslt1.1
|
||||||
|
- tcl8.6-dev
|
||||||
|
- tk8.6-dev
|
||||||
|
- zlib1g-dev
|
||||||
|
- libopenjpeg-dev
|
||||||
|
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
- ntp
|
- ntp
|
||||||
@ -86,10 +92,8 @@
|
|||||||
- redis-server
|
- redis-server
|
||||||
- screen
|
- screen
|
||||||
- supervisor
|
- supervisor
|
||||||
- tcl8.6-dev
|
|
||||||
- tk8.6-dev
|
|
||||||
- vim
|
- vim
|
||||||
- xfonts-75dpi
|
- xfonts-75dpi
|
||||||
- xfonts-base
|
- xfonts-base
|
||||||
- zlib1g-dev
|
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
7
playbooks/develop/includes/mariadb_ubuntu.yml
Normal file
7
playbooks/develop/includes/mariadb_ubuntu.yml
Normal 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
|
||||||
|
|
8
playbooks/develop/includes/wkhtmltopdf_ubuntu_debian.yml
Normal file
8
playbooks/develop/includes/wkhtmltopdf_ubuntu_debian.yml
Normal 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
|
@ -16,7 +16,6 @@
|
|||||||
- redis
|
- redis
|
||||||
- mariadb
|
- mariadb
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
|
||||||
|
|
||||||
# install wkhtmltopdf
|
# install wkhtmltopdf
|
||||||
- name: cask installs
|
- name: cask installs
|
||||||
@ -30,4 +29,3 @@
|
|||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
|
|
||||||
|
|
@ -5,12 +5,62 @@
|
|||||||
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
|
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
|
||||||
mysql_config_template: "templates/simple_mariadb_config.cnf"
|
mysql_config_template: "templates/simple_mariadb_config.cnf"
|
||||||
mysql_conf_dir: /etc/my.cnf.d
|
mysql_conf_dir: /etc/my.cnf.d
|
||||||
|
wkhtmltopdf_version: 0.12.2.1
|
||||||
|
|
||||||
tasks:
|
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
|
# setup MariaDB
|
||||||
- include: includes/setup_mariadb.yml
|
- include: includes/setup_mariadb.yml
|
||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
|
|
Loading…
Reference in New Issue
Block a user