mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 09:53:06 -06:00
AZURE-211 Log Analytics agent
This commit is contained in:
@@ -32,4 +32,5 @@
|
||||
tags: [skip_on_stack_update]
|
||||
- role: crowd_config
|
||||
- role: azure_app_insights_install
|
||||
when: (app_insights_instrumentation_key is defined) and (app_insights_instrumentation_key|length > 0)
|
||||
- role: product_startup
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
atl_jdbc_query_params_for_engine:
|
||||
rds_postgres: "?sslmode=require"
|
||||
atl_db_root_user_login: "{{ atl_db_root_user+'@'+atl_db_host if atl_db_engine == 'rds_postgres' else atl_db_root_user }}"
|
||||
atl_jdbc_user_login: "{{ atl_jdbc_user+'@'+atl_db_host if atl_db_engine == 'rds_postgres' else atl_jdbc_user }}"
|
||||
atl_jdbc_user_login: "{{ atl_jdbc_user+'@'+atl_db_host if atl_db_engine == 'rds_postgres' else atl_jdbc_user }}"
|
||||
oms_workspace_id: "{{ lookup('env', 'OMS_WORKSPACE_ID') }}"
|
||||
oms_primary_key: "{{ lookup('env', 'OMS_PRIMARY_KEY') }}"
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
app_insights_version: "{{ lookup('env', 'APPINSIGHTS_VER') or '2.6.0' }}"
|
||||
app_insights_instrumentation_key: "{{ lookup('env', 'APPINSIGHTS_INSTRUMENTATION_KEY') or 'XXX' }}"
|
||||
app_insights_instrumentation_key: "{{ lookup('env', 'APPINSIGHTS_INSTRUMENTATION_KEY') }}"
|
||||
app_insights_jaxb_version: 2.3.1
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
atl_product_edition: "crowd"
|
||||
atl_product_user: "crowd"
|
||||
atl_download_format: "tarball"
|
||||
atl_installer_temp: "/opt/atlassian/temp"
|
||||
app_insights_instrumentation_key: "XXX"
|
||||
oms_workspace_id: eae544ea-e9ea-4613-8f51-bbe2a234952e
|
||||
oms_primary_key: rvNMv4enI3YGjqOJ29/Xv7nsAXDAUYmQhGfxJChmylk2dCvYLAcuTs1fVTOQ3OEHXKFjNMwwZtzKBop0KCRoBg==
|
||||
roles:
|
||||
- role: linux_common
|
||||
- role: azure_common
|
||||
|
||||
@@ -1,9 +1,27 @@
|
||||
---
|
||||
|
||||
- name: Install collectd for app insights
|
||||
- name: Install supporting packages for for app insights
|
||||
package:
|
||||
name:
|
||||
- collectd
|
||||
- wget
|
||||
- cron
|
||||
|
||||
- name: Download OMS Agent
|
||||
get_url:
|
||||
url: "https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh"
|
||||
dest: "{{ atl_product_installation_versioned }}"
|
||||
mode: 0755
|
||||
|
||||
- name: Check that the OMS Agent is already installed
|
||||
stat:
|
||||
path: /opt/microsoft/omsagent/bin/omsagent.sh
|
||||
register: existing_oms_agent
|
||||
|
||||
- name: Install OMS Agent
|
||||
command: "{{ atl_product_installation_versioned }}/onboard_agent.sh -w {{ oms_workspace_id }} -s {{ oms_primary_key }} -d opinsights.azure.com"
|
||||
when: existing_oms_agent.stat.isreg is not defined
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Download Collectd App Insights jar
|
||||
get_url:
|
||||
|
||||
Reference in New Issue
Block a user