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
e102aba4
Unverified
Commit
e102aba4
authored
8 years ago
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the YAML style parameters
parent
73545e9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
33 deletions
+36
-33
playbooks/roles/datadog/files/etc/yum.repo.d/datadog.repo
+0
-6
playbooks/roles/datadog/handlers/main.yml
+3
-2
playbooks/roles/datadog/tasks/main.yml
+33
-25
No files found.
playbooks/roles/datadog/files/etc/yum.repo.d/datadog.repo
deleted
100644 → 0
View file @
73545e9a
[datadog]
name = Datadog, Inc.
baseurl = http://yum.datadoghq.com/rpm/
enabled=1
gpgcheck=0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
playbooks/roles/datadog/handlers/main.yml
View file @
e102aba4
---
---
-
name
:
restart the datadog service
-
name
:
restart the datadog service
service
:
name=datadog-agent state=restarted
service
:
name
:
datadog-agent
state
:
restarted
This diff is collapsed.
Click to expand it.
playbooks/roles/datadog/tasks/main.yml
View file @
e102aba4
---
---
#
#
# datadog
# datadog
#
#
...
@@ -14,49 +13,58 @@
...
@@ -14,49 +13,58 @@
# - common
# - common
# - datadog
# - datadog
#
#
-
name
:
Install debian needed pkgs
-
name
:
install debian needed pkgs
apt
:
apt
:
pkg={{ item }}
name
:
"
{{
item
}}"
with_items
:
datadog_debian_pkgs
state
:
present
tags
:
with_items
:
"
{{
datadog_debian_pkgs
}}"
-
datadog
-
name
:
add apt key
apt_key
:
id=C7A7DA52 url={{ COMMON_UBUNTU_APT_KEYSERVER }}{{ datadog_apt_key }} state=present
tags
:
tags
:
-
datadog
-
datadog
-
name
:
remove unstable apt repository
-
name
:
Add apt key for datadog
apt_repository
:
repo='deb http://apt.datadoghq.com/ unstable main' state=absent
apt_key
:
id
:
"
C7A7DA52"
url
:
"
{{
COMMON_UBUNTU_APT_KEYSERVER
}}{{
datadog_apt_key
}}"
state
:
present
tags
:
tags
:
-
datadog
-
datadog
-
name
:
install apt repository
-
name
:
Install apt repository for datadog
apt_repository
:
repo='deb http://apt.datadoghq.com/ stable main' update_cache=yes
apt_repository
:
repo
:
'
deb
http://apt.datadoghq.com/
stable
main'
state
:
present
update_cache
:
yes
tags
:
tags
:
-
datadog
-
datadog
-
name
:
install datadog agent
-
name
:
Install datadog agent
apt
:
pkg="datadog-agent={{ datadog_agent_version }}"
apt
:
name
:
"
datadog-agent={{
datadog_agent_version
}}"
tags
:
tags
:
-
datadog
-
datadog
-
name
:
bootstrap config
-
name
:
Bootstrap config
shell
:
cp /etc/dd-agent/datadog.conf.example /etc/dd-agent/datadog.conf creates=/etc/dd-agent/datadog.conf
shell
:
cp datadog.conf.example datadog.conf
args
:
chdir
:
/etc/dd-agent/
creates
:
/etc/dd-agent/datadog.conf
tags
:
tags
:
-
datadog
-
datadog
-
name
:
u
pdate api-key
-
name
:
U
pdate api-key
lineinfile
:
>
lineinfile
:
dest
=
"/etc/dd-agent/datadog.conf"
dest
:
"
/etc/dd-agent/datadog.conf"
regexp
=
"^api_key:.*"
regexp
:
"
^api_key:.*"
line
=
"api_key:{{ DATADOG_API_KEY }}"
line
:
"
api_key:{{
DATADOG_API_KEY
}}"
notify
:
notify
:
-
restart the datadog service
-
restart the datadog service
tags
:
tags
:
-
datadog
-
datadog
-
name
:
ensure started and enabled
-
name
:
Ensure started and enabled
service
:
name=datadog-agent state=started enabled=yes
service
:
name
:
datadog-agent
state
:
started
enabled
:
yes
tags
:
tags
:
-
datadog
-
datadog
This diff is collapsed.
Click to expand it.
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