Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
3e812273
Commit
3e812273
authored
Nov 14, 2013
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated datadog agent role
parent
3e037702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
23 deletions
+11
-23
playbooks/roles/datadog/tasks/main.yml
+11
-23
No files found.
playbooks/roles/datadog/tasks/main.yml
View file @
3e812273
...
...
@@ -15,49 +15,37 @@
# - datadog
#
-
name
:
datadog | add apt key
apt_key
:
id=C7A7DA52 url={{datadog_apt_key}} state=present
-
name
:
datadog | install debian needed pkgs
apt
:
pkg={{ item }}
with_items
:
datadog_debian_pkgs
tags
:
-
datadog
-
ubuntu
when
:
ansible_distribution in common_debian_variants
-
name
:
datadog |
install apt repositor
y
shell
:
echo 'deb http://apt.datadoghq.com/ unstable main' > /etc/apt/sources.list.d/datadog-source.lis
t
-
name
:
datadog |
add apt ke
y
apt_key
:
id=C7A7DA52 url={{datadog_apt_key}} state=presen
t
tags
:
-
datadog
-
ubuntu
when
:
ansible_distribution in common_debian_variants
-
name
:
datadog | add yum repo
copy
:
src=etc/yum.repo.d/datdog.repo
dest=/etc/yum.repo.d/datdog.repo
-
name
:
datadog | install apt repository
apt_repository
:
repo='deb http://apt.datadoghq.com/ unstable main' update_cache=yes
tags
:
-
datadog
-
redhat
when_string
:
ansible_distribution in common_redhat_variants
-
name
:
datadog | install datadog agent
apt
:
pkg="datadog-agent"
update_cache=yes
apt
:
pkg="datadog-agent"
tags
:
-
datadog
-
ubuntu
when
:
ansible_distribution in common_debian_variants
-
name
:
datadog | bootstrap config
shell
:
cp /etc/dd-agent/datadog.conf.example /etc/dd-agent/datadog.conf creates=/etc/dd-agent/datadog.conf
tags
:
-
datadog
# quoting intentional, missing space after line=api_key: also
# ansible wasn't handling the double quoted yaml properly
# otherwise.
-
name
:
datadog | update api-key
lineinfile
:
lineinfile
:
>
dest="/etc/dd-agent/datadog.conf"
"regexp=
^api_key:.*"
"line=api_key:{{ common_dd
_api_key }}"
regexp="
^api_key:.*"
line="api_key:{{ datadog
_api_key }}"
notify
:
-
datadog | restart the datadog service
tags
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment