Skip to content

Instantly share code, notes, and snippets.

@travisdmathis
Created October 2, 2012 01:44
Show Gist options
  • Select an option

  • Save travisdmathis/3815672 to your computer and use it in GitHub Desktop.

Select an option

Save travisdmathis/3815672 to your computer and use it in GitHub Desktop.
# install Zabbix agent
script "install_zabbix_agent" do
interpreter "bash"
user "root"
cwd "/tmp"
action :nothing
notifies :restart, "service[zabbix_agentd]"
code <<-EOH
tar xvfz zabbix-agent.tar.gz
rm -rf zabbix-agent.tar.gz
(cd zabbix-2.0.2 && ./configure --enable-agent)
(cd zabbix-2.0.2 && make install)
EOH
end
STDERR: /tmp/chef-script20121002-16791-c08ut5: line 4: make: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment