Skip to content

natereid72/PKS-Ninja-Lab-Patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 

Repository files navigation

PKS-Ninja-Patch

This script is a stop-gap for issues in the current (v10) PKS-Ninja lab template.

(Execute this script immediately after deploying the v10 lab template, before you begin the lab guides.)

Fixes:

  • CLI-VM
    • DNS name resolution

      • Fix name service switch config
        • /etc/nsswitch.conf
        • Removes mdns4 multicast DNS resolution config.
      • Create .bak of orignal file in same directory
    • PKS pipeline install

      • Remark out pipeline property conflicts
        • ~/nsx-t-ci-pipeline/tasks/config-pks/task.yml
        • ~/nsx-t-ci-pipeline/tasks/config-pks/task.sh
        • ~/nsx-t-ci-pipeline/tasks/config-pks/config-pks-1.1.sh
        • ~/nsx-t-ci-pipeline/pipelines/install-pks-pipeline.yml
        • ~/nsx-t-ci-pipeline/pipelines/pks-params.yml
        • All parameters or functions referring to "syslog". (Bit of brute force but works and doesn't seem to break any lab tasks.)
      • Restrict platform deployment to Ops Man 2.3.0 and PKS 1.2.0
        • ~/nsx-t-ci-pipeline/pipelines/pks-params.yml
        • Changes setting from latest releases to specific releases
      • Remove RegionA01-MGMT01 from PKS tile [Networking --> vSphere Cluster Names]
        • ~/nsx-t-ci-pipeline/pipelines/pks-params.yml
        • Removes MGMT cluster from list of clusters PKS should deploy k8s clusters to
      • Create .bak of original all files in same directory
    • Add aliases to cli-vm shell

      • pksli = pks login -a pks.corp.local -u pks-admin -p VMware1! --skip-ssl-validation
      • pksgc = pks get-credentials
      • Set alias in current shell and updates ~/.bashrc

Notes:

The script will create a .bak of each file before it is updated. Running the script again will reset original state before applying the patch again. If you make other changes to the affected files post-run and then rerun, your changes will be lost.

Directions:

  • From cli-vm command line
    • git clone https://github.com/natereid72/PKS-Ninja-Lab-Patch.git
    • source ./PKS-Ninja-Lab-Patch/cc-p1.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages