Hi all,
I intend to install netdata performance and health monitoring system with a simple custom cookbook. Binary packages are not available yet, so I use their recommended install script.
The recipe is realy simple:
execute ‘netdata-install’ do
command "bash <(curl -Ss https://my-netdata.io/kickstart.sh) all --dont-wait --install /opt"
not_if { File.exists?(’/opt/netdata/usr/sbin/netdata’) }
end
The command is working without problems in console. But it is not working in chef:
================================================================================
Error executing action `run` on resource 'execute[netdata-install]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of bash <(curl -Ss https://my-netdata.io/kickstart.sh) all --dont-wait --install /opt ----
STDOUT:
STDERR: sh: 1: Syntax error: "(" unexpected
---- End output of bash <(curl -Ss https://my-netdata.io/kickstart.sh) all --dont-wait --install /opt ----
Ran bash <(curl -Ss https://my-netdata.io/kickstart.sh) all --dont-wait --install /opt returned 2
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/wrap_monitor/recipes/build.rb
35: execute 'netdata-install' do
36: command "bash <(curl -Ss https://my-netdata.io/kickstart.sh) all --dont-wait --install /opt"
37: not_if { File.exists?('/opt/netdata/usr/sbin/netdata') }
38: end
Where is the problem?
Thank you in advance.