项目作者: madstone-tech

项目描述 :
Deploy OSTicket via Ansible on amazon linux 2
高级语言:
项目地址: git://github.com/madstone-tech/osticket.git
创建时间: 2019-07-05T14:05:55Z
项目社区:https://github.com/madstone-tech/osticket

开源协议:

下载


Deploy osTicket on Amazon Linux 2

This playbook sets out to install

  • latest version of osticket
  • php 7.2
  • nginx
  • mariadb 10.2

List of Roles

  • common
  • db
  • nginx
  • web

Playbook description

playbook roles description
db.yml common,db runs common role and db
web.yml common,web,nginx runs common, installs osticket and configure nginx

Inventory files

inventory purpose
dev dev environnment
site production environnment

IPs for servers should be updated to reflect your environment

Requirements

  • Amazon-Linux-2
  • Vagrant and Virtualbox if unsing Vagrantfile
  • Ansible 2.8+

Role Variables

variables are found in group_vars/all.yml

Role variable default description
_db_user_ osticket_user database user
_db_pass_ osticket_password database password
_db_name_ osticket_db database name
_db_host_ 192.168.44.11 database host
_osticket_version_ 1.14.x osticket git branch
domain_url support.madst.one domain url
_ssl_cert_directory_ /etc/ssl/certs certificate directory
_ssl_cert_key_directory_ /etc/ssl/private certificate key directory
_ssl_cert_csr_directory_ /etc/ssl/csr certificate signing request directory
_ssl_cert_path_ /etc/ssl/certs/ssl-cert.crt path to certificate
_ssl_cert_key_ /etc/ssl/private/ssl-privkey.pem path to certificate private key
_ssl_cert_csr_ /etc/ssl/csr/ssl-csr.csr path to certificate signing request

modify the variable to suit your environment

directory structure

  1. ├── db.yml
  2. ├── dev
  3. ├── group_vars
  4. ├── all.yml
  5. ├── README.md
  6. ├── roles
  7. ├── common
  8. ├── handlers
  9. └── main.yml
  10. └── tasks
  11. └── main.yml
  12. ├── db
  13. ├── handlers
  14. └── main.yml
  15. └── tasks
  16. └── main.yml
  17. ├── nginx
  18. ├── handlers
  19. └── main.yml
  20. ├── tasks
  21. └── main.yml
  22. └── templates
  23. └── osticket.conf.j2
  24. └── web
  25. ├── files
  26. ├── php.ini
  27. └── www.conf
  28. ├── handlers
  29. └── main.yml
  30. └── tasks
  31. └── main.yml
  32. ├── site
  33. ├── Vagrantfile
  34. └── web.yml

Install

  1. clone this repository git clone https://github.com/madstone-tech/osticket
  2. modify the variables to suit your environment
    1. in site file, change the IP or FQDN for the [web] servers
    2. in group_vars/all.yml change the database username, passwords, fqdn/ip and domain_url
  3. configure up the database server ansible-playbook -i site db.yml
  4. configure the web server ansible-playbook -i site web.yml

if running the database and web applcation under the same make sure the IP/FQDN under the variables are the same in the variable file

Dependencies

If running this playbook Vagrant, Vagrant and Virtualbox need to be installed

License

BSD

Author Information

Andhi Jeannot
MADSTONE TECHNOLOGY, inc

https://madstone.io

https://github.com/madstone-tech