Closed rmccue closed 5 years ago
WP CLI can do downloading and configuring of WP, since this is primarily driven by wp-cli stuck with those methods. Would this be better handled using templates though for wp-config? Could potentially give more options that way rather than trying to force options into the "extra-php" parameter.
This doesn't seem to be the case anymore. wp::config
can be used to generate a wp-config.php now.
Or, are you talking about creating a resource (ie File['/var/www/wordpress/wp-config.php']
that can be used as a dependency elsewhere?
My bad, wp::config
is still in development in https://github.com/rmccue/puppet-wp/pull/7/files
At the moment, a wp-config.php has to be included in the files rather than being able to get generated by the module. This means we have to handle creation of this externally with a template, whereas it should be built into the module.