-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentreon-local.json
111 lines (106 loc) · 3.2 KB
/
centreon-local.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"variables": {
"iso_url": "",
"iso_checksum": "",
"iso_checksum_type": "sha256",
"redhat_release": "",
"redhat_platform": "x86_64",
"artifact_description": "",
"artifact_version": "",
"disk_size": "63488"
},
"builders": [
{
"name": "centreon-{{user `centreon_release`}}-virtualbox",
"type": "virtualbox-iso",
"export_opts":
[
"--manifest",
"--vsys", "0",
"--description", "{{user `artifact_description`}}",
"--version", "{{user `artifact_version`}}"
],
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
],
"format": "ova",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"guest_os_type": "RedHat_64",
"hard_drive_interface": "scsi",
"disk_size": "793600",
"floppy_files": [
"./boot/ks-{{user `artifact_version`}}.cfg"
],
"headless": false,
"guest_additions_mode": "disable",
"boot_command": "<tab> inst.ks=hd:fd0:/ks-{{user `artifact_version`}}.cfg <enter><wait>",
"boot_wait": "5s",
"ssh_username": "root",
"ssh_password": "centreon",
"ssh_wait_timeout": "15m",
"shutdown_command": "shutdown -P now"
},
{
"name": "centreon-{{user `centreon_release`}}-vmware",
"type": "vmware-iso",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"guest_os_type": "RedHat_64",
"disk_size": "793600",
"floppy_files": [
"./boot/ks-{{user `artifact_version`}}.cfg"
],
"boot_command": "<tab> inst.ks=hd:fd0:/ks-{{user `artifact_version`}}.cfg <enter><wait>",
"boot_wait": "5s",
"ssh_username": "root",
"ssh_password": "centreon",
"ssh_wait_timeout": "15m",
"shutdown_command": "shutdown -P now"
},
{
"name": "centreon-{{user `centreon_release`}}-qemu",
"type": "qemu",
"format": "qcow2",
"accelerator": "kvm",
"qemuargs": [
[ "-m", "1024M" ],
[ "-display", "gtk" ]
],
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"net_device": "virtio-net",
"disk_interface": "virtio-scsi",
"disk_size": "793600",
"floppy_files": [
"./boot/ks-{{user `artifact_version`}}.cfg"
],
"boot_command": "<tab> inst.ks=hd:fd0:/ks-{{user `artifact_version`}}.cfg <enter><wait>",
"boot_wait": "5s",
"ssh_username": "root",
"ssh_password": "centreon",
"ssh_wait_timeout": "15m",
"shutdown_command": "shutdown -P now"
}
],
"provisioners": [
{
"type": "file",
"source": "./scripts",
"destination": "/tmp/"
},
{
"type": "shell",
"inline": [
"bash -ex /tmp/scripts/install.sh",
"bash -ex /tmp/scripts/centreon-{{user `artifact_version`}}.sh",
"bash -ex /tmp/scripts/cleanup.sh",
"rm -rf /tmp/scripts"
]
}
]
}