Coder Social home page Coder Social logo

llabake / terraform-google-openvpn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deimoscloud/terraform-google-openvpn

0.0 0.0 0.0 92 KB

A terraform module to setup OpenVPN on GCP

Home Page: https://registry.terraform.io/modules/DeimosCloud/openvpn/google/latest

License: Apache License 2.0

HCL 72.31% Shell 27.69%

terraform-google-openvpn's Introduction

Terraform OpenVPN GCP

A terraform module to setup OpenVPN on GCP.

Usage

module "openvpn" {
  source     = "../modules/terraform-openvpn-gcp"
  name       = var.name
  region     = var.region
  project_id = var.project_id
  network    = module.vpc.network
  subnetwork = module.vpc.public_subnetwork
  output_dir = "${path.module}/openvpn"
  users      = ["bob", "alice"]
}

Contributing

Report issues/questions/feature requests on in the issues section.

Full contributing guidelines are covered here.

Requirements

Name Version
terraform >= 0.14

Providers

Name Version
google 4.12.0
local 2.1.0
null 3.1.0
random 3.1.0
tls 3.1.0

Modules

No modules.

Resources

Name Type
google_compute_address.default resource
google_compute_disk.this resource
google_compute_firewall.allow-external-ssh resource
google_compute_instance_from_template.this resource
google_compute_instance_template.tpl resource
local_file.private_key resource
null_resource.openvpn_download_configurations resource
null_resource.openvpn_install_script resource
null_resource.openvpn_update_users_script resource
random_id.password resource
random_id.this resource
tls_private_key.ssh-key resource

Inputs

Name Description Type Default Required
auto_delete_disk Whether or not the boot disk should be auto-deleted bool false no
disk_size_gb n/a string "30" no
disk_type (Optional) The GCE disk type. Can be either pd-ssd, local-ssd, pd-balanced or pd-standard string "pd-standard" no
image_family n/a string "ubuntu-2004-lts" no
install_script_commit_sha The commit sha we are using in order to determine which version of the install file to use: https://raw.githubusercontent.com/angristan/openvpn-install/7d5c2d9/openvpn-install.sh string "7d5c2d9" no
labels Labels, provided as a map map {} no
machine_type Machine type to create, e.g. n1-standard-1 string "n1-standard-1" no
metadata Metadata, provided as a map map {} no
name The name to use when generating resources string n/a yes
network The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks. string "default" no
network_tier Network network_tier string "STANDARD" no
output_dir Folder to store all user openvpn details string "openvpn" no
project_id The GCP Project ID any null no
region The GCP Project Region any null no
remote_user The user to operate as on the VM. SSH Key is generated for this user string "ubuntu" no
route_only_private_ips Routes only private IPs through the VPN (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) bool false no
service_account Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account.
object({
email = string,
scopes = set(string)
})
{
"email": null,
"scopes": []
}
no
subnetwork The name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided. any null no
tags network tags to attach to the instance list [] no
users list of user to create list(string) [] no
zone The GCP Zone to deploy VPN Compute instance to any n/a yes

Outputs

Name Description
users Created Users

terraform-google-openvpn's People

Contributors

mensaah avatar semantic-release-bot avatar eddiepullen avatar z11mm avatar tomisinlalude-deimos 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.