diff --git a/chatops_deployment/ansible/requirements.txt b/chatops_deployment/ansible/requirements.txt new file mode 100644 index 00000000..4ed4f7bb --- /dev/null +++ b/chatops_deployment/ansible/requirements.txt @@ -0,0 +1,3 @@ +bcrypt +passlib +openstacksdk diff --git a/chatops_deployment/ansible/requirements.yml b/chatops_deployment/ansible/requirements.yml new file mode 100644 index 00000000..a4434ad2 --- /dev/null +++ b/chatops_deployment/ansible/requirements.yml @@ -0,0 +1,5 @@ +collections: + - community.docker + - community.general + - openstack.cloud + - prometheus.prometheus diff --git a/chatops_deployment/ansible/roles/terraform/templates/hosts.ini.j2 b/chatops_deployment/ansible/roles/terraform/templates/hosts.ini.j2 deleted file mode 100644 index ac98cc54..00000000 --- a/chatops_deployment/ansible/roles/terraform/templates/hosts.ini.j2 +++ /dev/null @@ -1,45 +0,0 @@ -[chatops] -{% for ip in terraform_output.outputs.chatops_host_ips.value %} -{{ ip }} -{% endfor %} - -[grafana] -{% for ip in terraform_output.outputs.grafana_host_ips.value %} -{{ ip }} -{% endfor %} - -[haproxy] -{{ terraform_floating_ip }} ansible_user=ubuntu - -[prometheus] -{% for ip in terraform_output.outputs.prometheus_host_ips.value %} -{{ ip }} -{% endfor %} - -[prometheus:vars] -loadbalancer_private_ip="{{ terraform_output.outputs.loadbalancer_private_ip.value }}" - -[elastic] -{% for ip in terraform_output.outputs.elastic_host_ips.value %} -{{ ip }} -{% endfor %} - -[elastic:vars] -elasticsearch_device="{{ terraform_output.outputs.elasticsearch_device.value }}" - -[monitoring] -[monitoring:children] -prometheus -grafana -elastic - -[private] -[private:children] -prometheus -grafana -chatops -elastic - -[private:vars] -ansible_ssh_common_args='-o ProxyCommand="ssh -p 22 -W %h:%p -q ubuntu@{{ terraform_floating_ip }}"' -ansible_ssh_private_key_file="./bastion-key" \ No newline at end of file