forked from xenserver/packer-plugin-xenserver
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcentos-7acs.json
executable file
·88 lines (84 loc) · 2.58 KB
/
centos-7acs.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"builders": [
{
"type": "xenserver-iso",
"remote_host": "10.204.137.60",
"remote_username": "root",
"remote_password": "{{user `xenserver_password`}}",
"boot_command": [
"<tab><end> ks=http://10.204.137.80/ks/centos7-ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"http_directory": "/var/www/html/packer",
"iso_url": "{{user `mirror`}}/7/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso",
"iso_name": "CentOS-7.0-1406-x86_64-Minimal.iso",
"iso_sr": "CIFS ISO library",
"script_url": "http://10.204.137.80/packer/xenserver/",
"output_directory": "/var/www/html/vhd",
"format": "vhd",
"shutdown_command": "",
"ssh_username": "root",
"ssh_password": "Password1",
"ssh_wait_timeout": "10000s",
"sr_name": "NFS Packer",
"vm_name": "packer-centos-7-x86_64-acs-minimal-template",
"vm_memory": "8192",
"vm_vcpus": 1,
"nfs_mount": "10.204.136.41:/vol/exports/packer"
}
],
"variables": {
"mirror": "http://www.mirrorservice.org/sites/mirror.centos.org",
"xenserver_password": "{{env `XS_PASS`}}"
},
"provisioners": [
{
"type": "file",
"source": "/var/www/html/packer/acs/cloud-set-guest-password.service",
"destination": "/etc/systemd/system/cloud-set-client-password.service"
},
{
"type": "file",
"source": "/var/www/html/packer/acs/cloud-set-guest-password.sh",
"destination": "/usr/local/bin/cloud-set-guest-password.sh"
},
{
"type": "file",
"source": "/var/www/html/packer/acs/centos7-reset.sh",
"destination": "/tmp/centos7-reset.sh"
},
{
"type": "shell",
"inline": ["chmod +x /usr/local/bin/cloud-set-guest-password.sh"]
},
{
"type": "shell",
"inline": ["chmod +x /tmp/centos7-reset.sh"]
},
{
"type": "shell",
"inline": ["/tmp/centos7-reset.sh"]
}
],
"post-processors": [
{
"type": "cloudstack-xenserver",
"only": ["xenserver-iso"],
"apiurl": "http://10.204.146.18:8080/client/api",
"apikey": "QNgS1favp6l2XfAwanPMSHJBMqZqHtpz1ncSEt3HglPQtAC8H37ScvPoGmtKx2NILCvIf-TK_FobmTMWHsKF3w",
"secret": "zkXCTLihWzUEFsYgldeavldZvUZF0WO5J1l54JSVNK7qk5eb-G_0OtVL28YIw0sq9_NYvTj8RzEwElNy0j6bgQ",
"display_text": "A CentOS7 template with tools",
"template_name": "CentOS7",
"os_type": "Other CentOS (64-bit)",
"download_url": "http://10.204.137.80/vhd/packer-centos-7-x86_64-acs-minimal-template.vhd",
"zone": "Boston Test",
"account": "",
"domain": "",
"password_enabled": "true",
"ssh_enabled": "true",
"has_tools": "true",
"keep_input_artifact": true
}
]
}