I'm looking to automate my cloud environment fairly soon using Chef so it can automatically scale instances and add them to HAProxy. One issue I'm having is with the concept of managing multiple virtualhosts and the users created with them to use in PHP-FPM pools.
What I'd like to do is:
- Create a new user
- Create a new virtualhost with domain information and aliases, define log * locations etc
- Create public virtualhost directories, log file locations
- Update PHP-FPM cgi file so it executes PHP files as that user in it's own pool
I'm a little new to Chef so I'm a puzzled when it comes to using one configuration to influence others. Can this be done?
Thanks