Created
December 9, 2011 01:19
-
-
Save sawanoboly/1449641 to your computer and use it in GitHub Desktop.
add nagios-ppa | Chef-recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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