Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add httpd auto start #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions my-cookbooks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.bundle
/.envrc
/.vagrant
/vendor/bundle
3 changes: 3 additions & 0 deletions my-cookbooks/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem 'chef'
81 changes: 81 additions & 0 deletions my-cookbooks/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
GEM
remote: https://rubygems.org/
specs:
chef (12.0.3)
chef-zero (~> 3.2)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
ffi-yajl (~> 1.2)
highline (~> 1.6, >= 1.6.9)
mixlib-authentication (~> 1.3)
mixlib-cli (~> 1.4)
mixlib-config (~> 2.0)
mixlib-log (~> 1.3)
mixlib-shellout (>= 2.0.0.rc.0, < 3.0)
net-ssh (~> 2.6)
net-ssh-multi (~> 1.1)
ohai (~> 8.0)
plist (~> 3.1.0)
pry (~> 0.9)
chef-zero (3.2.1)
ffi-yajl (~> 1.1)
hashie (~> 2.0)
mixlib-log (~> 1.3)
rack
uuidtools (~> 2.1)
coderay (1.1.0)
diff-lcs (1.2.5)
erubis (2.7.0)
ffi (1.9.6)
ffi-yajl (1.3.1)
ffi (~> 1.5)
libyajl2 (~> 1.2)
hashie (2.1.2)
highline (1.6.21)
ipaddress (0.8.0)
libyajl2 (1.2.0)
method_source (0.8.2)
mime-types (1.25.1)
mixlib-authentication (1.3.0)
mixlib-log
mixlib-cli (1.5.0)
mixlib-config (2.1.0)
mixlib-log (1.6.0)
mixlib-shellout (2.0.1)
net-dhcp (1.3.2)
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-multi (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
ohai (8.0.1)
ffi (~> 1.9)
ffi-yajl (~> 1.1)
ipaddress
mime-types (~> 1.16)
mixlib-cli
mixlib-config (~> 2.0)
mixlib-log
mixlib-shellout (~> 2.0)
net-dhcp
rake (~> 10.1)
systemu (~> 2.6.4)
wmi-lite (~> 1.0)
plist (3.1.0)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (1.6.0)
rake (10.4.2)
slop (3.6.0)
systemu (2.6.4)
uuidtools (2.1.5)
wmi-lite (1.0.0)

PLATFORMS
ruby

DEPENDENCIES
chef
1 change: 1 addition & 0 deletions my-cookbooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# my-cookbooks
13 changes: 13 additions & 0 deletions my-cookbooks/apache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apache CHANGELOG
================

This file is used to list changes made in each version of the apache cookbook.

0.1.0
-----
- [your_name] - Initial release of apache

- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.

The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
68 changes: 68 additions & 0 deletions my-cookbooks/apache/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apache Cookbook
===============
TODO: Enter the cookbook description here.

e.g.
This cookbook makes your favorite breakfast sandwich.

Requirements
------------
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.

e.g.
#### packages
- `toaster` - apache needs toaster to brown your bagel.

Attributes
----------
TODO: List your cookbook attributes here.

e.g.
#### apache::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['apache']['bacon']</tt></td>
<td>Boolean</td>
<td>whether to include bacon</td>
<td><tt>true</tt></td>
</tr>
</table>

Usage
-----
#### apache::default
TODO: Write usage instructions for each cookbook.

e.g.
Just include `apache` in your node's `run_list`:

```json
{
"name":"my_node",
"run_list": [
"recipe[apache]"
]
}
```

Contributing
------------
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.
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
6. Submit a Pull Request using Github

License and Authors
-------------------
Authors: TODO: List authors
7 changes: 7 additions & 0 deletions my-cookbooks/apache/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name 'apache'
maintainer 'YOUR_COMPANY_NAME'
maintainer_email 'YOUR_EMAIL'
license 'All rights reserved'
description 'Installs/Configures apache'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
15 changes: 15 additions & 0 deletions my-cookbooks/apache/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Cookbook Name:: apache
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#

package 'httpd'

service 'httpd' do
action [ :enable, :start ]
end

13 changes: 13 additions & 0 deletions my-cookbooks/zsh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zsh CHANGELOG
=============

This file is used to list changes made in each version of the zsh cookbook.

0.1.0
-----
- [your_name] - Initial release of zsh

- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.

The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
68 changes: 68 additions & 0 deletions my-cookbooks/zsh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
zsh Cookbook
============
TODO: Enter the cookbook description here.

e.g.
This cookbook makes your favorite breakfast sandwich.

Requirements
------------
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.

e.g.
#### packages
- `toaster` - zsh needs toaster to brown your bagel.

Attributes
----------
TODO: List your cookbook attributes here.

e.g.
#### zsh::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['zsh']['bacon']</tt></td>
<td>Boolean</td>
<td>whether to include bacon</td>
<td><tt>true</tt></td>
</tr>
</table>

Usage
-----
#### zsh::default
TODO: Write usage instructions for each cookbook.

e.g.
Just include `zsh` in your node's `run_list`:

```json
{
"name":"my_node",
"run_list": [
"recipe[zsh]"
]
}
```

Contributing
------------
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.
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
6. Submit a Pull Request using Github

License and Authors
-------------------
Authors: TODO: List authors
7 changes: 7 additions & 0 deletions my-cookbooks/zsh/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name 'zsh'
maintainer 'YOUR_COMPANY_NAME'
maintainer_email 'YOUR_EMAIL'
license 'All rights reserved'
description 'Installs/Configures zsh'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
10 changes: 10 additions & 0 deletions my-cookbooks/zsh/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Cookbook Name:: zsh
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#

package 'zsh'