Skip to content

Instantly share code, notes, and snippets.

@jakubjedelsky
Last active December 20, 2015 07:39
Show Gist options
  • Save jakubjedelsky/6094695 to your computer and use it in GitHub Desktop.
Save jakubjedelsky/6094695 to your computer and use it in GitHub Desktop.
#!/bin/bash
# CentOS 6
yum -y remove httpd bind ; yum -y update
rpm -ivh http://ftp.linux.cz/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install puppet git
wget "https://raw.github.com/jakubjedelsky/puppet/9c49519266c7a3f9f761bc5f6041c66d42c80d1f/lib/puppet/provider/service/monit.rb" -O /usr/lib/ruby/site_ruby/1.8/puppet/provider/service/monit.rb
git clone https://github.com/jakubjedelsky/puppet-monit-httpd.git
cd puppet-monit-httpd
puppet apply --modulepath=$(pwd)/modules -d -e "include httpd::task"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment