Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple WP on same host #33

Closed
vic3lord opened this issue Jul 15, 2014 · 3 comments
Closed

Multiple WP on same host #33

vic3lord opened this issue Jul 15, 2014 · 3 comments

Comments

@vic3lord
Copy link

You can't use this cookbook as a wrapper cookbook and it can't be used for multiple installs on the same host as it uses attributes to install.

There should be LWRPs to install wordpress site

@brint
Copy link
Owner

brint commented Jul 25, 2014

@vic3lord Thanks for the suggestion. I'll leave this issue open for comments and ideas. PR's are welcome to help in building the LWRP.

@brint
Copy link
Owner

brint commented Feb 24, 2015

I've put up a draft in the lib branch. It is following the convention of most of the community cookbooks that are turning more into libraries.

Sample usage for installing two sites from tarball on the same machine:

# The following installs the latest version of WordPress to /var/www/wordpress
wordpress_install 'default' do
  action :create
end

# Here's a second installation to a different path that installs a different version 
# of WordPress. Additionally the user/group settings are different since you 
# may have different users that need permissions/access to different sites.
wordpress_install 'example2.com' do
  install_method 'tarball'  # this is the default install_method
  install_path '/var/www/example2.com'
  version '3.9.3'
  owner 'www-data'
  group 'www-data'
  action :create
end

Another installation option is via unauthenticated git, inspired by #51.

# Defaults to master ref and syncs to /var/www/wordpress
wordpress_install 'default' do
  install_method 'git'
  action :create
end

wordpress_install 'example2.com' do
  install_method 'git'
  install_path '/var/www/example2.com'
  reference '3.9.3'
  owner 'www-data'
  group 'www-data'
  action :create
end

I've put in some basic tests as well. Once I change out how WordPress is installed in the wordpress::app, I'll merge it into master and cut a new release. This sounds like it should fit what you were looking for.

@dmyers
Copy link

dmyers commented Jun 1, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants