Refactor file path in actions-validate.yml and update input parameters for vault master password, ansible user, and trusted hosts
This commit is contained in:
@@ -25,15 +25,7 @@ runs:
|
|||||||
mkdir -p ~/.kube
|
mkdir -p ~/.kube
|
||||||
ansible -i ansible/inventory/hosts -u $ANSIBLE_USER -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" $K8S_TARGET
|
ansible -i ansible/inventory/hosts -u $ANSIBLE_USER -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" $K8S_TARGET
|
||||||
|
|
||||||
- name: Terraform Init
|
- name: Forward K8S API Server port
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }}
|
|
||||||
run: |
|
|
||||||
cd terraform/k8sapps
|
|
||||||
sectool exec terraform init
|
|
||||||
|
|
||||||
- name: Terraform Apply
|
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }}
|
VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Test kubectl get nodes
|
- name: Test kubectl get nodes
|
||||||
run: |
|
run: |
|
||||||
kubectl get nodes
|
kubectl get nodes --insecure-skip-tls-verify
|
||||||
|
|
||||||
- name: Test terraform
|
- name: Test terraform
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user