-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pattern for deploying TKGM without nesting fix outstanding bugs in tkgm automation --------- Co-authored-by: Matt Proud <[email protected]>
- Loading branch information
1 parent
8fe6169
commit d209b21
Showing
16 changed files
with
363 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
name: 'Yamllint GitHub Actions' | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
yamllint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
temp/* | ||
settings.json | ||
tmp/ | ||
ignored/ | ||
|
||
# Tanzu Multi-cloud outputs | ||
cluster-config.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
--- | ||
|
||
- name: Create YAML template file for Tanzu Management Cluster | ||
ansible.builtin.template: | ||
src: management-cluster.yml | ||
dest: "{{ playbook_dir }}/{{ tanzu_multi_cloud.generated_config_file_name }}" | ||
mode: '660' | ||
- name: Load management cluster config | ||
ansible.builtin.set_fact: | ||
mgmt_cluster_config: "{{ lookup('template', 'management-cluster.yml') | from_yaml }}" | ||
|
||
# Allow insertion of variable if set | ||
# Workaround for j2 tempolate not removing keys when omit used | ||
- name: Set VSPHERE_CONTROL_PLANE_ENDPOINT if exists | ||
ansible.builtin.set_fact: | ||
mgmt_cluster_config: | | ||
{{ | ||
mgmt_cluster_config | combine | ||
({ 'VSPHERE_CONTROL_PLANE_ENDPOINT': tanzu_multi_cloud.vsphere_control_plane_endpoint }) | ||
}} | ||
when: tanzu_multi_cloud.vsphere_control_plane_endpoint is defined | ||
|
||
# Workaround for j2 always templating strings instead of booleans | ||
- name: Set AVI_CONTROL_PLANE_HA_PROVIDER | ||
ansible.builtin.set_fact: | ||
mgmt_cluster_config: | | ||
{{ | ||
mgmt_cluster_config | combine | ||
({ 'AVI_CONTROL_PLANE_HA_PROVIDER': tanzu_multi_cloud.avi_control_plane_ha_provider }) | ||
}} | ||
- name: Write management cluster config | ||
ansible.builtin.copy: | ||
content: "{{ mgmt_cluster_config | to_nice_yaml }}" | ||
dest: "{{ tanzu_multi_cloud.generated_config_file }}" | ||
mode: '0644' |
Oops, something went wrong.