Skip to content

Instantly share code, notes, and snippets.

@chrisamoore
Created February 12, 2014 03:29
Show Gist options
  • Save chrisamoore/8949614 to your computer and use it in GitHub Desktop.
Save chrisamoore/8949614 to your computer and use it in GitHub Desktop.
Gearman Install
server:
packages:
- vim-common
- libgearman
- libgearman-devel
- gearmand
- npm
exec {'gearman_install':
cwd => '/usr/share/nginx/www/html/vhosts/gearmanui',
command => 'composer install',
path => ['/usr/local/bin','/usr/bin', '/bin', '/sbin'],
environment =>
[
"COMPOSER_HOME=/home/vagrant",
],
logoutput => true,
returns => [ 0, 1, 255],
timeout => 0,
user => 'vagrant',
}
service { "gearmand":
enable => true,
ensure => running,
hasrestart => true,
hasstatus => true,
require => Exec['gearman_install'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment