{"action":"opened","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/59","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/59/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/59/events","html_url":"https://github.com/terraform-providers/terraform-provider-hcloud/issues/59","id":391489400,"node_id":"MDU6SXNzdWUzOTE0ODk0MDA=","number":59,"title":"Allow to directly boot in rescue mode","user":{"login":"c33s","id":649209,"node_id":"MDQ6VXNlcjY0OTIwOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/649209?v=4","gravatar_id":"","url":"https://api.github.com/users/c33s","html_url":"https://github.com/c33s","followers_url":"https://api.github.com/users/c33s/followers","following_url":"https://api.github.com/users/c33s/following{/other_user}","gists_url":"https://api.github.com/users/c33s/gists{/gist_id}","starred_url":"https://api.github.com/users/c33s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c33s/subscriptions","organizations_url":"https://api.github.com/users/c33s/orgs","repos_url":"https://api.github.com/users/c33s/repos","events_url":"https://api.github.com/users/c33s/events{/privacy}","received_events_url":"https://api.github.com/users/c33s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-16T17:47:31Z","updated_at":"2018-12-16T17:47:31Z","closed_at":null,"author_association":"NONE","body":"to help the developers to create their custom cloud images it would be nice to also be able to use terraform. for that it would be handy to be able to boot directly into rescue mode.\r\n\r\n```\r\nresource \"hcloud_server\" \"minimal_lvm_template\" {\r\n  name = \"${local.ii_hostname}\"\r\n  count = \"${var.count}\"\r\n  server_type = \"cx11\"\r\n  datacenter = \"fsn1-dc8\"\r\n  image = \"debian-9\"\r\n  keep_disk = false\r\n  rescue = \"linux64\"\r\n  ssh_keys  = [\"${data.hcloud_ssh_key.main.name}\"]\r\n  provisioner \"remote-exec\" {\r\n    inline = [\r\n      \"export TERM=dumb && ${local.ii_cmd} -n ${local.ii_hostname} -b grub -r no -i ${local.ii_image} -p ${local.ii_partitions} -v ${local.ii_logical_volumes}\",\r\n    ]\r\n    connection {\r\n      host = \"${self.ipv4_address}\"\r\n      agent = true\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nhaving this code leads to:\r\n```\r\n...\r\n  status:        \"\" => \"<computed>\"\r\nError: Error applying plan:\r\n1 error(s) occurred:\r\n* module.hcloud_template.hcloud_server.minimal_lvm_template: 1 error(s) occurred:\r\n* hcloud_server.minimal_lvm_template: error during placement (resource_unavailable)\r\n```"}}
{"actor":{"display_login":"c33s"}}