Something went wrong on our end
-
Nicolas KAROLAK authoredNicolas KAROLAK authored
example.json 3.00 KiB
{
"variables": {
"name": "mymediaserver",
"esx_host": "192.168.41.167",
"esx_datastore": "datastore2",
"esx_username": "root",
"esx_password": "topsecretpassword",
"network_ip": "10.0.0.51",
"network_mask": "24",
"network_gateway": "10.0.0.1",
"network_dns": "10.0.0.2,10.0.0.3",
"skyreach_system_key": "mytopscecretsystemkey",
"skyreach_activation_key": "mytopscecretactivationkey"
},
"builders": [
{
"type": "vmware-iso",
"vm_name": "ubicast-{{ user `name` }}",
"display_name": "ubicast-{{ user `name` }}",
"output_directory": "output",
"guest_os_type": "debian-64",
"iso_urls": [
"http://debian.univ-lorraine.fr/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso",
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso"
],
"iso_checksum": "08962831a26cad19ac5e1418a5f907a907d375c6d51be608281f5b733c248d7bd4008439af224f3d52df2e500f38e939e1bd46dd9371b2bdc7101b0efcb65634",
"iso_checksum_type": "sha512",
"remote_type": "esx5",
"remote_host": "{{ user `esx_host` }}",
"remote_datastore": "{{ user `esx_datastore` }}",
"remote_username": "{{ user `esx_username` }}",
"remote_password": "{{ user `esx_password` }}",
"format": "ova",
"tools_upload_flavor": "linux",
"vnc_disable_password": true,
"cpus": 2,
"memory": 2048,
"disk_type_id": "zeroedthick",
"skip_compaction": true,
"vmx_data": {
"ethernet0.networkName": "VM Network"
},
"boot_command": [
"<esc><wait>",
"/install.amd/vmlinuz ",
"initrd=/install.amd/initrd.gz ",
"hostname={{ .Name }} ",
"domain= ",
"auto=true ",
"url=https://git.ubicast.net/mediaserver/envsetup/-/raw/master/packer/files/preseed.cfg ",
"vga=788 noprompt quiet --<enter>"
],
"ssh_username": "root",
"ssh_password": "ubicast",
"ssh_timeout": "15m",
"headless": false,
"shutdown_command": "shutdown -P now"
}
],
"provisioners": [
{
"type": "shell",
"pause_before": "10s",
"scripts": [
"packer/scripts/root.sh",
"packer/scripts/upgrade.sh"
]
},
{
"type": "ansible",
"ansible_env_vars": [
"ANSIBLE_CONFIG=ansible.cfg",
"ANSIBLE_STDOUT_CALLBACK=debug"
],
"extra_arguments": [
"--extra-vars", "network_apply=true network_ip={{ user `network_ip` }} network_mask={{ user `network_mask` }} network_gateway={{ user `network_gateway` }} network_dns={{ user `network_dns` }}",
"--extra-vars", "skyreach_system_key={{ user `skyreach_system_key` }}",
"--extra-vars", "skyreach_activation_key={{ user `skyreach_activation_key` }}"
],
"playbook_file": "site.yml",
"groups": [
"monitor",
"postgres",
"manager",
"wowza",
"celerity",
"server",
"worker",
"import"
]
}
]
}