{"id":19249286,"url":"https://github.com/sous-chefs/webpi","last_synced_at":"2025-08-03T04:05:14.373Z","repository":{"id":2726023,"uuid":"3720962","full_name":"sous-chefs/webpi","owner":"sous-chefs","description":"Development repository for the webpi cookbook","archived":false,"fork":false,"pushed_at":"2024-12-04T16:21:04.000Z","size":200,"stargazers_count":17,"open_issues_count":4,"forks_count":25,"subscribers_count":52,"default_branch":"main","last_synced_at":"2025-07-08T07:27:39.706Z","etag":null,"topics":["chef","chef-cookbook","chef-resource","hacktoberfest","managed-by-terraform","webpi"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/webpi","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sous-chefs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"sous-chefs"}},"created_at":"2012-03-14T18:42:06.000Z","updated_at":"2024-05-03T18:51:15.000Z","dependencies_parsed_at":"2023-07-06T15:16:26.988Z","dependency_job_id":"aa695676-5b44-4f49-ad9b-3a947c0b2a2e","html_url":"https://github.com/sous-chefs/webpi","commit_stats":{"total_commits":178,"total_committers":27,"mean_commits":6.592592592592593,"dds":0.7752808988764045,"last_synced_commit":"166bebcdb312ad32244cec1b9e9b9c8943891b01"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/sous-chefs/webpi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fwebpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fwebpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fwebpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fwebpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sous-chefs","download_url":"https://codeload.github.com/sous-chefs/webpi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fwebpi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266326905,"owners_count":23911726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chef","chef-cookbook","chef-resource","hacktoberfest","managed-by-terraform","webpi"],"created_at":"2024-11-09T18:13:32.808Z","updated_at":"2025-08-03T04:05:14.344Z","avatar_url":"https://github.com/sous-chefs.png","language":"Ruby","funding_links":["https://opencollective.com/sous-chefs"],"categories":[],"sub_categories":[],"readme":"# webpi Cookbook\n\n[![Build status](https://ci.appveyor.com/api/projects/status/reuore13vgktbk6o/branch/master?svg=true)](https://ci.appveyor.com/project/ChefWindowsCookbooks/webpi/branch/master) [![Cookbook Version](https://img.shields.io/cookbook/v/webpi.svg)](https://supermarket.chef.io/cookbooks/webpi)\n\nMicrosoft Web Platform Installer (WebPI) automates the installation of Microsoft's entire Web Platform. This cookbook makes it easy to get WebpiCmdLine.exe the lightweight CLI version of WebPI onto a Windows node. It also exposes a resource for installing WebPI products idempotently.\n\n## Requirements\n\n### Platforms\n\n- Windows 7\n- Windows Server 2008 R2\n- Windows 8, 8.1\n- Windows Server 2012 (R1, R2)\n\n### Chef\n\n- Chef 12.6+\n\n### Cookbooks\n\n- windows 2.0+\n\n## Attributes\n\n- `node['webpi']['home']` - location to install WebPI files to. Default is `%SYSTEMDRIVE%\\webpi`\n- `node['webpi']['url']` - Path to download webpi zip.\n- `node['webpi']['xmlpath']` - Optional path to custom xml file.\n- `node['webpi']['install_method']` - Method of installing webpi via msi or zip. Default is msi.\n- `node['webpi']['msi']` - Location of msi file to use.\n- `node['webpi']['msi_package_name']` - Windows package name, found in registry, for msi. Defaults to \"Microsoft Web Platform Installer 4.5\"\n\n## Resources\n\n### webpi_product\n\n#### Actions\n\n- :install: install a product using WebpiCmdLine\n\n#### Properties\n\n- product_id: name property. Specifies the ID of a product to install.\n- accept_eula: specifies that WebpiCmdline should auto-accept EULAs. Default is false.\n- returns: specifies the return value(s) expected for a successful installation. Can be a single integer or array of integers. Default is [0, 42]\n\n#### Examples\n\nInstall IIS 7 Recommended Configuration (will install IIS 8 on Windows 2012 despite the name)\n\n```ruby\nwebpi_product 'IIS7' do\n  accept_eula true\n  action :install\nend\n```\n\nInstall Windows PowerShell 2.0\n\n```ruby\nwebpi_product 'PowerShell2' do\n  accept_eula true\n  action :install\nend\n```\n\nInstall Windows Azure Powershell 1.0 (will return a 3010 exit code to signify a successful installation that requires a reboot)\n\n```ruby\nwebpi_product 'WindowsAzurePowerShellGet' do\n  accept_eula true\n  action :install\n  returns 3010\nend\n```\n\n### webpi_application\n\n#### Actions\n\n- :install: install an application using WebpiCmdLine\n\n#### Properties\n\n- app_id: name property. Specifies the ID of an application to install.\n- accept_eula: specifies that WebpiCmdline should auto-accept EULAs. Default is false.\n- suppress_reboot: specifies if we need to stop or suppress the reboot. Default is True.\n- iis_express: used only with applications that intergrate with IIS. Default value is False.\n- mysql_password: Used to give a mysql password for application which requires it.\n- sql_password: Used to give a sql password for application which requires it.\n- other_options: Any other options related to applications needed to be appended. Default value is empty string.\n- returns: specifies the return value(s) expected for a successful installation. Can be a single integer or array of integers. Default is [0, 42]\n\n#### Examples\n\nInstalling WebMatrix while Accepting the EULA and also install app to IISExpress\nEx: \u003eWebPICMD.exe /Install /Products:WebMatrix /AcceptEula /IISExpress\n\n```ruby\nwebpi_application 'WebMatrix' do\n  accept_eula true\n  iis_express true\n  action  :install\nend\n```\n\nInstalling an application to MicrosoftAzure ServiceFabric CoreSDK\nEx: \u003eWebPICMD.exe /Install /Applications:MicrosoftAzure-ServiceFabric-CoreSDK /AcceptEula\n\n```ruby\nwebpi_application 'MicrosoftAzure-ServiceFabric-CoreSDK' do\n  accept_eula true\n  action :install\nend\n```\n\n```ruby\npassword = data_bag_item('secrets','mysqlpassword')['password'] # Should be a encrypted data bag\nwebpi_application 'AcquiaDrupal' do\n  accept_eula    true\n  mysql_password password # To be set from encrypted databag\n  action         :install\nend\n```\n\n## Usage\n\n### default\n\nDownloads and unzips `WebpiCmdLine.exe` to the location specified by `node['webpi']['home']`. `WebpiCmdLine.exe` is used required by the `webpi_product` LWRP for taking all actions.\n\n## License \u0026 Authors\n\n**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))\n\n**Copyright:** 2011-2019, Chef Software, Inc.\n\n```text\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsous-chefs%2Fwebpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsous-chefs%2Fwebpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsous-chefs%2Fwebpi/lists"}