Chef cookbook that creates configuration files for Capistrano - everything that is not under version control and can be generated by templates, e.g. application-specific settings.
Requires Chef 0.10.10+ and Ohai 0.6.10+ for platform_family
attribute use.
Tested on the following platforms:
- Ubuntu 12.04, 14.04
The capistrano
LWRP creates files from templates, e.g. application-specific settings
name
- Name of the application.user
- Owner for application folder. Defaults tovagrant
.group
- Group for application folder. Defaults tovagrant
.
For example, to create shared
and current
folders, and a application.yml
configuration file from a template in the parent cookbook, run:
capistrano "myproj" do
templates %w{ config/application.yml }
end
- Author: Martin Fenner ([email protected])
Copyright: 2014, Public Library of Science
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.