Permalink
Commits on Nov 3, 2014
  1. Notes in changelog

    committed Nov 3, 2014
Commits on Oct 31, 2014
  1. Merge pull request #8 from agoddard/develop

    basic kitchen tooling & centos SSL cert generation
    committed Oct 31, 2014
  2. added initial serverspec tests

    agoddard committed Oct 31, 2014
  3. add name attribute to avoid chef error

    Administrator committed with Apr 25, 2014
  4. Update default.rb

    cbake6807 committed with Feb 26, 2014
  5. Update default.rb

    cbake6807 committed with Feb 26, 2014
  6. adding rubygems proxy flag

    cbake6807 committed with Feb 26, 2014
  7. Properly format the hash

    Currently the readme reads:
    
    ```
    or, you can provide a hash of user/password pairs and have the auth file dynamically
    created:
    
      node[:geminabox][:auth_required] = {'user1', 'secret'}
    ```
    
    I'm guessing that comma should be a =>.
    arsduo committed with Nov 25, 2013
Commits on Oct 28, 2014
  1. Default setup attributes

    committed Oct 28, 2014
Commits on Oct 20, 2014
Commits on Sep 11, 2013
  1. Configure how we listen

    committed Sep 11, 2013
Commits on Sep 6, 2013
Commits on Jan 12, 2013
  1. Bump version v0.1.2

    committed Jan 12, 2013
  2. Merge pull request #4 from VertiPub/master

    HTTPS fixes
    committed Jan 12, 2013
Commits on Dec 24, 2012
  1. Merge pull request #3 from VertiPub/ssl_header_correction

    Ssl header correction
    chaiken-verticloud committed Dec 24, 2012
Commits on Dec 23, 2012
  1. Remove extra "proxy_set_header Host" entry.

    Tucker committed Dec 23, 2012
  2. Correctly set headers for https.

    Tucker committed Dec 23, 2012
Commits on Nov 14, 2012
  1. Bump version v0.1.1

    committed Nov 14, 2012
  2. Merge pull request #1 from VertiPub/fix_unicorn_startup

    Remove extra double quote from unix domain socket in unicorn config file...
    committed Nov 14, 2012
  3. Merge pull request #2 from VertiPub/disambiguate_ssl_enabled

    Disambiguate ssl enabled flag.
    committed Nov 14, 2012
  4. Merge pull request #3 from rectalogic/patch-1

    Use proper Bluepill::Process attribute names
    committed Nov 14, 2012
Commits on Nov 13, 2012
  1. Use proper Bluepill::Process attribute names

    process.start_command was being set 3 times, should be setting stop_command and restart_command too.
    rectalogic committed Nov 13, 2012
