Pulls a sql dump and a tar.gz file from s3 (containing your /var/www/ files and database dump), installs a lamp server, installs wordpress and copies all the information, configures your .conf file for apache and restarts needed services. Basically, just dump your www and sql files in s3, run the cookbook, and you'll have a fully migrated/functional wordpress site. Also works for installing multiple wordpress sites along side each other on a single server.
Amazon Linux - Will be adding more in time
Key | Type | Description | Default |
---|---|---|---|
['s3_wordpress']['s3']['archive'] | String | tar.gz file name from s3. | www.tar.gz |
['s3_wordpress']['www']['install_files'] | Boolean | bool to pull new files from s3. | true |
['s3_wordpress']['site'] | String | name of s3_wordpress site (also names directories). | test |
['s3_wordpress']['s3']['bucket'] | String | name of base s3 bucket. | will error. CHANGE REQUIRED |
['s3_wordpress']['s3']['local_www_file'] | String | local file location. | s to /var/www/html/$site/$archive |
['s3_wordpress']['sql']['import_sql'] | Boolean | bool to import new sql dump from s3. | true |
['s3_wordpress']['sql']['database'] | Stromg | name of database in mysql. | test |
['s3_wordpress']['sql']['database_file'] | String | name of database file. | test.sql |
['s3_wordpress']['sql']['database_host'] | String | name of database host (for wp-config.php). | localhost |
['s3_wordpress']['vhost']['server_admin'] | String | name of server admin for vhost. | root@localhost |
['s3_wordpress']['vhost']['server_name'] | String | apache server name. | test.com |
['s3_wordpress']['vhost']['server_alias'] | String | apache server alias. | www.test.com |
Include s3_wordpress
in your node's run_list
:
{
"run_list": [
"recipe[s3_wordpress::default]"
]
}
Author:: Karl Girthofer (karlgirthofer@gmail.com) License:: GPLv3