Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetData
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
NetData
Commits
5bd8505a
Commit
5bd8505a
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Configure pythin plugins
parent
0e852e72
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/main.yml
+24
-0
24 additions, 0 deletions
tasks/main.yml
templates/mysql.conf
+6
-0
6 additions, 0 deletions
templates/mysql.conf
templates/python.d.conf
+8
-0
8 additions, 0 deletions
templates/python.d.conf
with
38 additions
and
0 deletions
tasks/main.yml
+
24
−
0
View file @
5bd8505a
...
...
@@ -22,6 +22,8 @@
-
automake
-
pkg-config
-
uuid-dev
-
python-dev
-
python-yaml
#FireQOS available from 15.04
#- firehol
...
...
@@ -65,6 +67,28 @@
notify
:
-
"
Re-start
NetData"
-
name
:
"
Configure
Python
Plugin"
template
:
src='python.d.conf'
dest='/etc/netdata/python.d.conf'
owner='netdata'
group='netdata'
mode=644
notify
:
-
"
Re-start
NetData"
-
name
:
"
Configure
Plugins"
template
:
src='{{ item }}.conf'
dest='/etc/netdata/python.d/{{ item }}.conf'
owner='netdata'
group='netdata'
mode=644
with_items
:
-
'
mysql'
notify
:
-
"
Re-start
NetData"
-
name
:
"
Check
if
KSM
is
available"
stat
:
path='/sys/kernel/mm/ksm'
register
:
ksm
...
...
This diff is collapsed.
Click to expand it.
templates/mysql.conf
0 → 100644
+
6
−
0
View file @
5bd8505a
update_every
:
5
local
:
user
:
'root'
password
:
'{{ mysql_root_password|default("root") }}'
host
:
'127.0.0.1'
port
:
'3306'
This diff is collapsed.
Click to expand it.
templates/python.d.conf
0 → 100644
+
8
−
0
View file @
5bd8505a
# This is the configuration for python.d.plugin
enabled
:
yes
example
:
no
mysql
: {{ (
groups
[
'dbserver-mysql'
]
is
defined
and
inventory_hostname
in
groups
[
'dbserver-mysql'
])|
ternary
(
"yes"
,
"no"
) }}
phpfpm
:
no
apache
: {{ (
groups
[
'webserver'
]
is
defined
and
inventory_hostname
in
groups
[
'webserver'
])|
ternary
(
"yes"
,
"no"
) }}
nginx
:
no
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment