mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
New Elasticsearch server.
This commit is contained in:
parent
b85e377467
commit
274d0e3aed
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"service": {
|
||||
"name": "db-elasticsearch-staging",
|
||||
"name": "db-elasticsearch",
|
||||
"tags": [
|
||||
"db"
|
||||
],
|
||||
|
|
|
@ -19,7 +19,7 @@ class Command(BaseCommand):
|
|||
if not options['user']:
|
||||
print("Missing user. Did you want to reindex everything? Use -R.")
|
||||
return
|
||||
print(options)
|
||||
|
||||
if re.match(r"([0-9]+)", options['user']):
|
||||
user = User.objects.get(pk=int(options['user']))
|
||||
else:
|
||||
|
|
|
@ -329,10 +329,10 @@ resource "digitalocean_droplet" "node-page" {
|
|||
}
|
||||
|
||||
resource "digitalocean_droplet" "db-elasticsearch" {
|
||||
count = 2
|
||||
count = 1
|
||||
image = var.droplet_os
|
||||
# name = "db-elasticsearch"
|
||||
name = contains([0], count.index) ? "db-elasticsearch" : "db-elasticsearch${count.index}"
|
||||
name = "db-elasticsearch${count.index+1}"
|
||||
region = var.droplet_region
|
||||
size = var.elasticsearch_droplet_size
|
||||
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
||||
|
|
Loading…
Add table
Reference in a new issue