-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rubocop and foodcritic - dir creation fix
- Loading branch information
Phil Hendren
committed
Oct 29, 2016
1 parent
f7dcac4
commit b623947
Showing
6 changed files
with
142 additions
and
134 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
amzapache CHANGELOG | ||
==================== | ||
|
||
This file is used to list changes made in each version of the amzapache cookbook. | ||
This file lists changes made in each version of the amzapache cookbook. | ||
|
||
0.1.0 | ||
----- | ||
- [phendren] - 12.04.2014 - Initial release of amzapache | ||
12.04.2014 - Initial release of amzapache | ||
|
||
0.1.1 | ||
----- | ||
- [phendren] - 12.08.2014 - Released with basic fixes | ||
12.08.2014 - Released with basic fixes | ||
|
||
0.1.2 | ||
----- | ||
- [phendren] - 02.13.2016 - small fixes to format and adding test kitchen | ||
02.13.2016 - small fixes to format and adding test kitchen | ||
|
||
0.1.3 | ||
----- | ||
10.29.2016 - rubocop/foodcritic and small refactor | ||
|
||
|
||
- - - |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,54 @@ | ||
amzapache Cookbook | ||
=================== | ||
This is a relatively straightforward Chef cookbook for installing Apache Web server w/ mod ssl on Amazon Linux | ||
I have not tested this cookbook on CentOS or RHE but it should (in theory) work the same. | ||
amzapache is a Chef cookbook for installing Apache Web server w/ mod ssl on Amazon Linux. | ||
I have not tested this cookbook on CentOS or RHEL. | ||
|
||
Requirements | ||
------------ | ||
This cookbook was written for use with AWS OpsWorks (Chef 11) for building a custom | ||
web server layer running Amazon Linux. | ||
|
||
I wrote it for use with AWS OpsWorks for building a custom layer using Amazon Linux. | ||
Tested with Chef 11.4 with AWS OpsWorks - http://aws.amazon.com/opsworks/ | ||
http://aws.amazon.com/opsworks/ | ||
|
||
Attributes | ||
---------- | ||
amzapache attributes: Are all related to the included httpd.conf configuration template and are configured as default attributes | ||
|
||
`default[:amzapache][:document_root]` - Document root - default: /var/www/html<br> | ||
`default[:amzapache][:dir]` - Apache config directory - default: /etc/httpd<br> | ||
`default[:amzapache][:log_dir]` - Apache log directory - default: /var/log/httpd<br> | ||
`default[:amzapache][:user]` - User Apache will run as - default: apache<br> | ||
`default[:amzapache][:group]` - Group Apache will run as - default: apache<br> | ||
`default[:amzapache][:binary]` - Where binary will live - default: /usr/sbin/httpd<br> | ||
`default[:amzapache][:icondir]` - Apache icon directory - default: /var/www/icons/<br> | ||
`default[:amzapache][:init_script]` - Apache init script - default: /etc/init.d/httpd<br> | ||
`default[:amzapache][:http_port]` - Port apache will listen on - default: 80<br> | ||
`default[:amzapache][:ssl_port]` - Port SSL will use - default: 443<br> | ||
`default[:amzapache][:contact]` - [email protected]<br> | ||
`default[:amzapache][:servhost]` - Domain you want for your default hostname<br> | ||
`default[:amzapache][:timeout]` - Apache timeout - default: 120<br> | ||
`default[:amzapache][:keepalive]` - Apache keepalive - default: off<br> | ||
`default[:amzapache][:keepaliverequests]` - Apache keep alive requests - default: 100<br> | ||
`default[:amzapache][:keepalivetimeout]` - Apache keepalive timeout - default: 3<br> | ||
`default['amzapache']['document_root']` - Document root - default: /var/www/html<br> | ||
`default['amzapache']['dir']` - Apache config directory - default: /etc/httpd<br> | ||
`default['amzapache']['log_dir']` - Apache log directory - default: /var/log/httpd<br> | ||
`default['amzapache']['user']` - User Apache will run as - default: apache<br> | ||
`default['amzapache']['group']` - Group Apache will run as - default: apache<br> | ||
`default['amzapache']['binary']` - Where binary will live - default: /usr/sbin/httpd<br> | ||
`default['amzapache']['icon_dir']` - Apache icon directory - default: /var/www/icons/<br> | ||
`default['amzapache']['init_script']` - Apache init script - default: /etc/init.d/httpd<br> | ||
`default['amzapache']['http_port']` - Port apache will listen on - default: 80<br> | ||
`default['amzapache']['ssl_port']` - Port SSL will use - default: 443<br> | ||
`default['amzapache']['contact']` - [email protected]<br> | ||
`default['amzapache']['servhost']` - Domain you want for your default hostname<br> | ||
`default['amzapache']['timeout']` - Apache timeout - default: 120<br> | ||
`default['amzapache']['keepalive']` - Apache keepalive - default: off<br> | ||
`default['amzapache']['keepaliverequests']` - Apache keep alive requests - default: 100<br> | ||
`default['amzapache']['keepalivetimeout']` - Apache keepalive timeout - default: 3<br> | ||
|
||
Usage | ||
----- | ||
#### amzapache::default | ||
Installs Apache using the settings as configured in the attributes. This cookbooks is setup to function in combo | ||
with php-pkg (installs PHP) and deployer (which can be used to easily deploy applications from github). | ||
with php-pkg (installs PHP) and deployer (which can easily deploy PHP applications from a repo on github). | ||
|
||
To use with OpsWorks - Create a custom layer - add amzapache::default as a custom cookbook to the "setup" event. | ||
To use with OpsWorks (Chef 11) - Create a custom layer - add amzapache::default as a custom cookbook to the "setup" event. | ||
|
||
Contributing | ||
------------ | ||
|
||
1. Fork the repository on Github | ||
2. Create a named feature branch (like `add_component_x`) | ||
3. Write your change | ||
4. Write tests for your change (if applicable) | ||
5. Run the tests, ensuring they all pass | ||
5. Run the tests via test kitchen, ensuring they all pass | ||
6. Submit a Pull Request using Github | ||
|
||
License and Authors | ||
------------------- | ||
Apache 2.0 License - written by Phil Hendren - github: phendren | ||
gocodeyourself[at]gmail.com | ||
|
||
philip.hendren[at]gmail.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# amzapache attributes | ||
|
||
default[:amzapache][:document_root] = '/var/www/html' | ||
default[:amzapache][:dir] = '/etc/httpd' | ||
default[:amzapache][:log_dir] = '/var/log/httpd' | ||
default[:amzapache][:user] = 'apache' | ||
default[:amzapache][:group] = 'apache' | ||
default[:amzapache][:binary] = '/usr/sbin/httpd' | ||
default[:amzapache][:icondir] = '/var/www/icons/' | ||
default[:amzapache][:init_script] = '/etc/init.d/httpd' | ||
default[:amzapache][:http_port] = 80 | ||
default[:amzapache][:ssl_port] = 443 | ||
default[:amzapache][:contact] = '[email protected]' | ||
default[:amzapache][:servhost] = 'yourdomain.com' | ||
default[:amzapache][:timeout] = 120 | ||
default[:amzapache][:keepalive] = 'Off' | ||
default[:amzapache][:keepaliverequests] = 100 | ||
default[:amzapache][:keepalivetimeout] = 3 | ||
|
||
default['amzapache']['document_root'] = '/var/www/html' | ||
default['amzapache']['dir'] = '/etc/httpd' | ||
default['amzapache']['log_dir'] = '/var/log/httpd' | ||
default['amzapache']['user'] = 'apache' | ||
default['amzapache']['group'] = 'apache' | ||
default['amzapache']['binary'] = '/usr/sbin/httpd' | ||
default['amzapache']['icon_dir'] = '/var/www/icons' | ||
default['amzapache']['ssl_dir'] = '/etc/httpd/ssl' | ||
default['amzapache']['init_script'] = '/etc/init.d/httpd' | ||
default['amzapache']['http_port'] = 80 | ||
default['amzapache']['ssl_port'] = 443 | ||
default['amzapache']['contact'] = 'you@yourdomain.com' | ||
default['amzapache']['servhost'] = 'yourdomain.com' | ||
default['amzapache']['timeout'] = 120 | ||
default['amzapache']['keepalive'] = false | ||
default['amzapache']['keepaliverequests'] = 100 | ||
default['amzapache']['keepalivetimeout'] = 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
maintainer 'phendren' | ||
maintainer_email '[email protected]' | ||
license 'Apache License 2.0' | ||
description 'Installs/Configures default apache httpd package on Amazon Linux' | ||
description 'Installs default apache httpd package on Amazon Linux' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version '0.1.2' | ||
version '0.1.3' | ||
|
||
supports 'amazon' |
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
Oops, something went wrong.