mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-436: Use full cloudwatch name for clarity.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user