Skip to content

Instantly share code, notes, and snippets.

@spjwebster
Created December 5, 2013 10:47
Show Gist options
  • Save spjwebster/7803406 to your computer and use it in GitHub Desktop.
Save spjwebster/7803406 to your computer and use it in GitHub Desktop.
class redis {
apt::ppa {'ppa:rwky/redis':
}
package {'redis-server':
ensure => latest,
require => Apt::Ppa['ppa:rwky/redis'],
}
file {'/etc/redis/redis.conf':
ensure => file,
source => "puppet:///modules/redis/redis.conf",
require => Package['redis-server'],
}
service {'redis-server':
ensure => running,
subscribe => File['/etc/redis/redis.conf'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment