mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Archiving munin.
This commit is contained in:
parent
7889fe4cf0
commit
b0acb97ac1
88 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/srv/newsblur/venv/newsblur3/bin/python
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import digitalocean
|
||||
|
||||
|
|
|
@ -419,7 +419,7 @@ resource "digitalocean_droplet" "db-postgres" {
|
|||
# servers=$(for i in {1..9}; do echo -n "-target=\"digitalocean_droplet.db-mongo-primary[$i]\" " ; done); tf plan -refresh=false `eval echo $servers`
|
||||
#
|
||||
resource "digitalocean_droplet" "db-mongo-primary" {
|
||||
count = 1
|
||||
count = 8
|
||||
backups = true
|
||||
image = var.droplet_os
|
||||
name = "db-mongo-primary${count.index+2}"
|
||||
|
@ -467,18 +467,18 @@ resource "digitalocean_droplet" "db-mongo-secondary" {
|
|||
}
|
||||
|
||||
resource "digitalocean_volume" "mongo_analytics_volume" {
|
||||
count = 2
|
||||
count = 1
|
||||
region = "nyc1"
|
||||
name = "mongoanalytics${count.index==0 ? "" : count.index+1}"
|
||||
name = "mongoanalytics${count.index+2}"
|
||||
size = 100
|
||||
initial_filesystem_type = "xfs"
|
||||
description = "Storage for NewsBlur MongoDB Analytics"
|
||||
}
|
||||
|
||||
resource "digitalocean_droplet" "db-mongo-analytics" {
|
||||
count = 2
|
||||
count = 1
|
||||
image = var.droplet_os
|
||||
name = "db-mongo-analytics${count.index==0 ? "" : count.index+1}"
|
||||
name = "db-mongo-analytics${count.index+2}"
|
||||
region = var.droplet_region
|
||||
size = var.mongo_analytics_droplet_size
|
||||
volume_ids = [element(digitalocean_volume.mongo_analytics_volume.*.id, count.index)]
|
||||
|
|
Loading…
Add table
Reference in a new issue