用于安装 ASP(而非 ASP.Net)的 Puppet 模块?
Puppet modules for installing ASP (not ASP.Net)?
我们有一个旧网站,其部分功能使用经典 ASP。我们将其移至 Windows 2012 年,并希望尝试将流程木偶化。是否有 puppet 模块可以安装我们可以从锻造厂或其他地方使用的经典 ASP?
这是一个很好的问题。我猜你已经搜索过 forge 和 GitHub:
- https://forge.puppetlabs.com/modules?utf-8=%E2%9C%93&sort=rank&q=asp
- https://github.com/search?q=puppet+asp&ref=reposearch&utf8=%E2%9C%93
我也看了一圈,也没看到。我认为您坚持在自己的 manifests/modules 中添加它。然而,安装 ASP 的过程实际上就像在 IIS 中启用它一样简单。
DISM
你可以简单地使用puppetlabs-dism模块和
来获得它
# may require other items turned on as well with DISM
dism { "IIS-ASP":
ensure => present,
}
注意:您可能需要与此一起安装其他组件,因此您可能需要进行更多检查。
Windows 特征(推荐)
要获得更新的方法,应该安装 windows modules pack although you can install just the puppet-windowsfeature 模块。
# 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 本身。使用 windows 功能模块的示例是从 chocolatey-chocolatey_server module - see https://github.com/chocolatey/puppet-chocolatey_server/blob/55b58e7869f0665c63e285749de13837f6748767/manifests/init.pp#L45-L69 and you will see you can also manage IIS sites and application pools using the puppet-iis 模块中提取的。
我们有一个旧网站,其部分功能使用经典 ASP。我们将其移至 Windows 2012 年,并希望尝试将流程木偶化。是否有 puppet 模块可以安装我们可以从锻造厂或其他地方使用的经典 ASP?
这是一个很好的问题。我猜你已经搜索过 forge 和 GitHub:
- https://forge.puppetlabs.com/modules?utf-8=%E2%9C%93&sort=rank&q=asp
- https://github.com/search?q=puppet+asp&ref=reposearch&utf8=%E2%9C%93
我也看了一圈,也没看到。我认为您坚持在自己的 manifests/modules 中添加它。然而,安装 ASP 的过程实际上就像在 IIS 中启用它一样简单。
DISM
你可以简单地使用puppetlabs-dism模块和
来获得它# may require other items turned on as well with DISM
dism { "IIS-ASP":
ensure => present,
}
注意:您可能需要与此一起安装其他组件,因此您可能需要进行更多检查。
Windows 特征(推荐)
要获得更新的方法,应该安装 windows modules pack although you can install just the puppet-windowsfeature 模块。
# 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 本身。使用 windows 功能模块的示例是从 chocolatey-chocolatey_server module - see https://github.com/chocolatey/puppet-chocolatey_server/blob/55b58e7869f0665c63e285749de13837f6748767/manifests/init.pp#L45-L69 and you will see you can also manage IIS sites and application pools using the puppet-iis 模块中提取的。