Skip to content

Commit

Permalink
Merge pull request #709 from ministryofjustice/dso/add-install-git-wi…
Browse files Browse the repository at this point in the history
…ndows-component

Dso/add install git windows component
  • Loading branch information
robertsweetman authored Feb 12, 2024
2 parents 5d4cd07 + 658a8e5 commit f798227
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 7 deletions.
7 changes: 6 additions & 1 deletion commonimages/base/windows_2012_r2/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ locals {
},
{
name = "powershell_core_server_2012"
version = "0.0.3"
version = "0.0.4"
parameters = []
},
{
name = "aws_cli"
version = "0.0.4"
parameters = []
},
{
name = "git_windows"
version = "0.0.2"
parameters = []
}
]

component_template_args = {}
Expand Down
2 changes: 1 addition & 1 deletion commonimages/base/windows_2012_r2/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

region = "eu-west-2"
ami_base_name = "windows_server_2012_r2"
configuration_version = "0.1.9"
configuration_version = "0.2.1"
release_or_patch = "release" # or "patch", see nomis AMI image building strategy doc
description = "Windows Server 2012 R2"

Expand Down
7 changes: 6 additions & 1 deletion commonimages/base/windows_2012_r2_SQL_2014/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ locals {
},
{
name = "powershell_core_server_2012"
version = "0.0.3"
version = "0.0.4"
parameters = []
},
{
name = "aws_cli"
version = "0.0.4"
parameters = []
},
{
name = "git_windows"
version = "0.0.2"
parameters = []
}
]

component_template_args = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

region = "eu-west-2"
ami_base_name = "windows_server_2012_r2_SQL_2014_enterprise"
configuration_version = "0.0.8"
configuration_version = "0.1.0"
release_or_patch = "release" # or "patch", see nomis AMI image building strategy doc
description = "Windows Server 2012 R2 with SQL 2014 Enterprise"

Expand Down
22 changes: 22 additions & 0 deletions commonimages/components/templates/git_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: git_windows
description: Component to install Git for Windows
schemaVersion: 1.0
parameters:
- Version:
type: string
default: 0.0.2
description: Component version (update this each time the file changes)
- Platform:
type: string
default: "Windows"
description: Platform.
phases:
- name: build
steps:
- name: InstallGitForWindows
action: ExecutePowerShell
inputs:
commands:
- |
choco install git.install -y
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ schemaVersion: 1.0
parameters:
- Version:
type: string
default: 0.0.3
default: 0.4.0
description: Component version (update this each time the file changes)
- Platform:
type: string
Expand All @@ -25,4 +25,4 @@ phases:
- |
choco install -y chocolatey-core.extension
choco install -y kb3118401
choco install -y powershell-core --version '{{ PowerShellCoreVersion }}' --install-arguments='"ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 USE_MU=0 ENABLE_MU=0 ADD_PATH=1 DISABLE_TELEMETRY"'
choco install -y powershell-core --version '{{ PowerShellCoreVersion }}' --install-arguments='"ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1"'
5 changes: 5 additions & 0 deletions teams/hmpps/windows_server_2022/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ locals {
name = "psreadline_fix"
version = "0.0.4"
parameters = []
},
{
name = "git_windows"
version = "0.0.2"
parameters = []
}
]

Expand Down
2 changes: 1 addition & 1 deletion teams/hmpps/windows_server_2022/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
region = "eu-west-2"
ami_name_prefix = "hmpps"
ami_base_name = "windows_server_2022"
configuration_version = "0.1.8"
configuration_version = "0.2.0"
release_or_patch = "release" # or "patch", see nomis AMI image building strategy doc
description = "windows server 2022"

Expand Down

0 comments on commit f798227

Please sign in to comment.