Managing WordPress sites
You need to enable your business users to manage their own website. Fast. WordPress has come a long way. You might have seen it as a simple blogging tool, however, in recent years, it has grown into a fully featured content management system. Fortunately, managing WordPress with Chef is pretty straightforward.
Let's take a look at how to do it.
Getting ready
Make sure that you have a cookbook called my_cookbook
and that the run_list
of your node includes my_cookbook
, as described in the Creating and using cookbooks recipe in Chapter 1, Chef Infrastructure.
Create Berksfile
in your Chef repository including my_cookbook
:
mma@laptop:~/chef-repo $ subl Berksfile
cookbook 'my_cookbook', path: './cookbooks/my_cookbook'
Tip
If you're using Vagrant for your node, you need to configure a bridged network to be able to browse to your WordPress installation from your local workstation:
Vagrant::Config.run do |config| config.vm.network :bridged end
How to do it...
We'll install WordPress...