Skip to content

Instantly share code, notes, and snippets.

@standaloneSA
Created June 9, 2014 12:48
Show Gist options
  • Save standaloneSA/6280e39f59cea53da42d to your computer and use it in GitHub Desktop.
Save standaloneSA/6280e39f59cea53da42d to your computer and use it in GitHub Desktop.
exec { 'install-redis':
command => "make && make install PREFIX=${redis_bin_dir}",
cwd => $redis_src_dir,
path => '/bin:/usr/bin',
unless => "test $(${redis_bin_dir}/bin/redis-server --version | cut -d ' ' -f 1) = 'Redis'",
require => [ Exec['unpack-redis'], Package['gcc'] ],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment