Packer Ansible script for provisioning an Atlassian Jira AWS AMI.
Installs Jira version 7.13.0.
- Install HashiCorp Packer.
- Set AWS account key and secret. Do this in one of two ways:
- Use a tool like aws-vault.
- Export your IAM user's
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
.
- Run
export AMI_USERS=YOU_AWS_ACCOUNT_ID
to grant your AWS account permission to use the AMI. - Post-installation, Jira will need a database. Use a local DB (not recommended for production), install your own, or use the example here terraform-aws/jira to create a Postgres 9.6 RDS instance.
packer build jira.json
Use the AMI ID (printed in the output) when you create the Jira AWS EC2 instance.
See terraform-aws-jira Terraform module for how to create the EC2 instance and start using Atlassian Jira.
The Ansible is linted using Molecule. Molecule does much more than lint. To learn more, see Testing Ansible roles with Molecule.
You can also use the jira
Ansible inventory to create a local VirtualBox VM to test with Vagrant.
Packer file syntax of sonarqube.json
is tested using Packer's validate
command.