Skip to content

Commit

Permalink
feat: restore Orka Packer variables and plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Aug 31, 2024
1 parent 17fcb3f commit ba1ab0b
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 49 deletions.
12 changes: 0 additions & 12 deletions orka/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ You need to load the environment variables:

## Validate the template

You can validate all the templates by running the following command:

```shell
packer validate -var "orka_endpoint=$ORKA_ENDPOINT" -var "orka_auth_token=$ORKA_AUTH_TOKEN" -var "ssh_default_username=$SSH_DEFAULT_USERNAME" -var "ssh_default_password=$SSH_DEFAULT_PASSWORD" -var "ssh_test_password=$SSH_TEST_PASSWORD" -var "ssh_test_puclic_key=$SSH_TEST_PUBLIC_KEY" .
```

You can validate a specific template by running the following command:

```shell
Expand All @@ -60,12 +54,6 @@ packer validate -var "orka_endpoint=$ORKA_ENDPOINT" -var "orka_auth_token=$ORKA_

## Build the image

You can build all the templates by running the following command:

```shell
packer build -var "orka_endpoint=$ORKA_ENDPOINT" -var "orka_auth_token=$ORKA_AUTH_TOKEN" -var "ssh_default_username=$SSH_DEFAULT_USERNAME" -var "ssh_default_password=$SSH_DEFAULT_PASSWORD" -var "ssh_test_password=$SSH_TEST_PASSWORD" -var "ssh_test_puclic_key=$SSH_TEST_PUBLIC_KEY" .
```

You can build a specific template by running the following command:

```shell
Expand Down
39 changes: 39 additions & 0 deletions orka/templates/macos-13-arm-test.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
variable "orka_endpoint" {
type = string
default = ""
}

variable "orka_auth_token" {
type = string
default = ""
}

variable "ssh_default_username" {
type = string
default = ""
}

variable "ssh_default_password" {
type = string
default = ""
}

variable "ssh_test_public_key" {
type = string
default = ""
}

variable "ssh_test_password" {
type = string
default = ""
}

packer {
required_plugins {
macstadium-orka = {
version = "~> 3.0"
source = "github.com/macstadium/macstadium-orka"
}
}
}

source "macstadium-orka" "macos13-arm-test-image" {
source_image = "macos13-arm-base.orkasi"
image_name = "macos13-arm-test-latest.orkasi"
Expand Down
39 changes: 39 additions & 0 deletions orka/templates/macos-13-intel-test.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
variable "orka_endpoint" {
type = string
default = ""
}

variable "orka_auth_token" {
type = string
default = ""
}

variable "ssh_default_username" {
type = string
default = ""
}

variable "ssh_default_password" {
type = string
default = ""
}

variable "ssh_test_public_key" {
type = string
default = ""
}

variable "ssh_test_password" {
type = string
default = ""
}

packer {
required_plugins {
macstadium-orka = {
version = "~> 3.0"
source = "github.com/macstadium/macstadium-orka"
}
}
}

source "macstadium-orka" "macos13-intel-test-image" {
source_image = "macos13-intel-base.img"
image_name = "macos13-intel-test-latest.img"
Expand Down
8 changes: 0 additions & 8 deletions orka/templates/plugins.pkr.hcl

This file was deleted.

29 changes: 0 additions & 29 deletions orka/templates/variables.pkr.hcl

This file was deleted.

0 comments on commit ba1ab0b

Please sign in to comment.