Browse Source

Add type-specific deployment scripts

This change restructures the deployment script directory to support
type-specific deployment scripts. As sub-clusters are added, those
scripts will only be relevant to the multi-tenant type. The distinction
between which scripts should be used for each type will prevent
unexpected deployment errors.

Co-authored-by: Drew Walters <andrew.walters@att.com>
Change-Id: Ic14d4536bc9e593ab81c94b5c1dcec063a93ed18
changes/00/792000/17
Ian Howell 4 weeks ago
committed by Sirajudeen
parent
commit
12fc147cea
58 changed files with 81 additions and 32 deletions
  1. +1
    -1
      playbooks/airship-treasuremap-build-gate.yaml
  2. +13
    -13
      playbooks/airship-treasuremap-gate-runner.yaml
  3. +1
    -0
      tools/deployment/airship-core/01_install_essentials.sh
  4. +1
    -0
      tools/deployment/airship-core/02_install_calicoctl.sh
  5. +1
    -0
      tools/deployment/airship-core/21_systemwide_executable.sh
  6. +1
    -0
      tools/deployment/airship-core/22_test_configs.sh
  7. +1
    -0
      tools/deployment/airship-core/23_generate_secrets.sh
  8. +1
    -0
      tools/deployment/airship-core/23_pull_documents.sh
  9. +1
    -0
      tools/deployment/airship-core/24_build_images.sh
  10. +1
    -0
      tools/deployment/airship-core/25_deploy_ephemeral_node.sh
  11. +1
    -0
      tools/deployment/airship-core/26_deploy_capi_ephemeral_node.sh
  12. +1
    -0
      tools/deployment/airship-core/30_deploy_controlplane.sh
  13. +1
    -0
      tools/deployment/airship-core/31_deploy_initinfra_target_node.sh
  14. +1
    -0
      tools/deployment/airship-core/32_cluster_init_target_node.sh
  15. +1
    -0
      tools/deployment/airship-core/33_cluster_move_target_node.sh
  16. +1
    -0
      tools/deployment/airship-core/34_deploy_controlplane_target.sh
  17. +1
    -0
      tools/deployment/airship-core/35_deploy_worker_node.sh
  18. +1
    -0
      tools/deployment/airship-core/36_deploy_workload.sh
  19. +1
    -0
      tools/deployment/airship-core/37_verify_hwcc_profiles.sh
  20. +0
    -1
      tools/deployment/airship-core/40_deploy_lma.sh
  21. +1
    -0
      tools/deployment/airship-core/40_deploy_network_policies.sh
  22. +0
    -0
      tools/deployment/common/01_install_essentials.sh
  23. +0
    -0
      tools/deployment/common/02_install_calicoctl.sh
  24. +0
    -0
      tools/deployment/common/21_systemwide_executable.sh
  25. +0
    -0
      tools/deployment/common/22_test_configs.sh
  26. +0
    -0
      tools/deployment/common/23_generate_secrets.sh
  27. +0
    -0
      tools/deployment/common/23_pull_documents.sh
  28. +0
    -0
      tools/deployment/common/24_build_images.sh
  29. +0
    -0
      tools/deployment/common/25_deploy_ephemeral_node.sh
  30. +0
    -0
      tools/deployment/common/26_deploy_capi_ephemeral_node.sh
  31. +0
    -0
      tools/deployment/common/30_deploy_controlplane.sh
  32. +0
    -0
      tools/deployment/common/31_deploy_initinfra_target_node.sh
  33. +0
    -0
      tools/deployment/common/32_cluster_init_target_node.sh
  34. +0
    -0
      tools/deployment/common/33_cluster_move_target_node.sh
  35. +0
    -0
      tools/deployment/common/34_deploy_controlplane_target.sh
  36. +0
    -0
      tools/deployment/common/35_deploy_worker_node.sh
  37. +0
    -0
      tools/deployment/common/36_deploy_workload.sh
  38. +0
    -0
      tools/deployment/common/37_verify_hwcc_profiles.sh
  39. +0
    -0
      tools/deployment/common/40_deploy_network_policies.sh
  40. +1
    -0
      tools/deployment/multi-tenant/01_install_essentials.sh
  41. +1
    -0
      tools/deployment/multi-tenant/02_install_calicoctl.sh
  42. +1
    -0
      tools/deployment/multi-tenant/21_systemwide_executable.sh
  43. +1
    -0
      tools/deployment/multi-tenant/22_test_configs.sh
  44. +1
    -0
      tools/deployment/multi-tenant/23_generate_secrets.sh
  45. +1
    -0
      tools/deployment/multi-tenant/23_pull_documents.sh
  46. +1
    -0
      tools/deployment/multi-tenant/24_build_images.sh
  47. +1
    -0
      tools/deployment/multi-tenant/25_deploy_ephemeral_node.sh
  48. +1
    -0
      tools/deployment/multi-tenant/26_deploy_capi_ephemeral_node.sh
  49. +1
    -0
      tools/deployment/multi-tenant/30_deploy_controlplane.sh
  50. +1
    -0
      tools/deployment/multi-tenant/31_deploy_initinfra_target_node.sh
  51. +1
    -0
      tools/deployment/multi-tenant/32_cluster_init_target_node.sh
  52. +1
    -0
      tools/deployment/multi-tenant/33_cluster_move_target_node.sh
  53. +1
    -0
      tools/deployment/multi-tenant/34_deploy_controlplane_target.sh
  54. +1
    -0
      tools/deployment/multi-tenant/35_deploy_worker_node.sh
  55. +1
    -0
      tools/deployment/multi-tenant/36_deploy_workload.sh
  56. +1
    -0
      tools/deployment/multi-tenant/37_verify_hwcc_profiles.sh
  57. +1
    -0
      tools/deployment/multi-tenant/40_deploy_network_policies.sh
  58. +31
    -17
      zuul.d/jobs.yaml

