From b03602d35e451ff8a273b9c6ae4bd7255fa012d9 Mon Sep 17 00:00:00 2001 From: Dmitry Teselkin Date: Sun, 10 Mar 2013 15:10:47 +0400 Subject: [PATCH] Function to install IIS added --- .../ExecutionPlan/InstallIIS/ExecutionPlan.txt | 7 +++++++ Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat | 1 + .../ExecutionPlan/InstallIIS/Install-WebServer.ps1 | 4 ++++ Deployment/ExecutionPlan/InstallIIS/out.json | 12 ++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt create mode 100644 Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat create mode 100644 Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 create mode 100644 Deployment/ExecutionPlan/InstallIIS/out.json diff --git a/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt b/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt new file mode 100644 index 0000000..bf3d2e9 --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt @@ -0,0 +1,7 @@ +include Install-WebServer.ps1 + +call Install-WebServer + +reboot 0 + +out out.json diff --git a/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat b/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat new file mode 100644 index 0000000..0b6aae7 --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat @@ -0,0 +1 @@ +..\ExecutionPlanGenerator.exe ExecutionPlan.txt \ No newline at end of file diff --git a/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 b/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 new file mode 100644 index 0000000..5ec0a4b --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 @@ -0,0 +1,4 @@ +function Install-WebServer { + Import-Module ServerManager + Install-WindowsFeature Web-Server -IncludeManagementTools +} diff --git a/Deployment/ExecutionPlan/InstallIIS/out.json b/Deployment/ExecutionPlan/InstallIIS/out.json new file mode 100644 index 0000000..baeaec1 --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/out.json @@ -0,0 +1,12 @@ +{ + "Scripts": [ + "ZnVuY3Rpb24gSW5zdGFsbC1XZWJTZXJ2ZXIgew0KICAgIEltcG9ydC1Nb2R1bGUgU2VydmVyTWFuYWdlcg0KICAgIEluc3RhbGwtV2luZG93c0ZlYXR1cmUgV2ViLVNlcnZlciAtSW5jbHVkZU1hbmFnZW1lbnRUb29scw0KfQ0K" + ], + "Commands": [ + { + "Name": "Install-WebServer", + "Arguments": {} + } + ], + "RebootOnCompletion": 0 +} \ No newline at end of file