Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ terraform_deployment: chatops-development
terraform_external_network_id: 0dc30001-edfb-4137-be76-8e51f38fd650
terraform_stack_volume_id: f8d37290-598e-4dc7-a8d6-e771a64c549f
bastion_key_passphrase: "{{ vault_bastion_key_passphrase }}"
cloud: "scratch-dev"
304 changes: 153 additions & 151 deletions chatops_deployment/ansible/prod/group_vars/all/vault.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ terraform_deployment: chatops-production
terraform_external_network_id: 5283f642-8bd8-48b6-8608-fa3006ff4539
terraform_stack_volume_id: df3fdff2-30fc-4aca-b8e5-03412a507607
bastion_key_passphrase: "{{ vault_bastion_key_passphrase }}"
cloud: "cloud-microservices"
2 changes: 1 addition & 1 deletion chatops_deployment/ansible/roles/chatops/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
- name: Start ChatOps container
community.docker.docker_container:
image: "{{ chatops_image }}"
name: "chatops-{{ count }}"
name: "chatops"
pull: always
state: started
restart: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- name: Get key info
community.crypto.openssl_ssl_certificates_privatekey_info:
community.crypto.openssl_privatekey_info:
path: "./{{ env }}_ssl/{{ service }}.key"
register: ssl_certificates_privatekey_info
ignore_errors: true

- name: Get certificate info
community.crypto.x509_ssl_certificates_certificate_info:
community.crypto.x509_certificate_info:
path: "./{{ env }}_ssl/{{ service }}.crt"
register: ssl_certificates_certificate_info
ignore_errors: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ deployment="{{ terraform_deployment }}"
external_network_id="{{ terraform_external_network_id }}"
floating_ip="{{ terraform_floating_ip }}"
stack_volume_id="{{ terraform_stack_volume_id }}"
environment="{{ env }}"
environment="{{ env }}"
cloud="{{ cloud }}"
6 changes: 4 additions & 2 deletions chatops_deployment/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ terraform {
}

provider "openstack" {
cloud = "openstack"
cloud = var.cloud
}

module "networking" {
source = "./modules/networking"

deployment = var.deployment
external_network_id = var.external_network_id
cloud = var.cloud
}

module "compute" {
Expand All @@ -28,4 +29,5 @@ module "compute" {
deployment = var.deployment
stack_volume_id = var.stack_volume_id
environment = var.environment
}
cloud = var.cloud
}
2 changes: 1 addition & 1 deletion chatops_deployment/terraform/modules/compute/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}

provider "openstack" {
cloud = "openstack"
cloud = var.cloud
}

resource "openstack_compute_keypair_v2" "bastion_keypair" {
Expand Down
3 changes: 2 additions & 1 deletion chatops_deployment/terraform/modules/compute/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ variable "floating_ip" {}
variable "private_subnet" {}
variable "stack_volume_id" {}
variable "environment" {}
variable "stack_secgroup" {}
variable "stack_secgroup" {}
variable "cloud" {}
2 changes: 1 addition & 1 deletion chatops_deployment/terraform/modules/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}

provider "openstack" {
cloud = "openstack"
cloud = var.cloud
}

resource "openstack_networking_network_v2" "private_network" {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
variable "deployment" {}
variable "external_network_id" {}
variable "external_network_id" {}
variable "cloud" {}
5 changes: 5 additions & 0 deletions chatops_deployment/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ variable "environment" {
type = string
description = "The environment being deployed into. E.g. dev, staging, prod"
}

variable "cloud" {
type = string
description = "clouds.yaml entry to use for authentication."
}