mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
Merge pull request #755 from codingCoffee/container
feat(LXC): container support for Frappe
This commit is contained in:
commit
58ec378515
@ -404,6 +404,11 @@ def parse_commandline_args():
|
|||||||
help=argparse.SUPPRESS
|
help=argparse.SUPPRESS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# LXC Support
|
||||||
|
parser.add_argument('--container', dest='container', default=False, action='store_true',
|
||||||
|
help='Use if you\'re creating inside LXC'
|
||||||
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
@ -5,22 +5,22 @@
|
|||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
roles:
|
roles:
|
||||||
- { role: common, tags: common }
|
- { role: common, tags: common }
|
||||||
- { role: locale, tags: locale }
|
- { role: locale, tags: locale }
|
||||||
- { role: mariadb, tags: mariadb }
|
- { role: mariadb, tags: mariadb }
|
||||||
- { role: nodejs, tags: nodejs }
|
- { role: nodejs, tags: nodejs }
|
||||||
- { role: swap, tags: swap, when: production }
|
- { role: swap, tags: swap, when: production and not container }
|
||||||
- { role: logwatch, tags: logwatch, when: production }
|
- { role: logwatch, tags: logwatch, when: production }
|
||||||
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
|
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
|
||||||
- { role: frappe_selinux, tags: frappe_selinux, when: production }
|
- { role: frappe_selinux, tags: frappe_selinux, when: production }
|
||||||
- { role: dns_caching, tags: dns_caching, when: production }
|
- { role: dns_caching, tags: dns_caching, when: production }
|
||||||
- { role: ntpd, tags: ntpd, when: production }
|
- { role: ntpd, tags: ntpd, when: production }
|
||||||
- { role: wkhtmltopdf, tags: wkhtmltopdf }
|
- { role: wkhtmltopdf, tags: wkhtmltopdf }
|
||||||
- { role: psutil, tags: psutil }
|
- { role: psutil, tags: psutil }
|
||||||
- { role: redis, tags: redis }
|
- { role: redis, tags: redis }
|
||||||
- { role: supervisor, tags: supervisor, when: production }
|
- { role: supervisor, tags: supervisor, when: production }
|
||||||
- { role: nginx, tags: nginx, when: production }
|
- { role: nginx, tags: nginx, when: production }
|
||||||
- { role: fail2ban, tags: fail2ban, when: production }
|
- { role: fail2ban, tags: fail2ban, when: production }
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
hostname: name='{{ hostname }}'
|
hostname: name='{{ hostname }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user