Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oss
Yourlabs.Netdata
Commits
a673318b
Commit
a673318b
authored
May 14, 2021
by
jpic ∞
💾
Browse files
Merge branch 'vinz' into 'master'
Multi distros support See merge request
!1
parents
22dd8aa8
82e52cf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
a673318b
...
...
@@ -7,21 +7,22 @@
state
:
directory
path
:
/etc/netdata
-
name
:
Install dependencies
apt
:
name
:
'
{{
netdata_packages
}}'
-
name
:
Downlaod dependencies script
get_url
:
url
:
"
https://raw.githubusercontent.com/netdata/netdata-demo-site/master/install-required-packages.sh"
dest
:
/tmp/install-required-packages.sh
-
name
:
Run dependencies script
shell
:
"
bash
/tmp/install-required-packages.sh
netdata
--dont-wait
--non-interactive"
-
name
:
enable & config KSM
blockinfile
:
path
:
/etc/tmpfiles.d/ksm.conf
block
:
|
w /sys/kernel/mm/ksm/run - - - - 1
w /sys/kernel/mm/ksm/sleep_millisecs - - - - 1000
state
:
present
when
:
ansible_os_family == "Debian"
-
name
:
enable sysfs KSM
lineinfile
:
path
:
/etc/sysfs.conf
line
:
'
kernel/mm/ksm/run
=
1'
-
name
:
config sysfs KSM
lineinfile
:
path
:
/etc/sysfs.conf
line
:
'
kernel/mm/ksm/sleep_millisecs
=
1000'
create
:
true
-
name
:
Clone repo
register
:
netdata_git
...
...
vars/main.yml
View file @
a673318b
...
...
@@ -38,18 +38,3 @@ remember:
-
name
:
telegram_recipient
question
:
What is the recipient id(s) for telegram ? (You may add alert level. For example, -100311112222 212341234|critical)
when
:
telegram_bot_token is defined and telegram_bot_token != ''
netdata_packages
:
-
autoconf
-
autoconf-archive
-
autogen
-
automake
-
gcc
-
git
-
libmnl-dev
-
make
-
pkg-config
-
uuid-dev
-
zlib1g-dev
-
sysfsutils
-
libuv1-dev
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