Skip to content

Commit

Permalink
M #-: move old appliance code to /appliances/legacy/ + tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sk4zuzu committed Dec 22, 2023
1 parent cf307c7 commit 864511a
Show file tree
Hide file tree
Showing 46 changed files with 31 additions and 25 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions packer/service_OneKE/OneKE.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -68,37 +68,37 @@ build {
}

provisioner "file" {
source = "appliances/scripts/context_service_net-90.sh"
source = "appliances/legacy/scripts/context_service_net-90.sh"
destination = "/etc/one-appliance/net-90"
}

provisioner "file" {
source = "appliances/scripts/context_service_net-99.sh"
source = "appliances/legacy/scripts/context_service_net-99.sh"
destination = "/etc/one-appliance/net-99"
}

provisioner "file" {
source = "appliances/service"
source = "appliances/legacy/service"
destination = "/etc/one-appliance/service"
}

provisioner "file" {
source = "appliances/lib/common.sh"
source = "appliances/legacy/lib/common.sh"
destination = "/etc/one-appliance/service.d/common.sh"
}

provisioner "file" {
source = "appliances/lib/functions.sh"
source = "appliances/legacy/lib/functions.sh"
destination = "/etc/one-appliance/service.d/functions.sh"
}

provisioner "file" {
source = "appliances/lib/context-helper.py"
source = "appliances/legacy/lib/context-helper.py"
destination = "/opt/one-appliance/bin/context-helper"
}

provisioner "file" {
source = "appliances/OneKE/"
source = "appliances/legacy/OneKE/"
destination = "/etc/one-appliance/service.d/"
}

Expand Down
10 changes: 9 additions & 1 deletion packer/service_vnf/10-update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env sh
service haveged stop

exec 1>&2
set -o errexit -o nounset -o pipefail
set -x

service haveged stop ||:

apk update
apk --no-cache add bash

sync
1 change: 0 additions & 1 deletion packer/service_vnf/variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ variable "version" {
type = string
default = ""
}

16 changes: 8 additions & 8 deletions packer/service_vnf/vnf.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -67,42 +67,42 @@ build {

provisioner "file" {
destination = "/etc/one-appliance/net-90"
source = "appliances/scripts/context_service_net-90.sh"
source = "appliances/legacy/scripts/context_service_net-90.sh"
}

provisioner "file" {
destination = "/etc/one-appliance/net-99"
source = "appliances/scripts/context_service_net-99.sh"
source = "appliances/legacy/scripts/context_service_net-99.sh"
}

provisioner "file" {
destination = "/etc/one-appliance/service"
source = "appliances/service"
source = "appliances/legacy/service"
}

provisioner "file" {
destination = "/etc/one-appliance/service.d/common.sh"
source = "appliances/lib/common.sh"
source = "appliances/legacy/lib/common.sh"
}

provisioner "file" {
destination = "/etc/one-appliance/service.d/functions.sh"
source = "appliances/lib/functions.sh"
source = "appliances/legacy/lib/functions.sh"
}

provisioner "file" {
destination = "/opt/one-appliance/bin/context-helper"
source = "appliances/lib/context-helper.py"
source = "appliances/legacy/lib/context-helper.py"
}

provisioner "file" {
destination = "/etc/one-appliance/service.d/appliance.sh"
source = "appliances/vnf.sh"
source = "appliances/legacy/vnf.sh"
}

provisioner "file" {
destination = "/opt/one-appliance/"
source = "appliances/lib/artifacts/vnf"
source = "appliances/legacy/lib/artifacts/vnf"
}

provisioner "shell" {
Expand Down
1 change: 0 additions & 1 deletion packer/service_wordpress/variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ variable "version" {
type = string
default = ""
}

14 changes: 7 additions & 7 deletions packer/service_wordpress/wordpress.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -65,37 +65,37 @@ build {
}

provisioner "file" {
source = "appliances/scripts/context_service_net-90.sh"
source = "appliances/legacy/scripts/context_service_net-90.sh"
destination = "/etc/one-appliance/net-90"
}

provisioner "file" {
source = "appliances/scripts/context_service_net-99.sh"
source = "appliances/legacy/scripts/context_service_net-99.sh"
destination = "/etc/one-appliance/net-99"
}

provisioner "file" {
source = "appliances/service"
source = "appliances/legacy/service"
destination = "/etc/one-appliance/service"
}

provisioner "file" {
source = "appliances/lib/common.sh"
source = "appliances/legacy/lib/common.sh"
destination = "/etc/one-appliance/service.d/common.sh"
}

provisioner "file" {
source = "appliances/lib/functions.sh"
source = "appliances/legacy/lib/functions.sh"
destination = "/etc/one-appliance/service.d/functions.sh"
}

provisioner "file" {
source = "appliances/lib/context-helper.py"
source = "appliances/legacy/lib/context-helper.py"
destination = "/opt/one-appliance/bin/context-helper"
}

provisioner "file" {
source = "appliances/wordpress.sh"
source = "appliances/legacy/wordpress.sh"
destination = "/etc/one-appliance/service.d/appliance.sh"
}

Expand Down

0 comments on commit 864511a

Please sign in to comment.