Skip to content

Commit e5908b4

Browse files
author
Chef Sales Engineering
committed
first commit
0 parents  commit e5908b4

File tree

102 files changed

+2769
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2769
-0
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*~
2+
*#
3+
.#*
4+
\#*#
5+
.*.sw[a-z]
6+
*.un~
7+
pkg/
8+
9+
# Berkshelf
10+
.vagrant
11+
/cookbooks
12+
Berksfile.lock
13+
14+
# Bundler
15+
Gemfile.lock
16+
bin/*
17+
.bundle/*
18+
19+
.kitchen/
20+
.kitchen.local.yml

.kitchen.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
driver:
3+
name: ec2
4+
region: us-east-1
5+
availability_zone: us-east-1a
6+
aws_ssh_key_id: cad_demo_east
7+
instance_type: m1.small
8+
retryable_sleep: 10
9+
tags:
10+
Name: "Chef Demo Node"
11+
created-by: "test-kitchen"
12+
user: <%= ENV['USER'] %>
13+
14+
provisioner:
15+
name: chef_zero
16+
17+
platforms:
18+
- name: linux
19+
driver_config:
20+
image_id: ami-bc8131d4
21+
22+
transport:
23+
username: root
24+
ssh_key: ~/.ssh/cad_demo_east.pem
25+
26+
suites:
27+
- name: default
28+
run_list:
29+
- recipe[iptables::default]
30+
- recipe[chefweb::default]
31+
#- recipe[chefweb::ssl]
32+
attributes:

.rubocop.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
LineLength:
2+
Enabled: false
3+
StringLiterals:
4+
Enabled: false
5+
HashSyntax:
6+
Enabled: false
7+
SpaceInsideParens:
8+
Enabled: false
9+
SpaceInsideBrackets:
10+
Enabled: false
11+
SpaceInsideHashLiteralBraces:
12+
Enabled: false
13+
SingleSpaceBeforeFirstArg:
14+
Enabled: false
15+
Encoding:
16+
Enabled: false
17+
LeadingCommentSpace:
18+
Enabled: false
19+
AsciiComments:
20+
Enabled: false
21+
AllCops:
22+
Exclude:
23+
- 'providers/**/*'
24+
- 'resources/**/*'
25+
- 'spec/**/*'
26+
- 'test/**/*'

Berksfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://supermarket.getchef.com"
2+
3+
metadata

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
chefweb CHANGELOG
2+
================
3+
4+
This file is used to list changes made in each version of the chefweb cookbook.
5+
6+
0.1.0
7+
-----
8+
- [your_name] - Initial release of chefweb
9+
10+
- - -
11+
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
12+
13+
The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.

Gemfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'berkshelf'
4+
5+
# Uncomment these lines if you want to live on the Edge:
6+
#
7+
# group :development do
8+
# gem "berkshelf", github: "berkshelf/berkshelf"
9+
# gem "vagrant", github: "mitchellh/vagrant", tag: "v1.5.2"
10+
# end
11+
#
12+
# group :plugins do
13+
# gem "vagrant-berkshelf", github: "berkshelf/vagrant-berkshelf"
14+
# gem "vagrant-omnibus", github: "schisamo/vagrant-omnibus"
15+
# end
16+
17+
gem 'test-kitchen'
18+
gem 'kitchen-vagrant'

README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
chefweb Cookbook
2+
===============
3+
This cookbook stands up a demo version of the chef.io website.
4+
5+
Requirements
6+
------------
7+
Spin up a standard demo and add the default recipe to your runlist. The only external dependencies are the iptables and aws community cookbooks.
8+
9+
Attributes
10+
----------
11+
There are only two configurable attributes, namely the port for standard web traffic and the port for SSL traffic. As you might expect these are configured in the attributes/default.rb file.
12+
13+
14+
Usage
15+
-----
16+
Just include `chefweb` in your node's `run_list`:
17+
18+
```json
19+
{
20+
"name":"my_node",
21+
"run_list": [
22+
"recipe[chefweb]"
23+
]
24+
}
25+
```
26+
27+
Contributing
28+
------------
29+
30+
1. Create a named feature branch (like `yourname/add_component_x`)
31+
2. Write your change
32+
3. Write tests for your change (if applicable)
33+
4. Run the tests, ensuring they all pass
34+
5. Submit a Pull Request using Github
35+
36+
License and Authors
37+
-------------------
38+
Authors: The Chef Sales Engineering team

