Permalink
Browse files

JSON prettify

  • Loading branch information...
ligurio authored and Sergey Bronnikov committed Jan 15, 2017
1 parent cacb022 commit 3f5950c19144b91c10837a5370b49aed50ce055d
Showing with 72 additions and 57 deletions.
  1. +72 −57 packer-templates/openbsd-snapshot.json
@@ -1,6 +1,6 @@
{
"provisioners": [
{
{
"environment_vars": [
"MIRROR={{user `mirror_server`}}"
],
@@ -9,7 +9,7 @@
"postinstall.sh"
],
"type": "shell"
}
}
],
"builders": [
{
@@ -21,15 +21,15 @@
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq/Ztlw4AR8uZ3/QIh243Ogk8eHJsm/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB/zmHVdT/JLVq+HQDneF0QJL0au7Dm/kcYJc2E6H1bDvQUcNX13F6ihHiv0M/L4z/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq\/Ztlw4AR8uZ3\/QIh243Ogk8eHJsm\/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI\/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB\/zmHVdT\/JLVq+HQDneF0QJL0au7Dm\/kcYJc2E6H1bDvQUcNX13F6ihHiv0M\/L4z\/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ\/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7\/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Allow root ssh login = yes<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe\/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 1014000,
@@ -39,16 +39,26 @@
"iso_checksum_type": "sha256",
"iso_url": "{{user `iso_url`}}",
"output_directory": "builds",
"shutdown_command": "/sbin/halt -p",
"shutdown_command": "\/sbin\/halt -p",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"headless": "false",
"vm_name": "openbsd",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "384" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
[
"modifyvm",
"{{.Name}}",
"--memory",
"384"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
},
{
@@ -60,15 +70,15 @@
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq/Ztlw4AR8uZ3/QIh243Ogk8eHJsm/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB/zmHVdT/JLVq+HQDneF0QJL0au7Dm/kcYJc2E6H1bDvQUcNX13F6ihHiv0M/L4z/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq\/Ztlw4AR8uZ3\/QIh243Ogk8eHJsm\/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI\/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB\/zmHVdT\/JLVq+HQDneF0QJL0au7Dm\/kcYJc2E6H1bDvQUcNX13F6ihHiv0M\/L4z\/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ\/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7\/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Allow root ssh login = yes<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe\/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 101400,
@@ -81,7 +91,7 @@
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -p",
"shutdown_command": "\/sbin\/halt -p",
"vm_name": "openbsd",
"headless": "false",
"vmx_data": {
@@ -99,15 +109,15 @@
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq/Ztlw4AR8uZ3/QIh243Ogk8eHJsm/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB/zmHVdT/JLVq+HQDneF0QJL0au7Dm/kcYJc2E6H1bDvQUcNX13F6ihHiv0M/L4z/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq\/Ztlw4AR8uZ3\/QIh243Ogk8eHJsm\/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI\/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB\/zmHVdT\/JLVq+HQDneF0QJL0au7Dm\/kcYJc2E6H1bDvQUcNX13F6ihHiv0M\/L4z\/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ\/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7\/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Allow root ssh login = yes<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe\/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 101400,
@@ -120,7 +130,7 @@
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -p",
"shutdown_command": "\/sbin\/halt -p",
"headless": "false",
"vm_name": "openbsd",
"prlctl": [
@@ -147,15 +157,15 @@
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq/Ztlw4AR8uZ3/QIh243Ogk8eHJsm/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB/zmHVdT/JLVq+HQDneF0QJL0au7Dm/kcYJc2E6H1bDvQUcNX13F6ihHiv0M/L4z/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq\/Ztlw4AR8uZ3\/QIh243Ogk8eHJsm\/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI\/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB\/zmHVdT\/JLVq+HQDneF0QJL0au7Dm\/kcYJc2E6H1bDvQUcNX13F6ihHiv0M\/L4z\/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ\/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7\/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Allow root ssh login = yes<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe\/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 101400,
@@ -169,11 +179,14 @@
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -p",
"shutdown_command": "\/sbin\/halt -p",
"headless": "false",
"vm_name": "openbsd",
"qemuargs": [
[ "-m", "384M" ]
[
"-m",
"384M"
]
]
},
{
@@ -185,15 +198,15 @@
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq/Ztlw4AR8uZ3/QIh243Ogk8eHJsm/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB/zmHVdT/JLVq+HQDneF0QJL0au7Dm/kcYJc2E6H1bDvQUcNX13F6ihHiv0M/L4z/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Public ssh key for user = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhtwivjb5jHkvezi4+TQ5pXxq\/Ztlw4AR8uZ3\/QIh243Ogk8eHJsm\/71aymG74H7cUArTJKmDo2w+MkBT3qJnCZh3nfvI\/53DMQKnNOjL5n3LbebyPYDJhHSY7vQLB\/zmHVdT\/JLVq+HQDneF0QJL0au7Dm\/kcYJc2E6H1bDvQUcNX13F6ihHiv0M\/L4z\/E5rDqa7rlMa9K07cU+eaRrLiwOoAsbxGs8INpHI5hAwQ\/CXKnaaKU03Lnv+2u5w9M96zkHhXkDiNvihInfObNeVwCo1sbZKuniiTXseZzV7\/ureKqoHgKWrn5VxcjSgRRGdkDNctr8l6lcUHrJxeSfBt<enter>",
"Allow root ssh login = yes<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Location of sets = http<enter>",
"What timezone are you in = Europe\/Moscow<enter>",
"HTTP Server = mirror.yandex.ru<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 101400,
@@ -207,20 +220,20 @@
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -p",
"shutdown_command": "\/sbin\/halt -p",
"vm_name": "openbsd",
"api_url": "https://api.exoscale.ch/compute",
"api_url": "https:\/\/api.exoscale.ch\/compute",
"api_key": "YOUR_API_KEY",
"secret_key": "YOUR_SECRET_KEY",
"disk_offering": "Small - 20GB",
"cidr_list": ["0.0.0.0/0"],
"cidr_list": [
"0.0.0.0\/0"
],
"hypervisor": "KVM",
"network": "management",
"service_offering": "small",
"source_iso": "CentOS-7.0-1406-x86_64-Minimal",
"zone": "NL1",
"template_name": "OpenBSD-KVM-Packer",
"template_display_text": "OpenBSD-x86_64 KVM Packer",
"template_featured": true,
@@ -230,29 +243,31 @@
}
],
"post-processors": [
{
"type": "vagrant",
"output": "builds/openbsd-{{.Provider}}.box"
},
{
"type": "vagrant-cloud",
"box_tag": "sergeyb/openbsd",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}"
},
{
"type": "checksum",
"checksum_types": [ "sha256" ],
"output": "SHA256-{{.Provider}}"
}
{
"type": "vagrant",
"output": "builds\/openbsd-{{.Provider}}.box"
},
{
"type": "vagrant-cloud",
"box_tag": "sergeyb\/openbsd",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}"
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"output": "SHA256-{{.Provider}}"
}
],
"variables": {
"iso_checksum": "fe1006fb002cb14e561cddf910ba57e0f785c47ff6b04818b0767373b3145e6e",
"iso_url": "https://mirror.yandex.ru/openbsd/6.0/amd64/cd60.iso",
"mirror_server": "https://mirror.yandex.ru/pub/OpenBSD/",
"iso_url": "https:\/\/mirror.yandex.ru\/openbsd\/6.0\/amd64\/cd60.iso",
"mirror_server": "https:\/\/mirror.yandex.ru\/pub\/OpenBSD\/",
"name": "openbsd",
"version": "1.0.0",
"atlas_box_name": "sergeyb/openbsd-snapshot",
"atlas_box_name": "sergeyb\/openbsd-snapshot",
"atlas_box_version": "1.0.0",
"cloud_token": "exWPcN715Y0KpQ.atlasv1.48Z7zbxzHDnWMEjv0n0ZNbv2zBLLfRih7SMzkAhzoKuY8RQpTgPkEF50uAVpVcl76kw"
}

0 comments on commit 3f5950c

Please sign in to comment.