Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Created December 9, 2011 01:19
Show Gist options
  • Save sawanoboly/1449641 to your computer and use it in GitHub Desktop.
Save sawanoboly/1449641 to your computer and use it in GitHub Desktop.
add nagios-ppa | Chef-recipe
#
# Cookbook Name:: nagios
# Recipe:: repo
#
# Copyright 2011, sawanoboly
#
package "python-software-properties" do
#version ""
action :install
end
execute "apt-update" do
command "apt-get update"
action :nothing
end
execute "add-nagios-ppa" do
action :run
command "add-apt-repository ppa:nagiosinc/ppa"
notifies :run, resources(:execute => "apt-update")
only_if "test ! -f /etc/apt/sources.list.d/nagiosinc-ppa-#{node[:lsb][:codename]}.list"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment