mirror of
https://github.com/frappe/bench.git
synced 2025-02-02 19:08:24 +00:00
commit
d487824b31
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
become: yes
|
||||||
|
become_user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create user
|
- name: Create user
|
||||||
user:
|
user:
|
||||||
|
@ -33,7 +33,7 @@ def install_virtualbox():
|
|||||||
check_output(['bench', 'install', 'virtualbox'])
|
check_output(['bench', 'install', 'virtualbox'])
|
||||||
|
|
||||||
def install_packer():
|
def install_packer():
|
||||||
if not spawn.find_executable("packer") or not os.path.exists(os.path.join('/', 'opt', 'packer')):
|
if not spawn.find_executable("packer") and not os.path.exists(os.path.join('/', 'opt', 'packer')):
|
||||||
check_output(['bench', 'install', 'packer'])
|
check_output(['bench', 'install', 'packer'])
|
||||||
|
|
||||||
def silent_remove(name, is_dir=False):
|
def silent_remove(name, is_dir=False):
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
|
|
||||||
# Install base requirements.
|
|
||||||
apt-get install -y curl git wget vim python-dev gcc
|
|
||||||
|
|
||||||
# Install ERPNext
|
# Install ERPNext
|
||||||
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
|
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
|
||||||
sudo python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
|
python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
|
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
|
|
||||||
# Install base requirements.
|
|
||||||
apt-get install -y curl git wget vim python-dev gcc
|
|
||||||
|
|
||||||
# Install ERPNext
|
# Install ERPNext
|
||||||
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
|
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
|
||||||
sudo python install.py --production --user frappe --mysql-root-password frappe --admin-password admin
|
python install.py --production --user frappe --mysql-root-password frappe --admin-password admin
|
4
vm/scripts/debian_family/install_prerequisites.sh
Normal file
4
vm/scripts/debian_family/install_prerequisites.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash -eux
|
||||||
|
|
||||||
|
# Install base requirements.
|
||||||
|
apt-get install -y curl git wget vim python-dev gcc
|
@ -38,7 +38,7 @@
|
|||||||
"iso_checksum_type": "md5",
|
"iso_checksum_type": "md5",
|
||||||
"ssh_username": "frappe",
|
"ssh_username": "frappe",
|
||||||
"ssh_password": "frappe",
|
"ssh_password": "frappe",
|
||||||
"ssh_port": 22,
|
"ssh_port": 22,
|
||||||
"ssh_wait_timeout": "10000s",
|
"ssh_wait_timeout": "10000s",
|
||||||
"http_directory": "http",
|
"http_directory": "http",
|
||||||
"guest_additions_mode": "disable",
|
"guest_additions_mode": "disable",
|
||||||
@ -70,9 +70,12 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
||||||
"script": "scripts/debian_family/setup.sh"
|
"script": "scripts/debian_family/setup.sh"
|
||||||
}, {
|
},{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
||||||
|
"script": "scripts/debian_family/install_prerequisites.sh"
|
||||||
|
}, {
|
||||||
|
"type": "shell",
|
||||||
"script": "scripts/debian_family/install_erpnext_develop.sh"
|
"script": "scripts/debian_family/install_erpnext_develop.sh"
|
||||||
}, {
|
}, {
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
"iso_checksum_type": "md5",
|
"iso_checksum_type": "md5",
|
||||||
"ssh_username": "frappe",
|
"ssh_username": "frappe",
|
||||||
"ssh_password": "frappe",
|
"ssh_password": "frappe",
|
||||||
"ssh_port": 22,
|
"ssh_port": 22,
|
||||||
"ssh_wait_timeout": "10000s",
|
"ssh_wait_timeout": "10000s",
|
||||||
"http_directory": "http",
|
"http_directory": "http",
|
||||||
"guest_additions_mode": "disable",
|
"guest_additions_mode": "disable",
|
||||||
@ -69,9 +69,12 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
||||||
"script": "scripts/debian_family/setup.sh"
|
"script": "scripts/debian_family/setup.sh"
|
||||||
}, {
|
},{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
||||||
|
"script": "scripts/debian_family/install_prerequisites.sh"
|
||||||
|
}, {
|
||||||
|
"type": "shell",
|
||||||
"script": "scripts/debian_family/install_erpnext_production.sh"
|
"script": "scripts/debian_family/install_erpnext_production.sh"
|
||||||
}, {
|
}, {
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user