+ 1
- 1
playbooks/airship-treasuremap-build-gate.yaml View File

@ -39,7 +39,7 @@
- name: install airshipctl
shell: |
cd {{ local_src_dir | default(zuul.project.src_dir) }}
./tools/deployment/21_systemwide_executable.sh
./tools/deployment/common/21_systemwide_executable.sh
- name: make sure serve directory exists
file:
dest: "{{ serve_dir }}"


+ 13
- 13
playbooks/airship-treasuremap-gate-runner.yaml View File

@ -20,19 +20,19 @@
- name: "set default gate scripts"
set_fact:
gate_scripts_default:
- ./tools/deployment/01_install_essentials.sh
- ./tools/deployment/22_test_configs.sh
- ./tools/deployment/23_pull_documents.sh
- ./tools/deployment/23_generate_secrets.sh
- ./tools/deployment/24_build_images.sh
- ./tools/deployment/25_deploy_ephemeral_node.sh
- ./tools/deployment/26_deploy_capi_ephemeral_node.sh
- ./tools/deployment/30_deploy_controlplane.sh
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
- ./tools/deployment/33_cluster_move_target_node.sh
- ./tools/deployment/35_deploy_worker_node.sh
- ./tools/deployment/36_deploy_workload.sh
- ./tools/deployment/airship-core/01_install_essentials.sh
- ./tools/deployment/airship-core/22_test_configs.sh
- ./tools/deployment/airship-core/23_pull_documents.sh
- ./tools/deployment/airship-core/23_generate_secrets.sh
- ./tools/deployment/airship-core/24_build_images.sh
- ./tools/deployment/airship-core/25_deploy_ephemeral_node.sh
- ./tools/deployment/airship-core/26_deploy_capi_ephemeral_node.sh
- ./tools/deployment/airship-core/30_deploy_controlplane.sh
- ./tools/deployment/airship-core/31_deploy_initinfra_target_node.sh
- ./tools/deployment/airship-core/32_cluster_init_target_node.sh
- ./tools/deployment/airship-core/33_cluster_move_target_node.sh
- ./tools/deployment/airship-core/35_deploy_worker_node.sh
- ./tools/deployment/airship-core/36_deploy_workload.sh
- name: "Run gate scripts"
include_role:


