10thmagnitude / xm-demo-cookbook

Demo cookbook for 10th Magnitude clients
Other
2 stars 0 forks source link

Cookbook won't converge on nodes fro chef server #20

Open mattstratton opened 11 years ago

mattstratton commented 11 years ago
137.135.96.15 ================================================================================
137.135.96.15 Recipe Compile Error in c:/chef/cache/cookbooks/xm-demo-cookbook/attributes/default.rb
137.135.96.15 ================================================================================
137.135.96.15 
137.135.96.15 NoMethodError
137.135.96.15 -------------
137.135.96.15 undefined method `[]' for nil:NilClass
137.135.96.15 
137.135.96.15 Cookbook Trace:
137.135.96.15 ---------------
137.135.96.15   c:/chef/cache/cookbooks/xm-demo-cookbook/attributes/default.rb:21:in `from_file'
137.135.96.15 
137.135.96.15 Relevant File Content:
137.135.96.15 ----------------------
137.135.96.15 c:/chef/cache/cookbooks/xm-demo-cookbook/attributes/default.rb:
137.135.96.15 
137.135.96.15  14:  # distributed under the License is distributed on an "AS IS" BASIS,
137.135.96.15  15:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137.135.96.15  16:  # See the License for the specific language governing permissions and
137.135.96.15  17:  # limitations under the License.
137.135.96.15  18:  #
137.135.96.15  19:  
137.135.96.15  20:  default[:xm_demo][:administrator] = "xmadmin"
137.135.96.15  21>> default[:xm_demo][:admin_password] = node[:windows_users][:admin_password]
137.135.96.15  22:  default[:xm_demo][:apppool_user] = "xm-demo-pool"
137.135.96.15  23:  default[:xm_demo][:apppool_password] = node[:windows_users][:apppool_password]
137.135.96.15  24:  default[:xm_demo][:web_root] = "c:/webroot/xm-demo"
137.135.96.15  25:  default[:xm_demo][:log_root] = "c:/logs"
137.135.96.15  26:  default[:iis][:accept_eula] = true 27:  
mattstratton commented 11 years ago

Need to set node[:windows_users][:admin_password] and node[:windows_users][: apppool_password] in an environment.

Might consider putting back in defaults for now and TODO putting in encrypted data bag.