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
Jun 05, 2016
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
playbooks/roles/datadog/handlers/main.yml
View file @
e102aba4
---
-
name
:
restart the datadog service
service
:
name=datadog-agent state=restarted
service
:
name
:
datadog-agent
state
:
restarted
playbooks/roles/datadog/tasks/main.yml
View file @
e102aba4
---
#
# datadog
#
...
...
@@ -14,49 +13,58 @@
# - common
# - datadog
#
-
name
:
install debian needed pkgs
apt
:
pkg={{ item }}
with_items
:
datadog_debian_pkgs
tags
:
-
datadog
-
name
:
add apt key
apt_key
:
id=C7A7DA52 url={{ COMMON_UBUNTU_APT_KEYSERVER }}{{ datadog_apt_key }} state=present
-
name
:
Install debian needed pkgs
apt
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
"
{{
datadog_debian_pkgs
}}"
tags
:
-
datadog
-
name
:
remove unstable apt repository
apt_repository
:
repo='deb http://apt.datadoghq.com/ unstable main' state=absent
-
name
:
Add apt key for datadog
apt_key
:
id
:
"
C7A7DA52"
url
:
"
{{
COMMON_UBUNTU_APT_KEYSERVER
}}{{
datadog_apt_key
}}"
state
:
present
tags
:
-
datadog
-
name
:
install apt repository
apt_repository
:
repo='deb http://apt.datadoghq.com/ stable main' update_cache=yes
-
name
:
Install apt repository for datadog
apt_repository
:
repo
:
'
deb
http://apt.datadoghq.com/
stable
main'
state
:
present
update_cache
:
yes
tags
:
-
datadog
-
name
:
install datadog agent
apt
:
pkg="datadog-agent={{ datadog_agent_version }}"
-
name
:
Install datadog agent
apt
:
name
:
"
datadog-agent={{
datadog_agent_version
}}"
tags
:
-
datadog
-
name
:
bootstrap config
shell
:
cp /etc/dd-agent/datadog.conf.example /etc/dd-agent/datadog.conf creates=/etc/dd-agent/datadog.conf
-
name
:
Bootstrap config
shell
:
cp datadog.conf.example datadog.conf
args
:
chdir
:
/etc/dd-agent/
creates
:
/etc/dd-agent/datadog.conf
tags
:
-
datadog
-
name
:
u
pdate api-key
lineinfile
:
>
dest
=
"/etc/dd-agent/datadog.conf"
regexp
=
"^api_key:.*"
line
=
"api_key:{{ DATADOG_API_KEY }}"
-
name
:
U
pdate api-key
lineinfile
:
dest
:
"
/etc/dd-agent/datadog.conf"
regexp
:
"
^api_key:.*"
line
:
"
api_key:{{
DATADOG_API_KEY
}}"
notify
:
-
restart the datadog service
tags
:
-
datadog
-
name
:
ensure started and enabled
service
:
name=datadog-agent state=started enabled=yes
-
name
:
Ensure started and enabled
service
:
name
:
datadog-agent
state
:
started
enabled
:
yes
tags
:
-
datadog
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