This playbook sets out to install
- latest version of osticket
- php 7.2
- nginx
- mariadb 10.2
- common
- db
- nginx
- web
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 | purpose |
---|---|
dev | dev environnment |
site | production environnment |
IPs for servers should be updated to reflect your environment
- Amazon-Linux-2
- Vagrant and Virtualbox if unsing Vagrantfile
- Ansible 2.8+
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
├── db.yml
├── dev
├── group_vars
│ ├── all.yml
├── README.md
├── roles
│ ├── common
│ │ ├── handlers
│ │ │ └── main.yml
│ │ └── tasks
│ │ └── main.yml
│ ├── db
│ │ ├── handlers
│ │ │ └── main.yml
│ │ └── tasks
│ │ └── main.yml
│ ├── nginx
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ └── main.yml
│ │ └── templates
│ │ └── osticket.conf.j2
│ └── web
│ ├── files
│ │ ├── php.ini
│ │ └── www.conf
│ ├── handlers
│ │ └── main.yml
│ └── tasks
│ └── main.yml
├── site
├── Vagrantfile
└── web.yml
- clone this repository
git clone https://github.com/madstone-tech/osticket
- modify the variables to suit your environment
- in
site
file, change the IP or FQDN for the [web] servers - in
group_vars/all.yml
change the database username, passwords, fqdn/ip and domain_url
- in
- configure up the database server
ansible-playbook -i site db.yml
- 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
If running this playbook Vagrant, Vagrant and Virtualbox need to be installed
BSD
Andhi Jeannot MADSTONE TECHNOLOGY, inc