mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Hard-coding working node-page volume.
This commit is contained in:
parent
f78cd24124
commit
edf9caafb6
2 changed files with 5 additions and 3 deletions
|
@ -83,6 +83,7 @@
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/newsblur/node:/srv/node
|
- /srv/newsblur/node:/srv/node
|
||||||
- /srv/originals:/srv/originals
|
- /srv/originals:/srv/originals
|
||||||
|
- "/mnt/{{ inventory_hostname | regex_replace('-', '') }}:/mnt/{{ inventory_hostname | regex_replace('-', '') }}"
|
||||||
with_items:
|
with_items:
|
||||||
- node-socket
|
- node-socket
|
||||||
- node-page
|
- node-page
|
||||||
|
|
|
@ -256,11 +256,11 @@ resource "digitalocean_droplet" "node-images" {
|
||||||
|
|
||||||
|
|
||||||
resource "digitalocean_volume" "node_page_volume" {
|
resource "digitalocean_volume" "node_page_volume" {
|
||||||
count = 1
|
count = 0
|
||||||
region = "nyc1"
|
region = "nyc1"
|
||||||
name = "nodepage"
|
name = "nodepage"
|
||||||
size = 100
|
size = 100
|
||||||
initial_filesystem_type = "xfs"
|
initial_filesystem_type = "ext4"
|
||||||
description = "Original Pages for NewsBlur"
|
description = "Original Pages for NewsBlur"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,7 +270,8 @@ resource "digitalocean_droplet" "node-page" {
|
||||||
region = var.droplet_region
|
region = var.droplet_region
|
||||||
size = var.droplet_size
|
size = var.droplet_size
|
||||||
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
||||||
volume_ids = [digitalocean_volume.node_page_volume.0.id]
|
# volume_ids = [digitalocean_volume.node_page_volume.0.id]
|
||||||
|
volume_ids = ["70b5a115-eb5c-11eb-81b7-0a58ac144312"] # 100GB volume created outside TF. Remove when upgrading to 200GB
|
||||||
provisioner "local-exec" {
|
provisioner "local-exec" {
|
||||||
command = "/srv/newsblur/ansible/utils/generate_inventory.py; sleep 120"
|
command = "/srv/newsblur/ansible/utils/generate_inventory.py; sleep 120"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue