Created
January 22, 2016 19:16
-
-
Save tylermenezes/e3b512219ea2ae07459f to your computer and use it in GitHub Desktop.
Twig extension puppet rule
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
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