Created
February 12, 2014 03:29
-
-
Save chrisamoore/8949614 to your computer and use it in GitHub Desktop.
Gearman Install
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
server: | |
packages: | |
- vim-common | |
- libgearman | |
- libgearman-devel | |
- gearmand | |
- npm |
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
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