Rakefile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
require 'rspec/core/rake_task'
2+
require 'rubocop/rake_task'
3+
require 'foodcritic'
4+
5+
# Style tests. Rubocop and Foodcritic
6+
namespace :style do
7+
desc 'Run Ruby style checks'
8+
RuboCop::RakeTask.new(:ruby)
9+
10+
desc 'Run Chef style checks'
11+
FoodCritic::Rake::LintTask.new(:chef) do |t|
12+
t.options = {
13+
fail_tags: ['any'],
14+
tags: [
15+
'~FC034'
16+
]
17+
}
18+
end
19+
end
20+
21+
desc 'Run all style checks'
22+
task style: ['style:chef', 'style:ruby']
23+
24+
# Rspec and ChefSpec
25+
desc "Run ChefSpec examples"
26+
RSpec::Core::RakeTask.new(:spec)
27+
28+
# Default
29+
task default: %w(style spec)

Strainerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rubocop: rubocop $COOKBOOK
2+
foodcritic: foodcritic -t ~FC034 -f any $COOKBOOK
3+
chefspec: rspec --color -f d | grep -v WARN

attributes/default.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default["chefweb"]["sites"]["chef"] = { "port" => 80 }
2+
default["chefweb"]["sslsites"]["ssl"] = { "port" => 443 }

chefignore

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Put files/directories that should be ignored in this file when uploading
2+
# or sharing to the community site.
3+
# Lines that start with '# ' are comments.
4+
5+
# OS generated files #
6+
######################
7+
.DS_Store
8+
Icon?
9+
nohup.out
10+
ehthumbs.db
11+
Thumbs.db
12+
13+
# SASS #
14+
########
15+
.sass-cache
16+
17+
# EDITORS #
18+
###########
19+
\#*
20+
.#*
21+
*~
22+
*.sw[a-z]
23+
*.bak
24+
REVISION
25+
TAGS*
26+
tmtags
27+
*_flymake.*
28+
*_flymake
29+
*.tmproj
30+
.project
31+
.settings
32+
mkmf.log
33+
34+
## COMPILED ##
35+
##############
36+
a.out
37+
*.o
38+
*.pyc
39+
*.so
40+
*.com
41+
*.class
42+
*.dll
43+
*.exe
44+
*/rdoc/
45+
46+
# Testing #
47+
###########
48+
.watchr
49+
.rspec
50+
spec/*
51+
spec/fixtures/*
52+
test/*
53+
features/*
54+
Guardfile
55+
Procfile
56+
57+
# SCM #
58+
#######
59+
.git
60+
*/.git
61+
.gitignore
62+
.gitmodules
63+
.gitconfig
64+
.gitattributes
65+
.svn
66+
*/.bzr/*
67+
*/.hg/*
68+
*/.svn/*
69+
70+
# Berkshelf #
71+
#############
72+
cookbooks/*
73+
tmp
74+
75+
# Cookbooks #
76+
#############
77+
CONTRIBUTING
78+
CHANGELOG*
79+
80+
# Strainer #
81+
############
82+
Colanderfile
83+
Strainerfile
84+
.colander
85+
.strainer
86+
87+
# Vagrant #
88+
###########
89+
.vagrant
90+
Vagrantfile
91+
92+
# Travis #
93+
##########
94+
.travis.yml

files/default/chef/_files/128576591.js

+280
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/default/chef/_files/510d9310c6913bba4a65037d88cee739-combined.js

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/default/chef/_files/559ff49ee671cf02043fa3cc52478d38-base.css

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
251 KB
Loading

files/default/chef/_files/conversion.js

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)