Ask Your Question
1

Puppet manifest for Windows using WebPiCMD

asked 2013-02-05 13:58:22 -0500

louis gravatar image

updated 2013-02-05 23:31:11 -0500

llowder gravatar image

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 ... (more)

edit retag flag offensive close merge delete

Comments

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)

llowder gravatar imagellowder ( 2013-02-05 23:35:36 -0500 )edit

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)

louis gravatar imagelouis ( 2013-02-06 20:53:39 -0500 )edit

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)

louis gravatar imagelouis ( 2013-02-06 20:57:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-07 14:37:05 -0500

i haven't used it, but chocolatey supports webpicmd. i wrote the chocolatey provider for puppet, and perhaps it can be extended to your use case.

https://github.com/chocolatey/chocolatey/wiki/CommandsWebPI

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-02-05 13:58:22 -0500

Seen: 528 times

Last updated: Feb 07 '13