+ 1
- 0
tools/deployment/airship-core/01_install_essentials.sh View File

@ -0,0 +1 @@
../common/01_install_essentials.sh

+ 1
- 0
tools/deployment/airship-core/02_install_calicoctl.sh View File

@ -0,0 +1 @@
../common/02_install_calicoctl.sh

+ 1
- 0
tools/deployment/airship-core/21_systemwide_executable.sh View File

@ -0,0 +1 @@
../common/21_systemwide_executable.sh

+ 1
- 0
tools/deployment/airship-core/22_test_configs.sh View File

@ -0,0 +1 @@
../common/22_test_configs.sh

+ 1
- 0
tools/deployment/airship-core/23_generate_secrets.sh View File

@ -0,0 +1 @@
../common/23_generate_secrets.sh

+ 1
- 0
tools/deployment/airship-core/23_pull_documents.sh View File

@ -0,0 +1 @@
../common/23_pull_documents.sh

+ 1
- 0
tools/deployment/airship-core/24_build_images.sh View File

@ -0,0 +1 @@
../common/24_build_images.sh

+ 1
- 0
tools/deployment/airship-core/25_deploy_ephemeral_node.sh View File

@ -0,0 +1 @@
../common/25_deploy_ephemeral_node.sh

+ 1
- 0
tools/deployment/airship-core/26_deploy_capi_ephemeral_node.sh View File

@ -0,0 +1 @@
../common/26_deploy_capi_ephemeral_node.sh

+ 1
- 0
tools/deployment/airship-core/30_deploy_controlplane.sh View File

@ -0,0 +1 @@
../common/30_deploy_controlplane.sh

+ 1
- 0
tools/deployment/airship-core/31_deploy_initinfra_target_node.sh View File

@ -0,0 +1 @@
../common/31_deploy_initinfra_target_node.sh

+ 1
- 0
tools/deployment/airship-core/32_cluster_init_target_node.sh View File

@ -0,0 +1 @@
../common/32_cluster_init_target_node.sh

+ 1
- 0
tools/deployment/airship-core/33_cluster_move_target_node.sh View File

@ -0,0 +1 @@
../common/33_cluster_move_target_node.sh

+ 1
- 0
tools/deployment/airship-core/34_deploy_controlplane_target.sh View File

@ -0,0 +1 @@
../common/34_deploy_controlplane_target.sh

+ 1
- 0
tools/deployment/airship-core/35_deploy_worker_node.sh View File

@ -0,0 +1 @@
../common/35_deploy_worker_node.sh

+ 1
- 0
tools/deployment/airship-core/36_deploy_workload.sh View File

@ -0,0 +1 @@
../common/36_deploy_workload.sh

+ 1
- 0
tools/deployment/airship-core/37_verify_hwcc_profiles.sh View File

@ -0,0 +1 @@
../common/37_verify_hwcc_profiles.sh

tools/deployment/40_deploy_lma.sh → tools/deployment/airship-core/40_deploy_lma.sh View File


+ 1
- 0
tools/deployment/airship-core/40_deploy_network_policies.sh View File

@ -0,0 +1 @@
../common/40_deploy_network_policies.sh

tools/deployment/01_install_essentials.sh → tools/deployment/common/01_install_essentials.sh View File


tools/deployment/02_install_calicoctl.sh → tools/deployment/common/02_install_calicoctl.sh View File


tools/deployment/21_systemwide_executable.sh → tools/deployment/common/21_systemwide_executable.sh View File


tools/deployment/22_test_configs.sh → tools/deployment/common/22_test_configs.sh View File


tools/deployment/23_generate_secrets.sh → tools/deployment/common/23_generate_secrets.sh View File


tools/deployment/23_pull_documents.sh → tools/deployment/common/23_pull_documents.sh View File


tools/deployment/24_build_images.sh → tools/deployment/common/24_build_images.sh View File


tools/deployment/25_deploy_ephemeral_node.sh → tools/deployment/common/25_deploy_ephemeral_node.sh View File


