-
-
Save kplimack/ec0bdec9cfbe0c296564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE ./myApp/metadata.rb | |
depends 'myorg-apache2' | |
depends 'logrotate' | |
FILE ./myApp/recipes/default.rb | |
# recipe myApp::Default.rb | |
directory "/data/myApp" | |
web_app "myApp" do | |
serverName "derp.derp.derp" | |
end | |
logrotate_app 'myapp' do | |
cookbook 'logrotate' | |
path '/var/log/myapp.log' | |
frequency 'daily' | |
rotate 30 | |
create '644 root adm' | |
end | |
FILE ./myOrg-apache2/attributes/default.rb | |
default['apache']['default_site_enabled'] = false | |
FILE ./myOrg-apache2/metadata.rb | |
depends 'apache2' | |
depends 'logrotate' | |
FILE ./myOrg-apache2/recipes/default.rb | |
include_recipe 'apache2' | |
logrotate_app 'apache-server-derp-derp' do | |
cookbook 'logrotate' | |
path ['/var/log/apache2/error.log', '/var/log/apache2/access.log'] | |
frequency 'daily' | |
rotate 30 | |
create '644 root adm' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment