Git Product home page Git Product logo

terraform-linode-module-instance-db's Introduction

pre-commit

Linode Instance and Database Module

Terraform module which creates instance(s) and database instance or cluster, Optional can put instances behind a load balancer.

SWUbanner

Requirements

Name Version
terraform >= 1.2.0
linode >= 1.29

Providers

Name Version
linode 1.29.2
random 3.4.3

Modules

No modules.

Resources

Name Type
linode_database_access_controls.this resource
linode_database_mysql.this resource
linode_instance.this resource
linode_nodebalancer.this resource
linode_nodebalancer_config.http resource
linode_nodebalancer_node.http resource
linode_stackscript.this resource
random_string.db_passord resource
random_string.inst_root_passord resource

Inputs

Name Description Type Default Required
authorized_keys n/a list(any) [] no
db_cluster_size number of instance to run in the db cluster number 1 no
db_encrytion n/a bool true no
db_engine_id Options avaible by running linode-cli databases engines string "mysql/8.0.26" no
db_name default database name to use. Will use Label variable if not set string "" no
db_replication_type (Optional) The replication method used for the Managed Database. (none, asynch, semi_synch; default none) string "none" no
db_ssl n/a bool true no
db_type Options avaible by running linode-cli databases types string "g6-nanode-1" no
group n/a string "" no
instance_backups_enabled (Optional) If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service bool true no
instance_count number of instances. if more than 1 is selected a Node ballancer will be created and traffic served through it. number 1 no
instance_image Base Image forthe instance(s). Options avaible by running linode-cli images list string "linode/alpine3.16" no
instance_private_ip (Optional) If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode's region. It can be enabled on an existing Linode but it can't be disabled bool true no
instance_type Linode Instance type. Get options avaible by running linode-cli images list string "g6-standard-1" no
instance_watchdog_enabled The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. bool true no
label The base name for the stack string n/a yes
lb_client_conn_throttle value for Nodebalanacer client_conn_throttle number 0 no
lb_config_check_interval How often, in seconds, to check that backends are up and serving requests. number 60 no
lb_config_check_path (Optional) The URL path to check on each backend. If the backend does not respond to this request it is considered to be down. string "/health" no
lb_config_check_timeout How long, in seconds, to wait for a check attempt before considering it failed. (1-30) number 30 no
region (Required) This is the location where the Linode is deployed. Examples are "us-east", "us-west", "ap-south", etc. See all regions here. Changing region forces the creation of a new Linode Instance string "us-east" no
stackscript_data Map of required StackScript UDF data. map(any) {} no
stackscript_extend appeded to the base stack script that provides mysql access. string "" no
swap_space n/a number 256 no
tags Tage to be added to the linode_instance and and any other resource that had tags list(any) [] no

Outputs

Name Description
database linode database info.https://registry.terraform.io/providers/linode/linode/latest/docs/resources/database#
instance linode instance info.https://registry.terraform.io/providers/linode/linode/latest/docs/resources/instance#
instance_tags List of tags attached tot eh instance
nodebalancer_hostname This NodeBalancer's hostname, ending with .nodebalancer.linode.com
nodebalancer_ipv4 The Public IPv4 Address of this NodeBalancer
nodebalancer_ipv6 The Public IPv6 Address of this NodeBalancer

terraform-linode-module-instance-db's People

Contributors

sanguis avatar

Watchers

 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.