Skip to content

Commit

Permalink
feat(LXC): container support for Frappe
Browse files Browse the repository at this point in the history
  • Loading branch information
codingCoffee committed Dec 11, 2018
1 parent b9f750f commit ea73913
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions playbooks/install.py
Expand Up @@ -404,6 +404,11 @@ def parse_commandline_args():
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()

return args
Expand Down
32 changes: 16 additions & 16 deletions playbooks/site.yml
Expand Up @@ -5,22 +5,22 @@
become: yes
become_user: root
roles:
- { role: common, tags: common }
- { role: locale, tags: locale }
- { role: mariadb, tags: mariadb }
- { role: nodejs, tags: nodejs }
- { role: swap, tags: swap, when: production }
- { role: logwatch, tags: logwatch, when: production }
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
- { role: frappe_selinux, tags: frappe_selinux, when: production }
- { role: dns_caching, tags: dns_caching, when: production }
- { role: ntpd, tags: ntpd, when: production }
- { role: wkhtmltopdf, tags: wkhtmltopdf }
- { role: psutil, tags: psutil }
- { role: redis, tags: redis }
- { role: supervisor, tags: supervisor, when: production }
- { role: nginx, tags: nginx, when: production }
- { role: fail2ban, tags: fail2ban, when: production }
- { role: common, tags: common }
- { role: locale, tags: locale }
- { role: mariadb, tags: mariadb }
- { role: nodejs, tags: nodejs }
- { role: swap, tags: swap, when: production and not container }
- { role: logwatch, tags: logwatch, when: production }
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
- { role: frappe_selinux, tags: frappe_selinux, when: production }
- { role: dns_caching, tags: dns_caching, when: production }
- { role: ntpd, tags: ntpd, when: production }
- { role: wkhtmltopdf, tags: wkhtmltopdf }
- { role: psutil, tags: psutil }
- { role: redis, tags: redis }
- { role: supervisor, tags: supervisor, when: production }
- { role: nginx, tags: nginx, when: production }
- { role: fail2ban, tags: fail2ban, when: production }
tasks:
- name: Set hostname
hostname: name='{{ hostname }}'
Expand Down

0 comments on commit ea73913

Please sign in to comment.