Packer
HashiCups
@hashicorp
The HashiCups plugin is a reference plugin for learning how to use HashiCorp Packer.
- Official
Updated 2 years ago
- GitHub(opens in new tab)
Receipt
Type: hashicups-receipt
The receipt post-processor is used to print the receipt of your order.
Optional
filename
(string) - The receipt file name. Should not include the extension. Defaults toreceipt
.format
(string) - The receipt format. Should bepdf
ortxt
. Defaults topdf
.
Example Usage
source "hashicups-order" "my-custom-order" {
username = "education"
password = "test123"
item {
coffee {
id = 1
name = "My Custom Packer Spiced Latter"
ingredient {
id = 1
quantity = 50
}
}
}
}
build {
sources = ["sources.hashicups-order.my-custom-order"]
post-processor "hashicups-receipt" {
format = "pdf"
}
}