forked from Shogan/packer-windows-server-ami-with-s3download
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstandardBaseImage.json
51 lines (51 loc) · 1.31 KB
/
standardBaseImage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"builders": [{
"type": "amazon-ebs",
"region": "us-east-1",
"instance_type": "t2.small",
"ami_name": "Shogan-Server-2012-Build-{{isotime \"2006-01-02\"}}-{{uuid}}",
"iam_instance_profile": "Packer-S3-Access",
"user_data_file": "./ProvisionScripts/ConfigureWinRM.ps1",
"communicator": "winrm",
"winrm_username": "Administrator",
"winrm_use_ssl": true,
"winrm_insecure": true,
"source_ami_filter": {
"filters": {
"name": "Windows_Server-2012-R2_RTM-English-64Bit-Base-*"
},
"most_recent": true
}
}],
"provisioners": [
{
"type": "powershell",
"scripts": [
"./ProvisionScripts/EC2Config.ps1",
"./ProvisionScripts/BundleConfig.ps1",
"./ProvisionScripts/SetupBaseRequirementsAndTools.ps1",
"./ProvisionScripts/DownloadAndInstallS3Artifacts.ps1"
]
},
{
"type": "file",
"source": "./Tests",
"destination": "C:/Windows/Temp"
},
{
"type": "powershell",
"script": "./ProvisionScripts/RunPesterTests.ps1"
},
{
"type": "file",
"source": "PesterTestResults.xml",
"destination": "PesterTestResults.xml",
"direction": "download"
}
],
"post-processors": [
{
"type": "manifest"
}
]
}