I'm trying to automate my cloud environment pretty quickly using Chef so that it can automatically scale instances and add them to HAProxy. One of the problems I encountered is the concept of managing multiple virtual hosts and users created with them for use in PHP-FPM pools.
I would like to:
- Create new user
- Create a new virtual host with domain information and aliases, determine log locations, etc.
- Creating public directories of virtual hosts, log file locations
- Update the PHP-FPM cgi file so that it executes PHP files as this user in its own pool.
I am a little familiar with the chef, so I am puzzled when it comes to using one configuration to influence others. It can be done?
thanks
source share