title: Chef Recipe Group not working
body: <p>I'm getting the following error when I try to run my Chef recipe and I am at a loss as to what I'm doing wrong. I'm only really getting started with it.</p>
  
  <pre><code>================================================================================
  Recipe Compile Error in /var/chef/cache/cookbooks/app/recipes/default.rb
  ================================================================================
  
  Chef::Exceptions::ValidationFailed
  ----------------------------------
  Option group's value #&lt;Chef::Node::Attribute:0x7f5282d15700&gt; does not match regular expression [/^([-a-zA-Z0-9_.\\ ]+)$/, /^\d+$/]
  
  Cookbook Trace:
  ---------------
    /var/chef/cache/cookbooks/app/recipes/default.rb:25:in `from_file'
    /var/chef/cache/cookbooks/app/recipes/default.rb:23:in `from_file'
  
  Relevant File Content:
  ----------------------
  /var/chef/cache/cookbooks/app/recipes/default.rb:
  
    1:  #
    2:  # Cookbook Name:: app
    3:  # Recipe:: default
    4:  #
    5:
    6:  group node[:app][:group][:name] do
    7:      gid node[:app][:group][:gid]
    8:      append true
    9:  end
  
  [2014-02-03T09:42:24+00:00] ERROR: Running exception handlers
  [2014-02-03T09:42:24+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
  [2014-02-03T09:42:24+00:00] ERROR: Exception handlers complete
  [2014-02-03T09:42:24+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  [2014-02-03T09:42:24+00:00] FATAL: Chef::Exceptions::ValidationFailed: Option group's value #&lt;Chef::Node::Attribute:0x7f5282d15700&gt; does not match regular expression [/^([-a-zA-Z0-9_.\\ ]+)$/, /^\d+$/]
  </code></pre>
  
  <p>These are the values from <code>attributes/default.rb</code>:</p>
  
  <pre><code>default[:app][:group][:name]            = "nginx"
  default[:app][:group][:gid]             = 123456
  </code></pre>
  
  <p>I have changed it so the values are in the code and still get the same error:</p>
  
  <pre><code>================================================================================
  Recipe Compile Error in /var/chef/cache/cookbooks/app/recipes/default.rb
  ================================================================================
  
  Chef::Exceptions::ValidationFailed
  ----------------------------------
  Option group's value #&lt;Chef::Node::Attribute:0x7fa2b7ef2ef8&gt; does not match regular expression [/^([-a-zA-Z0-9_.\\ ]+)$/, /^\d+$/]
  
  Cookbook Trace:
  ---------------
    /var/chef/cache/cookbooks/app/recipes/default.rb:25:in `from_file'
    /var/chef/cache/cookbooks/app/recipes/default.rb:23:in `from_file'
  
  Relevant File Content:
  ----------------------
  /var/chef/cache/cookbooks/app/recipes/default.rb:
  
    1:  #
    2:  # Cookbook Name:: app
    3:  # Recipe:: default
    4:  #
    5:
    6:  group "nginx" do
    7:      gid 123456
    8:      append true
    9:  end
  
  [2014-02-03T09:53:35+00:00] ERROR: Running exception handlers
  [2014-02-03T09:53:35+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
  [2014-02-03T09:53:35+00:00] ERROR: Exception handlers complete
  [2014-02-03T09:53:35+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  [2014-02-03T09:53:35+00:00] FATAL: Chef::Exceptions::ValidationFailed: Option group's value #&lt;Chef::Node::Attribute:0x7fa2b7ef2ef8&gt; does not match regular expression [/^([-a-zA-Z0-9_.\\ ]+)$/, /^\d+$/]
  </code></pre>