Skip to content

Instantly share code, notes, and snippets.

@tylermenezes
Created January 22, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylermenezes/e3b512219ea2ae07459f to your computer and use it in GitHub Desktop.
Save tylermenezes/e3b512219ea2ae07459f to your computer and use it in GitHub Desktop.
Twig extension puppet rule
package { "php5-dev":
ensure => latest
}
exec { "create twig c extension":
command => "git clone git://github.com/twigphp/Twig.git;cd Twig/ext/twig;phpize;./configure;make;make install;cd ../../..;rm -rf Twig",
creates => "/usr/lib/php5/20121212/twig.so",
cwd => "/tmp",
path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ],
require => Package["php5-dev"],
notify => Service["php5-fpm"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment