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:
@@ -56,8 +56,8 @@ atl_aws_region: "{{ lookup('env', 'ATL_AWS_REGION') }}"
|
|||||||
atl_aws_iam_role: "{{ lookup('env', 'ATL_AWS_IAM_ROLE') }}"
|
atl_aws_iam_role: "{{ lookup('env', 'ATL_AWS_IAM_ROLE') }}"
|
||||||
atl_aws_iam_role_arn: "{{ lookup('env', 'ATL_AWS_IAM_ROLE_ARN') }}"
|
atl_aws_iam_role_arn: "{{ lookup('env', 'ATL_AWS_IAM_ROLE_ARN') }}"
|
||||||
|
|
||||||
atl_aws_enable_cw: "{{ lookup('env', 'ATL_AWS_ENABLE_CW')|bool or false }}"
|
atl_aws_enable_cloudwatch: "{{ lookup('env', 'ATL_AWS_ENABLE_CLOUDWATCH')|bool or false }}"
|
||||||
atl_aws_enable_cw_logs: "{{ lookup('env', 'ATL_AWS_ENABLE_CW_LOGS')|bool or false }}"
|
atl_aws_enable_cloudwatch_logs: "{{ lookup('env', 'ATL_AWS_ENABLE_CLOUDWATCH_LOGS')|bool or false }}"
|
||||||
|
|
||||||
atl_db_engine: "{{ lookup('env', 'ATL_DB_ENGINE') }}"
|
atl_db_engine: "{{ lookup('env', 'ATL_DB_ENGINE') }}"
|
||||||
atl_db_host: "{{ lookup('env', 'ATL_DB_HOST') }}"
|
atl_db_host: "{{ lookup('env', 'ATL_DB_HOST') }}"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
aws_download_region: "{{ ansible_ec2_placement_region | default('us-west-2') }}"
|
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"
|
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_cloudwatch: false
|
||||||
atl_aws_enable_cw_logs: false
|
atl_aws_enable_cloudwatch_logs: false
|
||||||
|
|
||||||
# Mostly for molecule testing, as skip-tags doesn't work with handlers.
|
# Mostly for molecule testing, as skip-tags doesn't work with handlers.
|
||||||
atl_aws_agent_restart: true
|
atl_aws_agent_restart: true
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
atl_product_edition: "jira-software"
|
atl_product_edition: "jira-software"
|
||||||
atl_aws_stack_name: "MY_STACK"
|
atl_aws_stack_name: "MY_STACK"
|
||||||
|
|
||||||
atl_aws_enable_cw: "{{ 'false'|bool }}"
|
atl_aws_enable_cloudwatch: "{{ 'false'|bool }}"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: aws_common
|
- role: aws_common
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
atl_aws_stack_name: "MY_STACK"
|
atl_aws_stack_name: "MY_STACK"
|
||||||
|
|
||||||
# The `bool` pipe is a sanity check for group file.
|
# The `bool` pipe is a sanity check for group file.
|
||||||
atl_aws_enable_cw: "{{ 'true'|bool }}"
|
atl_aws_enable_cloudwatch: "{{ 'true'|bool }}"
|
||||||
atl_aws_enable_cw_logs: true
|
atl_aws_enable_cloudwatch_logs: true
|
||||||
atl_aws_agent_restart: false
|
atl_aws_agent_restart: false
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
atl_product_edition: "jira-software"
|
atl_product_edition: "jira-software"
|
||||||
atl_aws_stack_name: "MY_STACK"
|
atl_aws_stack_name: "MY_STACK"
|
||||||
|
|
||||||
atl_aws_enable_cw: true
|
atl_aws_enable_cloudwatch: true
|
||||||
atl_aws_enable_cw_logs: false
|
atl_aws_enable_cloudwatch_logs: false
|
||||||
|
|
||||||
atl_aws_agent_restart: false
|
atl_aws_agent_restart: false
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,6 @@
|
|||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ aws_cloudwatch_agent_rpm }}"
|
- "{{ 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:
|
notify:
|
||||||
- Enable CloudWatch Agent
|
- Enable CloudWatch Agent
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
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:
|
notify:
|
||||||
- Restart CloudWatch Agent
|
- Restart CloudWatch Agent
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"run_as_user": "root"
|
"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": {
|
||||||
"logs_collected": {
|
"logs_collected": {
|
||||||
"files": {
|
"files": {
|
||||||
|
|||||||
Reference in New Issue
Block a user