Puppet manifest for Windows using WebPiCMD
I have the following class to install all different versions of Asp.net MVC
class mvc{
exec { 'mvc10':
command => 'C:\Temp\WebPiCmd.exe /Install /Products:MVC /AcceptEula',
logoutput => true,
require => [Class["webpicmd"],Class["webserver"]]
}
exec { 'mvc30':
command => 'C:\Temp\WebPiCmd.exe /Install /Products:MVC3 /AcceptEula',
logoutput => true,
require => [Class["webpicmd"],Exec["mvc10"]]
}
file {'mvc40':
name => 'C:\Temp\AspNetMVC4Setup.exe',
ensure => present,
source => 'puppet:///modules/mvc/AspNetMVC4Setup.exe',
mode => 0755
}
exec { 'mvc40':
command => 'C:\Temp\AspNetMVC4Setup.exe /q ',
logoutput => true,
require => [File["mvc40"],Class["netfx40"],Exec[mvc30]]
}
}
When I execute the puppet client remotely using a CI server like Team City ...
What version of puppet are you using, both master and agent? What is the exact error message you get when it fails? You require classes in several instances - nothing wrong ...(more)
Puppet Enterprise 2.7.19 for both.
We tested with a blank Windows 2008 R2 and execute the puppet client using the .bat file and it worked perfectly. The problem ...(more)
There are certain dependencies that need to be enforced for certain Microsoft Packages. For example SQL Server 2008->Framework 4.0-> and all the Products using WebPiCMD depend on that ...(more)