tools/deployment/26_deploy_capi_ephemeral_node.sh → tools/deployment/common/26_deploy_capi_ephemeral_node.sh View File


tools/deployment/30_deploy_controlplane.sh → tools/deployment/common/30_deploy_controlplane.sh View File


tools/deployment/31_deploy_initinfra_target_node.sh → tools/deployment/common/31_deploy_initinfra_target_node.sh View File


tools/deployment/32_cluster_init_target_node.sh → tools/deployment/common/32_cluster_init_target_node.sh View File


tools/deployment/33_cluster_move_target_node.sh → tools/deployment/common/33_cluster_move_target_node.sh View File


tools/deployment/34_deploy_controlplane_target.sh → tools/deployment/common/34_deploy_controlplane_target.sh View File


tools/deployment/35_deploy_worker_node.sh → tools/deployment/common/35_deploy_worker_node.sh View File


tools/deployment/36_deploy_workload.sh → tools/deployment/common/36_deploy_workload.sh View File


tools/deployment/37_verify_hwcc_profiles.sh → tools/deployment/common/37_verify_hwcc_profiles.sh View File


tools/deployment/40_deploy_network_policies.sh → tools/deployment/common/40_deploy_network_policies.sh View File


+ 1
- 0
tools/deployment/multi-tenant/01_install_essentials.sh View File

@ -0,0 +1 @@
../common/01_install_essentials.sh

+ 1
- 0
tools/deployment/multi-tenant/02_install_calicoctl.sh View File

@ -0,0 +1 @@
../common/02_install_calicoctl.sh

+ 1
- 0
tools/deployment/multi-tenant/21_systemwide_executable.sh View File

@ -0,0 +1 @@
../common/21_systemwide_executable.sh

+ 1
- 0
tools/deployment/multi-tenant/22_test_configs.sh View File

@ -0,0 +1 @@
../common/22_test_configs.sh

+ 1
- 0
tools/deployment/multi-tenant/23_generate_secrets.sh View File

@ -0,0 +1 @@
../common/23_generate_secrets.sh

+ 1
- 0
tools/deployment/multi-tenant/23_pull_documents.sh View File

@ -0,0 +1 @@
../common/23_pull_documents.sh

+ 1
- 0
tools/deployment/multi-tenant/24_build_images.sh View File

@ -0,0 +1 @@
../common/24_build_images.sh

+ 1
- 0
tools/deployment/multi-tenant/25_deploy_ephemeral_node.sh View File

@ -0,0 +1 @@
../common/25_deploy_ephemeral_node.sh

+ 1
- 0
tools/deployment/multi-tenant/26_deploy_capi_ephemeral_node.sh View File

@ -0,0 +1 @@
../common/26_deploy_capi_ephemeral_node.sh

+ 1
- 0
tools/deployment/multi-tenant/30_deploy_controlplane.sh View File

@ -0,0 +1 @@
../common/30_deploy_controlplane.sh

+ 1
- 0
tools/deployment/multi-tenant/31_deploy_initinfra_target_node.sh View File

@ -0,0 +1 @@
../common/31_deploy_initinfra_target_node.sh

+ 1
- 0
tools/deployment/multi-tenant/32_cluster_init_target_node.sh View File

@ -0,0 +1 @@
../common/32_cluster_init_target_node.sh

+ 1
- 0
tools/deployment/multi-tenant/33_cluster_move_target_node.sh View File

@ -0,0 +1 @@
../common/33_cluster_move_target_node.sh

+ 1
- 0
tools/deployment/multi-tenant/34_deploy_controlplane_target.sh View File

@ -0,0 +1 @@
../common/34_deploy_controlplane_target.sh

+ 1
- 0
tools/deployment/multi-tenant/35_deploy_worker_node.sh View File

@ -0,0 +1 @@
../common/35_deploy_worker_node.sh

+ 1
- 0
tools/deployment/multi-tenant/36_deploy_workload.sh View File

@ -0,0 +1 @@
../common/36_deploy_workload.sh

