Last active
February 8, 2021 23:38
-
-
Save sammcgeown/a58436c144cb8f52c816609e2458f3c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new Blueprint | |
resource "vra_blueprint" "this" { | |
name = "Ubuntu Blueprint" | |
description = "Created by vRA terraform provider" | |
project_id = vra_project.this.id | |
content = <<-EOT | |
formatVersion: 1 | |
inputs: | |
Flavor: | |
type: string | |
title: Flavor | |
enum: | |
- x-small | |
- large | |
- medium | |
- small | |
Image: | |
type: string | |
title: Flavor | |
enum: | |
- ubuntu-xenial | |
- ubuntu-bionic | |
resources: | |
Web_Server: | |
type: Cloud.Machine | |
properties: | |
image: '$${input.Image}' | |
flavor: '$${input.Flavor}' | |
cloudConfig: | | |
users: | |
- name: sam | |
ssh-authorized-keys: | |
- 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAJhmOeILoSyY2ke8oQu1pJ8td12ReCFbc5ZQflXcxYoTcUp00CLKrvdQzrOnOJAUGR0QOjp/2LxvOgq0lR0g3qSOX9Cg+wTxpOKP/VQRw9+SWv625bbAk3R6VSzIG83XJ24MPwmsa9wPgaU4cCc9SmXzKJEQGtAd9QNyO2c5fxEynZUsZbbQiNtZbliA0lyU3dAnPOofdhJ6I6aV2YFvp4juy9NdaNuR7HUTwyUfMOvilcTzdsJ/dJrc9Ypl427vgZk4opmlikVBLlWvJdBLt8PgPpl4GWgkg+WBqPUu33ExB6MfWNvXUjC3u1D9sokJwQw4NBXvvQHg4Dpf+IP75' | |
sudo: | |
- 'ALL=(ALL) NOPASSWD:ALL' | |
groups: sudo | |
shell: /bin/bash | |
constraints: | |
- tag: 'cloud:aws' | |
EOT | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment