Formula for installing jira-servicedesk, with correct pillar settings it should work also for jira
See the full Salt Formulas installation and usage instructions
Installing jira-servicedesk
Version of jira-servicedesk to be installed
mysql or postgres72
mysql or postgres
com.mysql.jdbc.Driver or org.postgresql.Driver
Hostname or IP of database server
Name of database (default: jira)
Port for mysql/postgresql server
Username for database (remember that it need to be set the same as for #mysql:server:root_user )
Password for database user (remember that it need to be set the same as for #mysql:server:root_password)
Prefix where jira should be installed, default /opt
Homedir where jira will keep data of this jira
Hostname, it's remember to setup that one the same as in #nginx:servers:managed:jira:server_name
(For more settings look here: https://github.com/saltstack-formulas/mysql-formula )
User root for mysql
password for root user
Dir where mysql will keep data in
List of databses need to be created (need to have database from #jira:db_name)
Example pillar below, for settings explanation look here: https://github.com/saltstack-formulas/nginx-formula
Most important option is nginx:servers:managed:jira:server_name as it's defining what will be server name for jira
nginx:
ng:
server:
config:
worker_processes: 4
pid: /run/nginx.pid
events:
worker_connections: 768
http:
sendfile: 'on'
include:
- /etc/nginx/mime.types
- /etc/nginx/conf.d/*.conf
- /etc/nginx/sites-enabled/*
servers:
managed:
jira:
enabled: True
overwrite: True
config:
- server:
- server_name: jira.somedomain.com
- index:
- index.html
- index.htm
- "location /":
- proxy_set_header:
- X-Forwarded-Host
- $host
- proxy_set_header:
- X-Forwarded-Server
- $remote_addr
- proxy_set_header:
- X-Forwarded-for
- $proxy_add_x_forwarded_for
- proxy_pass:
- http://localhost:8080
- client_max_body_size:
- 10M