我们有一个旧的网站,使用经典的ASP的部分功能。我们将把它移到Windows 2012,并想尝试化蛹这个过程。有木偶模块,将安装经典的ASP,我们可以使用从锻造或其他地方?
发布于 2016-01-15 20:14:49
这是个很好的问题。我猜你已经搜索了和GitHub:
我还环顾四周,却没有看到一个。我认为您无法在您自己的清单/模块中添加此内容。但是,安装ASP的过程实际上就像在IIS中启用ASP一样简单。
DISM
您可以通过简单地使用傀儡症模块
# may require other items turned on as well with DISM
dism { "IIS-ASP":
ensure => present,
}注意:您可能需要安装其他组件,所以您可能需要更多的检查。
Windows功能(推荐)
为了更好地进行更新,我们应该安装windows模块包,尽管您可以只安装木偶窗模块。
# add windows features
# Ensure IIS itself is installed with management tools
windowsfeature { 'Web-WebServer':
installmanagementtools => true,
} ->
# Ensure ASP is enabled for IIS
windowsfeature { 'Web-Asp':
} ->
# Optionally ensure ASP.NET 3.5 is enabled for IIS
windowsfeature { 'Web-Asp-Net':
} ->
# Optionally ensure ASP.NET 4.5 is enabled for IIS
windowsfeature { 'Web-Asp-Net45':
}上面的内容略显凌驾于上面,但它显示了您可能甚至没有考虑过的问题,即Puppet可以为您处理安装和配置IIS本身的问题。使用服务器功能模块的示例是从server/blob/55b58e7869f0665c63e285749de13837f6748767/manifests/init.pp#L45-L69模块中提取的-参见server/blob/55b58e7869f0665c63e285749de13837f6748767/manifests/init.pp#L45-L69,您还可以使用木偶模块管理木偶站点和应用程序池。
https://stackoverflow.com/questions/34814513
复制相似问题