GithubHelp home page GithubHelp logo

dibuyo / terraform-digitalocean-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stancel/terraform-digitalocean-wordpress

0.0 0.0 0.0 13 KB

Launch a WordPress Droplet with 1 command

Home Page: https://alexpodobnik.com

License: MIT License

HCL 100.00%

terraform-digitalocean-wordpress's Introduction

terraform-digitalocean-wordpress

A Terraform module for creating a fully functional WordPress Droplet.

Module Input Variables

Defaults:

  • image - The Droplet image ID or slug, defaults to wordpress-18-04
  • name - The name of the Droplet, defaults to wordpress
  • region - The region of the Droplet, defaults to nyc1
  • size - The instance size, defaults to 1gb
  • backups - Boolean controlling if backups are made, defaults to false
  • monitoring - Boolean controlling whether monitoring agent is installed, defaults to false
  • ipv6 - Boolean controlling if IPv6 is enabled, defaults to false
  • private_networking - Boolean controlling if private networks are enabled, defaults to false
  • resize_disk - Boolean controlling whether to increase the disk size when resizing a Droplet, defaults to true

Module Outputs

  • ip - The public ipv4 address for the Droplet

Usage

Generate a Personal Access Token

https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2#how-to-generate-a-personal-access-token

Examples

Take a look at wordpress.tf for a working example.

Create a file

Create a file with a .tf extension, and add the following

module "wordpress" {
  source  = "alexandarp/wordpress/digitalocean"
  version = "1.0.7"
  name = "my-wordpress-droplet"
}

You can overwrite more default variables if you need to.

Launching the Droplet

Initialize Terraform:

terraform init

Review your changes:

terraform plan

Apply your changes:

terraform apply -auto-approve

Output Droplet information:

terraform show

Enabling WordPress

In order to start the wordpress installation, you will need to ssh into the instance. The credentials will be provided via e-mail.

Contributing

When contributing to this repository, please first discuss the change you wish to make via a Github issue.

terraform-digitalocean-wordpress's People

Contributors

alexandarp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.