Skip to content

Instantly share code, notes, and snippets.

@teq0
Created June 11, 2016 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teq0/0a4c6eb1f378e12db52cbfca2ce9b6d6 to your computer and use it in GitHub Desktop.
Save teq0/0a4c6eb1f378e12db52cbfca2ce9b6d6 to your computer and use it in GitHub Desktop.
coreos.json sample
{
"variables": {
"coreos-release": "stable",
"cloud-config": "cloud-config.yml",
"iso-checksum": "",
"iso-checksum-type": "none"
},
"builders": [
{
"type": "parallels-iso",
"guest_os_type": "linux-2.6",
"iso_url": "http://{{ user `coreos-release` }}.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso",
"iso_checksum": "{{ user `iso-checksum` }}",
"iso_checksum_type": "{{ user `iso-checksum-type` }}",
"parallels_tools_mode": "disable",
"http_directory": ".",
"ssh_username": "core",
"ssh_private_key_file": "keys/vagrant",
"boot_wait": "15s",
"boot_command": [
"wget -O ~/.ssh/authorized_keys http://{{ .HTTPIP }}:{{ .HTTPPort }}/keys/vagrant.pub",
"<enter>",
"chmod 0600 ~/.ssh/authorized_keys",
"<enter>",
"sudo systemctl start sshd.service",
"<enter>"
],
"shutdown_command": "sudo shutdown now",
"prlctl" : [
[ "set", "{{ .Name }}", "--memsize", "1024" ],
[ "set", "{{ .Name }}", "--cpus", "2" ]
],
"output_directory": "output/coreos",
"vm_name": "coreos-{{ user `coreos-release` }}"
}
],
"provisioners": [
{
"type": "file",
"source": "{{ user `cloud-config` }}",
"destination": "/tmp/cloud-config.yml"
},
{
"type": "shell",
"inline": [
"sudo coreos-install -C {{ user `coreos-release` }} -c /tmp/cloud-config.yml -d /dev/sda"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment