[chef] Re: Re: Re: knife cookbook update is not working.


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: knife cookbook update is not working.
  • Date: Mon, 5 Jan 2015 00:26:20 -0800

I'm unsure how you would derive config[environment]['cache_path'] from
this configuration file?

- Julian

On Fri, Jan 2, 2015 at 9:22 PM, dharmesh patel
< >
 wrote:
> Julian,
>
> Here is the info
>
> require 'yaml'
>
> config = YAML::load(File.open(ENV["CHEF_CONFIG"]))
> provider = ENV['CHEF_PROVIDER'] || "internal"
> environment = ENV['CHEF_ENVIRONMENT'] || "development"
>
> log_level                :info
> log_location             STDOUT
> node_name                config[environment]["user"]
> client_key               config[environment]["user_key"]
> validation_client_name   config[environment]["validation_key_name"]
> validation_key           config[environment]["validation_key"]
> chef_server_url          config[environment]["url"]
> cache_type               'BasicFile'
> cache_options(:path => config[environment]["cache_path"])
> cookbook_path            ["#{Dir.pwd}/cookbooks"]
> cookbook_copyright      "Lifelock"
> cookbook_email          
> " "
> cookbook_license        "apachev2"
> encrypted_data_bag_secret "#{Dir.pwd}/data_bags/encrypted_data_bag_secret"
>
> knife[:ssh_user] = config[environment]["ssh_user"]
>
> knife[:vsphere_host] = config["vsphere_host"]
> knife[:vsphere_user] = config["vsphere_user"]
> knife[:vsphere_pass] = config["vsphere_pass"]
> knife[:vsphere_dc] = config["vsphere_dc"]
> knife[:vsphere_insecure] = config["vsphere_insecure"]
>
> case provider
> when "amazon"
>   knife[:aws_access_key_id] = config["aws_access_key_id"]
>   knife[:aws_secret_access_key] = config["aws_secret_access_key"]
> end
>
> On Fri, Jan 2, 2015 at 6:02 PM, Julian C. Dunn 
> < >
>  wrote:
>>
>> On Fri, 2 Jan 2015, dharmesh patel wrote:
>>
>>> I am keep getting below error while uploading cookbook.
>>>
>>> ERROR: TypeError: can't convert nil into String
>>
>>
>> Post your knife.rb? What do you have set as syntax_check_cache_path and/or
>> the legacy cache_options setting?
>>
>> - Julian
>>
>> [ Julian C. Dunn 
>> < >
>>           * Sorry, I'm    ]
>> [ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
>> [ gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
>> [ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]
>
>
>
>
> --
> Thanks & Regards
>
> Dharmesh Patel (B.E.I.T)
>



-- 
[ Julian C. Dunn 
< >
          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§