Commits on Sep 28, 2012
  1. Merge pull request #1 from VertiPub/fix_unicorn_startup

    Remove extra double quote from unix domain socket in unicorn config file...
    jblatt-verticloud committed Sep 28, 2012
  2. Merge pull request #2 from VertiPub/disambiguate_ssl_enabled

    Disambiguate ssl enabled flag.
    jblatt-verticloud committed Sep 28, 2012
  3. Disambiguate ssl enabled flag.

    This one is arguable.  I'll explain what I'm trying to accomplish.   You decide whether you think this is the right approach ;)
    
    This is what I'm trying to do - use the chef .json role stuff:
    
    {
        "name":"gemsrepo",
        "chef_type":"role",
        "json_class":"Chef::Role",
        "default_attributes":{
        },
        "description":"geminabox on top of nginx + unicorn (what github uses)",
        "run_list":[
            "recipe[ruby]", "recipe[geminabox]"
        ],
        "override_attributes":{
            "geminabox": {
                "ssl": {
                    "key": "/foo",
                    "cert": "/bar"
                }
            }
        }
    }
    
    Before the change I got this:
    
    [2012-09-28T00:04:52-04:00] INFO: *** Chef 10.14.2 ***
    [2012-09-28T00:04:54-04:00] INFO: Setting the run_list to ["role[gemsrepo]", "role[nagios_client]"] from JSON
    [2012-09-28T00:04:54-04:00] INFO: Run List is [role[gemsrepo], role[nagios_client]]
    [2012-09-28T00:04:54-04:00] INFO: Run List expands to [ruby, geminabox, nagios::client]
    [2012-09-28T00:04:54-04:00] INFO: Starting Chef Run for ip-10-252-77-246.us-west-2.compute.internal
    [2012-09-28T00:04:54-04:00] INFO: Running start handlers
    [2012-09-28T00:04:54-04:00] INFO: Start handlers complete.
    [2012-09-28T00:04:54-04:00] INFO: ohai plugins will be at: /etc/chef/ohai_plugins
    [2012-09-28T00:04:54-04:00] INFO: Processing remote_directory[/etc/chef/ohai_plugins] action create (ohai::default line 23)
    [2012-09-28T00:04:54-04:00] INFO: Processing cookbook_file[/etc/chef/ohai_plugins/README] action create (dynamically defined)
    [2012-09-28T00:04:54-04:00] INFO: Processing ohai[custom_plugins] action reload (ohai::default line 34)
    [2012-09-28T00:04:56-04:00] INFO: ohai[custom_plugins] reloaded
    
    ================================================================================
    Recipe Compile Error in /tmp/exec/cookbooks/geminabox/recipes/default.rb
    ================================================================================
    
    NoMethodError
    -------------
    undefined method `has_key?' for false:FalseClass
    
    Cookbook Trace:
    ---------------
      /tmp/exec/cookbooks/geminabox/recipes/nginx.rb:10:in `from_file'
      /tmp/exec/cookbooks/geminabox/recipes/default.rb:18:in `from_file'
    
    Relevant File Content:
    ----------------------
    /tmp/exec/cookbooks/geminabox/recipes/nginx.rb:
    
      1:  include_recipe 'nginx'
      2:
      3:  %w(000-default default).each do |site|
      4:    nginx_site site do
      5:      enable false
      6:    end
      7:  end
      8:
      9:  if(node[:geminabox][:ssl].respond_to?(:[]))
    
    [2012-09-28T00:04:56-04:00] ERROR: Running exception handlers
    [2012-09-28T00:04:56-04:00] ERROR: Exception handlers complete
    [2012-09-28T00:04:56-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
    [2012-09-28T00:04:56-04:00] FATAL: NoMethodError: undefined method `has_key?' for false:FalseClass
    Generated at 2012-09-28 00:04:56 -0400
    NoMethodError: undefined method `has_key?' for false:FalseClass
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/node/attribute.rb:388:in `value_or_descend'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/node/attribute.rb:109:in `[]'
    /tmp/exec/cookbooks/geminabox/recipes/nginx.rb:10:in `from_file'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/from_file.rb:30:in `from_file'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/cookbook_version.rb:558:in `load_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:46:in `load_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:33:in `block in include_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:27:in `each'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
    /tmp/exec/cookbooks/geminabox/recipes/default.rb:18:in `from_file'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/from_file.rb:30:in `from_file'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/cookbook_version.rb:558:in `load_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:46:in `load_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:33:in `block in include_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:27:in `each'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/run_context.rb:79:in `block in load'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/run_context.rb:75:in `each'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/run_context.rb:75:in `load'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/client.rb:198:in `setup_run_context'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/client.rb:418:in `do_run'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/client.rb:176:in `run'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/application/solo.rb:230:in `block in run_application'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/application/solo.rb:218:in `loop'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/application/solo.rb:218:in `run_application'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/lib/chef/application.rb:70:in `run'
    /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.2/bin/chef-solo:25:in `<top (required)>'
    /usr/bin/chef-solo:23:in `load'
    /usr/bin/chef-solo:23:in `<main>'
    Deploy to  [FAIL]
    
    With the change, no more errors, but my role.json changes sligtly to this:
    
    {
        "name":"gemsrepo",
        "chef_type":"role",
        "json_class":"Chef::Role",
        "default_attributes":{
        },
        "description":"geminabox on top of nginx + unicorn (what github uses)",
        "run_list":[
            "recipe[ruby]", "recipe[geminabox]"
        ],
        "override_attributes":{
            "geminabox": {
                "ssl": {
                    "enabled": true,
                    "key": "foo",
                    "cert": "bar"
                }
            }
        }
    }
    jblatt-verticloud committed Sep 28, 2012