Sha256: 921d82a21eb9f5cf9f8ca5c2ce42968d69039ff6f5c2288de8deeedab16934c1

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

@rem
@rem Author:: Seth Chisamore (<schisamo@opscode.com>)
@rem Copyright:: Copyright (c) 2011 Opscode, Inc.
@rem License:: Apache License, Version 2.0
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem     http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

<%= "SETX HTTP_PROXY \"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] %>
mkdir C:\chef

> C:\chef\wget.vbs (
 <%= win_wget %>
)

@rem Install Chef using chef-client MSI installer
cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:%TEMP%\chef-client-latest.msi
msiexec /qb /i %TEMP%\chef-client-latest.msi

> C:\chef\validation.pem (
 <%= validation_key %>
)

<% if @config[:encrypted_data_bag_secret] -%>
> C:\chef\encrypted_data_bag_secret (
 <%= encrypted_data_bag_secret %>
)
<% end -%>

> C:\chef\client.rb (
 <%= config_content %>
)

> C:\chef\first-boot.json (
 <%= run_list %>
)

<%= start_chef %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife-windows-0.5.10 lib/chef/knife/bootstrap/windows-chef-client-msi.erb
knife-windows-0.5.10.rc.1 lib/chef/knife/bootstrap/windows-chef-client-msi.erb
knife-windows-0.5.8 lib/chef/knife/bootstrap/windows-chef-client-msi.erb