DCD-436: Use full cloudwatch name for clarity.

This commit is contained in:
Steve Smith
2019-09-13 12:01:47 +10:00
parent 83aed04c76
commit edae211356
8 changed files with 12 additions and 12 deletions

View File

@@ -4,8 +4,8 @@
aws_download_region: "{{ ansible_ec2_placement_region | default('us-west-2') }}"
aws_cloudwatch_agent_rpm: "https://s3.{{ aws_download_region }}.amazonaws.com/amazoncloudwatch-agent-{{ aws_download_region }}/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm"
atl_aws_enable_cw: false
atl_aws_enable_cw_logs: false
atl_aws_enable_cloudwatch: false
atl_aws_enable_cloudwatch_logs: false
# Mostly for molecule testing, as skip-tags doesn't work with handlers.
atl_aws_agent_restart: true

View File

@@ -11,7 +11,7 @@
atl_product_edition: "jira-software"
atl_aws_stack_name: "MY_STACK"
atl_aws_enable_cw: "{{ 'false'|bool }}"
atl_aws_enable_cloudwatch: "{{ 'false'|bool }}"
roles:
- role: aws_common

View File

@@ -12,8 +12,8 @@
atl_aws_stack_name: "MY_STACK"
# The `bool` pipe is a sanity check for group file.
atl_aws_enable_cw: "{{ 'true'|bool }}"
atl_aws_enable_cw_logs: true
atl_aws_enable_cloudwatch: "{{ 'true'|bool }}"
atl_aws_enable_cloudwatch_logs: true
atl_aws_agent_restart: false
roles:

View File

@@ -11,8 +11,8 @@
atl_product_edition: "jira-software"
atl_aws_stack_name: "MY_STACK"
atl_aws_enable_cw: true
atl_aws_enable_cw_logs: false
atl_aws_enable_cloudwatch: true
atl_aws_enable_cloudwatch_logs: false
atl_aws_agent_restart: false

View File

@@ -11,6 +11,6 @@
yum:
name:
- "{{ aws_cloudwatch_agent_rpm }}"
when: atl_aws_enable_cw is defined and atl_aws_enable_cw
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch
notify:
- Enable CloudWatch Agent

View File

@@ -20,6 +20,6 @@
owner: root
group: root
mode: 0644
when: atl_aws_enable_cw is defined and atl_aws_enable_cw
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch
notify:
- Restart CloudWatch Agent

View File

@@ -4,7 +4,7 @@
"run_as_user": "root"
},
{% if atl_aws_enable_cw_logs is defined and atl_aws_enable_cw_logs %}
{% if atl_aws_enable_cloudwatch_logs is defined and atl_aws_enable_cloudwatch_logs %}
"logs": {
"logs_collected": {
"files": {