+ 1
- 0
tools/deployment/multi-tenant/37_verify_hwcc_profiles.sh View File

@ -0,0 +1 @@
../common/37_verify_hwcc_profiles.sh

+ 1
- 0
tools/deployment/multi-tenant/40_deploy_network_policies.sh View File

@ -0,0 +1 @@
../common/40_deploy_network_policies.sh

+ 31
- 17
zuul.d/jobs.yaml View File

@ -27,10 +27,10 @@
nodeset: airship-treasuremap-single-node
vars:
gate_scripts:
- ./tools/deployment/01_install_essentials.sh
- ./tools/deployment/21_systemwide_executable.sh
- ./tools/deployment/22_test_configs.sh
- ./tools/deployment/23_pull_documents.sh
- ./tools/deployment/common/01_install_essentials.sh
- ./tools/deployment/common/21_systemwide_executable.sh
- ./tools/deployment/common/22_test_configs.sh
- ./tools/deployment/common/23_pull_documents.sh
- ./tools/validate_docs
- job:
@ -70,19 +70,19 @@
vars:
site_name: test-site
gate_scripts:
- ./tools/deployment/01_install_essentials.sh
- ./tools/deployment/22_test_configs.sh
- ./tools/deployment/23_pull_documents.sh
- ./tools/deployment/23_generate_secrets.sh
- ./tools/deployment/24_build_images.sh
- ./tools/deployment/25_deploy_ephemeral_node.sh
- ./tools/deployment/26_deploy_capi_ephemeral_node.sh
- ./tools/deployment/30_deploy_controlplane.sh
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
- ./tools/deployment/33_cluster_move_target_node.sh
- ./tools/deployment/35_deploy_worker_node.sh
- ./tools/deployment/36_deploy_workload.sh
- ./tools/deployment/airship-core/01_install_essentials.sh
- ./tools/deployment/airship-core/22_test_configs.sh
- ./tools/deployment/airship-core/23_pull_documents.sh
- ./tools/deployment/airship-core/23_generate_secrets.sh
- ./tools/deployment/airship-core/24_build_images.sh
- ./tools/deployment/airship-core/25_deploy_ephemeral_node.sh
- ./tools/deployment/airship-core/26_deploy_capi_ephemeral_node.sh
- ./tools/deployment/airship-core/30_deploy_controlplane.sh
- ./tools/deployment/airship-core/31_deploy_initinfra_target_node.sh
- ./tools/deployment/airship-core/32_cluster_init_target_node.sh
- ./tools/deployment/airship-core/33_cluster_move_target_node.sh
- ./tools/deployment/airship-core/35_deploy_worker_node.sh
- ./tools/deployment/airship-core/36_deploy_workload.sh
serve_dir: /srv/images
serve_port: 8099
voting: true
@ -92,6 +92,20 @@
parent: airship-treasuremap-deploy-test-site
vars:
site_name: virtual-network-cloud
gate_scripts:
- ./tools/deployment/multi-tenant/01_install_essentials.sh
- ./tools/deployment/multi-tenant/22_test_configs.sh
- ./tools/deployment/multi-tenant/23_pull_documents.sh
- ./tools/deployment/multi-tenant/23_generate_secrets.sh
- ./tools/deployment/multi-tenant/24_build_images.sh
- ./tools/deployment/multi-tenant/25_deploy_ephemeral_node.sh
- ./tools/deployment/multi-tenant/26_deploy_capi_ephemeral_node.sh
- ./tools/deployment/multi-tenant/30_deploy_controlplane.sh
- ./tools/deployment/multi-tenant/31_deploy_initinfra_target_node.sh
- ./tools/deployment/multi-tenant/32_cluster_init_target_node.sh
- ./tools/deployment/multi-tenant/33_cluster_move_target_node.sh
- ./tools/deployment/multi-tenant/35_deploy_worker_node.sh
- ./tools/deployment/multi-tenant/36_deploy_workload.sh
files:
- ^manifests/site/virtual-network-cloud/.*$
- ^manifests/type/multi-tenant/.*$


Loading…
Cancel
Save