This repository was archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
87 lines (70 loc) · 3.13 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# terraform-digitalocean-cjdns-node
# ============================================================================
# Copyright (c) 2018 Verb Networks Pty Ltd <contact [at] verbnetworks.com>
# - All rights reserved.
#
# Apache License v2.0
# - http://www.apache.org/licenses/LICENSE-2.0
# required variables - no defaults
# ============================================================================
variable "hostname" {
description = "The hostname applied to this cjdns-node droplet."
}
variable "region" {
description = "The digitalocean region to start this cjdns-node within."
}
variable "user" {
description = "The user initial login user to create with passwordless sudo access for this cjdns-node, if empty no account will be created. The root account is always disabled."
}
variable "user_sshkey" {
description = "The sshkey to apply to the initial user account - password based auth is always disabled."
}
variable "cjdroute_config" {
description = "The local cjdroute.conf file to push to this cjdns-node droplet."
}
# required variables - with defined default values
# ============================================================================
variable "cjdns_commit" {
description = "The git-commit sha1 to download from github.com/cjdelisle/cjdns then build and install on this cjdns-node, if you wish to use a more recent crashy commit you can specify it here."
default = "efd7d7f82be405fe47f6806b6cc9c0043885bc2e"
# https://github.com/cjdelisle/cjdns/releases
# - crashy = 0a08d0812976548ce12db9d80a9c0033fb8a14fc @ 2018-01-10
# - v20 = efd7d7f82be405fe47f6806b6cc9c0043885bc2e
# - v19.1 = f4f73cdc120907f9952f7c74abe68394fd2879a0
# - v19 = 63fdd890d7b9903e386ae094fe4ace548d3988f6
# - v18 = 6781eddb2b206da6d9e14fa79fab507c9f154acf
}
variable "image" {
description = "The digitalocean image to use as the base for this cjdns-node."
default = "ubuntu-16-04-x64"
}
variable "size" {
description = "The digitalocean droplet size to use for this cjdns-node."
default = "512mb"
# 512mb = $5 with 1TB bandwidth per/month as at 2017-12
# 1gb = $10 with 2TB bandwidth per/month as at 2017-12
}
variable "backups" {
description = "Enable/disable droplet backup functionality on this cjdns-node."
default = false
}
variable "monitoring" {
description = "Enable/disable droplet monitoring functionality on this cjdns-node."
default = true
}
variable "ipv6" {
description = "Enable/disable getting a public IPv6 on this digitalocean-droplet."
default = true
}
variable "private_networking" {
description = "Enable/disable digitalocean private-networking functionality on this cjdns-node."
default = false
}
# optional variables
# ============================================================================
variable "ipfs_version" {
description = "If set will additionally install IPFS on this cjdns-node, without any config! This is provided as a convenience only since IPFS is generally a useful use-case for cjdns-nodes to participate in."
default = "" # fragile, depends on upstream tarball - empty string means do not install
# https://dist.ipfs.io/go-ipfs/versions
# - v0.4.13 @ 2017-10-16
}