ccowart83 / mattermost_terraform_do

Terraform code to spin the Mattermost server using Digital Ocean

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform for Mattermost on Digital Ocean

Terraform code to spin the Mattermost server on Digital Ocean

RUN

Before run change the following parameters:

  • variables.tf:

  • scritps/install-mattermost.sh: In the section for wget you can change the version of mattermost to deploy. Currently we are using version 3.10

  • scritps/install-mattermostdb.sh: You can change the username, database name and the password

  • scripts/create-mattermost-user-team.sh: Change the initial username, password and email Change the initial team name

set the enviroment variables:
# For Digital Ocean
export TF_VAR_digitalocean_ssh_keys=<DO TOKEN>
export TF_VAR_token='<ssh key>'

# For Cloudflare
export TF_VAR_cloudflare_token='<CF TOKEN>'
export TF_VAR_cloudflare_email='<CF EMAIL>'


After that check the terraform with plan
$ terraform plan

To deploy run:
$ terraform apply

If everything went well you can see the ips for the brand new servers.

Then grab the ip and access in the browser your new Mattermost server.

TODO:

  • HTTPS
  • Create modules for each part - server and db.

About

Terraform code to spin the Mattermost server using Digital Ocean

License:MIT License


Languages

Language:Smarty 51.9%Language:HCL 40.3%Language:Shell 7.8%