Skip to content

Commit

Permalink
feat: make prompt reconcile opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Feb 2, 2024
1 parent e0b87e6 commit 2578813
Show file tree
Hide file tree
Showing 18 changed files with 132 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blincus
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ write_defaults() {
config_set "default_home-mounts" "none"
config_set "default_vm_image" "images:ubuntu/mantic/cloud"
config_set "default_vm_profiles" "idmap,vmkeys"
config_set "prompt_integration" "false"

# ubuntu defaults
config_set "ubuntu.image" "images:ubuntu/jammy/cloud"
Expand Down Expand Up @@ -2675,7 +2676,10 @@ initialize() {

#personalize
profiles
prompt_reconcile
doprompt=$(config_get "prompt_integration" "false")
if [ ! $doprompt == "false" ]; then
prompt_reconcile
fi

}

Expand Down
9 changes: 9 additions & 0 deletions recipes/0-jammybase.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}

source "incus" "jammybase" {
image = "images:ubuntu/jammy"
output_image = "jammybase"
Expand Down
9 changes: 9 additions & 0 deletions recipes/1-jammydev.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}

source "incus" "jammydev" {
image = "jammybase"
output_image = "jammydev"
Expand Down
8 changes: 8 additions & 0 deletions recipes/2-jammydevx.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "jammydevx" {
image = "jammydev"
output_image = "jammydevx"
Expand Down
8 changes: 8 additions & 0 deletions recipes/bullseye.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "bullseye" {
image = "images:debian/bullseye"
output_image = "debian-bullseye"
Expand Down
8 changes: 8 additions & 0 deletions recipes/debian.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "bookworm" {
image = "images:debian/bookworm"
output_image = "debian-bookworm"
Expand Down
8 changes: 8 additions & 0 deletions recipes/jammy.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "jammy" {
image = "images:ubuntu/jammy"
output_image = "ubuntu-jammy"
Expand Down
8 changes: 8 additions & 0 deletions recipes/jammyvm.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "jammy" {
image = "images:ubuntu/jammy"
output_image = "jammyvm"
Expand Down
8 changes: 8 additions & 0 deletions recipes/jammyx.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "jammyx" {
image = "images:ubuntu/jammy"
output_image = "ubuntu-jammyx"
Expand Down
8 changes: 8 additions & 0 deletions recipes/lunarvm.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "lunar" {
image = "images:ubuntu/lunar"
output_image = "lunarvm"
Expand Down
8 changes: 8 additions & 0 deletions recipes/mantic.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "mantic" {
image = "images:ubuntu/mantic"
output_image = "ubuntu-mantic"
Expand Down
8 changes: 8 additions & 0 deletions recipes/manticvm.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "mantic" {
image = "images:ubuntu/mantic"
output_image = "manticvm"
Expand Down
8 changes: 8 additions & 0 deletions recipes/manticvmd.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "mantic" {
image = "images:ubuntu/mantic/desktop"
output_image = "manticvmd"
Expand Down
8 changes: 8 additions & 0 deletions recipes/manticx.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "manticx" {
image = "images:ubuntu/mantic"
output_image = "ubuntu-manticx"
Expand Down
8 changes: 8 additions & 0 deletions recipes/nix.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "nix" {
image = "images:ubuntu/jammy"
output_image = "ubuntu-nix"
Expand Down
8 changes: 8 additions & 0 deletions recipes/ubuntults.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
packer {
required_plugins {
incus = {
version = ">= 1.0.4"
source = "github.com/bketelsen/incus"
}
}
}
source "incus" "focal" {
image = "images:ubuntu/focal"
output_image = "focalp"
Expand Down
5 changes: 4 additions & 1 deletion src/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ fi

#personalize
profiles
prompt_reconcile
doprompt=$(config_get "prompt_integration" "false")
if [ ! $doprompt == "false" ]; then
prompt_reconcile
fi
1 change: 1 addition & 0 deletions src/lib/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ write_defaults() {
config_set "default_home-mounts" "none"
config_set "default_vm_image" "images:ubuntu/mantic/cloud"
config_set "default_vm_profiles" "idmap,vmkeys"
config_set "prompt_integration" "false"

# ubuntu defaults
config_set "ubuntu.image" "images:ubuntu/jammy/cloud"
Expand Down

0 comments on commit 2578813

Please sign in to comment.