title: Puppet - Install PHP with LibXML module, with the XSLT extension enabled (--with-xsl)
body: <p>I need to ensure puppet installs Php with LibXML with the '--with-xsl' flag. </p>
  
  <p>I have the following class for all things php: </p>
  
  <pre><code>class php {
     package { "php5-cli": ensure =&gt; present }
     package { "php5-dev": ensure =&gt; present }
     package { "php5-mysql": ensure =&gt; present }
     package { "php-pear": ensure =&gt; present }
     package { "php5-common": ensure =&gt; present}
     package { "php5-fpm": ensure =&gt; present}
     package { "php5-cgi": ensure =&gt; present}
     package { "php-apc": ensure =&gt; present}
  
     exec { "pear upgrade":
       command =&gt; "/usr/bin/pear upgrade",
       require =&gt; Package["php-pear"],
     }
  }
  </code></pre>
  
  <p>Not sure how to use flags here.
  Many thanks in advance.</p>