Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[OC-4782] Berkshelf-enable the cookbook

  • Loading branch information...
commit 3c20be06ee6fab71c037190c42bfef42077d25f4 1 parent 998a32c
Seth Chisamore schisamo authored
12 .gitignore
... ... @@ -0,0 +1,12 @@
  1 +.bundle
  2 +.vagrant
  3 +Berksfile.lock
  4 +Gemfile.lock
  5 +*~
  6 +*#
  7 +.#*
  8 +\#*#
  9 +.*.sw[a-z]
  10 +*.un~
  11 +/cookbooks
  12 +/bin
3  Berksfile
... ... @@ -0,0 +1,3 @@
  1 +site :opscode
  2 +
  3 +metadata
5 Gemfile
... ... @@ -0,0 +1,5 @@
  1 +source :rubygems
  2 +
  3 +gem 'berkshelf'
  4 +gem 'thor-foodcritic'
  5 +gem 'vagrant', '~> 1.0.5'
6 Thorfile
... ... @@ -0,0 +1,6 @@
  1 +# encoding: utf-8
  2 +
  3 +require 'bundler'
  4 +require 'bundler/setup'
  5 +require 'thor/foodcritic'
  6 +require 'berkshelf/thor'
65 Vagrantfile
... ... @@ -0,0 +1,65 @@
  1 +require 'berkshelf/vagrant'
  2 +
  3 +Vagrant::Config.run do |config|
  4 + # All Vagrant configuration is done here. The most common configuration
  5 + # options are documented and commented below. For a complete reference,
  6 + # please see the online documentation at vagrantup.com.
  7 +
  8 + # The path to the Berksfile to use with Vagrant Berkshelf
  9 + # config.berkshelf.berksfile_path = "./Berksfile"
  10 +
  11 + # An array of symbols representing groups of cookbook described in the Vagrantfile
  12 + # to skip installing and copying to Vagrant's shelf.
  13 + # config.berkshelf.only = []
  14 +
  15 + # An array of symbols representing groups of cookbook described in the Vagrantfile
  16 + # to skip installing and copying to Vagrant's shelf.
  17 + # config.berkshelf.except = []
  18 +
  19 + config.vm.host_name = "chef-server-berkshelf"
  20 +
  21 + config.vm.box = "opscode-ubuntu-10.04"
  22 + config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-10.04.box"
  23 +
  24 + # Boot with a GUI so you can see the screen. (Default is headless)
  25 + # config.vm.boot_mode = :gui
  26 +
  27 + # Assign this VM to a host-only network IP, allowing you to access it
  28 + # via the IP. Host-only networks can talk to the host machine as well as
  29 + # any other machines on the same network, but cannot be accessed (through this
  30 + # network interface) by any external networks.
  31 + config.vm.network :hostonly, "33.33.33.10"
  32 +
  33 + # Assign this VM to a bridged network, allowing you to connect directly to a
  34 + # network using the host's network device. This makes the VM appear as another
  35 + # physical device on your network.
  36 +
  37 + # config.vm.network :bridged
  38 +
  39 + # Forward a port from the guest to the host, which allows for outside
  40 + # computers to access the VM, whereas host only networking does not.
  41 + # config.vm.forward_port 80, 8080
  42 +
  43 + # Share an additional folder to the guest VM. The first argument is
  44 + # an identifier, the second is the path on the guest to mount the
  45 + # folder, and the third is the path on the host to the actual folder.
  46 + # config.vm.share_folder "v-data", "/vagrant_data", "../data"
  47 +
  48 + config.ssh.max_tries = 40
  49 + config.ssh.timeout = 120
  50 +
  51 + # Enable SSH agent forwarding for git clones
  52 + config.ssh.forward_agent = true
  53 +
  54 + config.vm.provision :chef_solo do |chef|
  55 + chef.json = {
  56 + "chef-server" => {
  57 +
  58 + }
  59 + }
  60 +
  61 + chef.run_list = [
  62 + "recipe[chef-server::default]"
  63 + ]
  64 + end
  65 +end
52 chefignore
... ... @@ -0,0 +1,52 @@
  1 +# Put files/directories that should be ignored in this file.
  2 +# Lines that start with '# ' are comments.
  3 +
  4 +## OS
  5 +.DS_Store
  6 +Icon?
  7 +nohup.out
  8 +
  9 +## EDITORS
  10 +\#*
  11 +.#*
  12 +*~
  13 +*.sw[a-z]
  14 +*.bak
  15 +REVISION
  16 +TAGS*
  17 +tmtags
  18 +*_flymake.*
  19 +*_flymake
  20 +*.tmproj
  21 +.project
  22 +.settings
  23 +mkmf.log
  24 +
  25 +## COMPILED
  26 +a.out
  27 +*.o
  28 +*.pyc
  29 +*.so
  30 +
  31 +## OTHER SCM
  32 +*/.bzr/*
  33 +*/.hg/*
  34 +*/.svn/*
  35 +
  36 +## Don't send rspecs up in cookbook
  37 +.watchr
  38 +.rspec
  39 +spec/*
  40 +spec/fixtures/*
  41 +features/*
  42 +
  43 +## SCM
  44 +.gitignore
  45 +
  46 +# Berkshelf
  47 +Berksfile
  48 +Berksfile.lock
  49 +cookbooks/*
  50 +
  51 +# Vagrant
  52 +.vagrant

0 comments on commit 3c20be0

Please sign in to comment.
Something went wrong with that request. Please try again.