Skip to content

Instantly share code, notes, and snippets.

@echohack
Last active October 7, 2015 20:29
Show Gist options
  • Save echohack/09c3daf494949a6951bd to your computer and use it in GitHub Desktop.
Save echohack/09c3daf494949a6951bd to your computer and use it in GitHub Desktop.
dsc_script example
iis_ws_config = "#{node['app']['file_cache_path']}\\iis_ws_config.ps1"
template iis_ws_config do
source 'iis_ws_config.ps1.erb'
variables(
ws_pool_user: env_credentials['ws_pool_user'],
ws_pool_pswd: env_credentials['ws_pool_pswd'],
site_name: ws['site_name'],
site_path: ws['site_path'],
formservice_path: ws['formservice_path'],
formsetservice_path: ws['formsetservice_path'],
renderingservice_path: ws['renderingservice_path'],
services_path: ws['services_path']
)
end
dsc_script 'iis_ws_config' do
command iis_ws_config
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment