chore: Add deployment playbook
This commit is contained in:
parent
1451e8f105
commit
2db1c4d623
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
**/hv.vcenter.yaml
|
||||||
|
**/ova.bootstrap.yaml
|
||||||
|
**/pb.secrets.yaml
|
||||||
|
**/pwdfile
|
48
deployment/playbook.yml
Normal file
48
deployment/playbook.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
vars_files:
|
||||||
|
- vars/ova.bootstrap.yaml
|
||||||
|
- vars/hv.vcenter.yaml
|
||||||
|
- vars/pb.secrets.yaml
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Deploy VM from OVA-template
|
||||||
|
community.vmware.vmware_deploy_ovf:
|
||||||
|
hostname: "{{ hv.hostname }}"
|
||||||
|
username: "{{ hv.username }}"
|
||||||
|
password: "{{ secrets.hv.password }}"
|
||||||
|
validate_certs: no
|
||||||
|
datacenter: "{{ hv.datacenter }}"
|
||||||
|
folder: "{{ hv.folder }}"
|
||||||
|
cluster: "{{ hv.cluster }}"
|
||||||
|
name: airgapped-k8s-meta1
|
||||||
|
datastore: "{{ hv.datastore }}"
|
||||||
|
disk_provisioning: thin
|
||||||
|
networks:
|
||||||
|
"LAN": "{{ hv.network }}"
|
||||||
|
power_on: yes
|
||||||
|
ovf: "{{ appliance.path }}/{{ appliance.filename }}"
|
||||||
|
deployment_option: cp1w1ws0
|
||||||
|
properties:
|
||||||
|
metacluster.fqdn: k8s.lab
|
||||||
|
metacluster.vip: 192.168.154.125
|
||||||
|
metacluster.token: "{{ secrets.appliance.installtoken }}"
|
||||||
|
# guestinfo.hostname: _default
|
||||||
|
metacluster.password: "{{ secrets.appliance.password }}"
|
||||||
|
guestinfo.ipaddress: 192.168.154.126
|
||||||
|
guestinfo.prefixlength: '24'
|
||||||
|
guestinfo.dnsserver: 192.168.154.225
|
||||||
|
guestinfo.gateway: 192.168.154.1
|
||||||
|
# workloadcluster.name: _default
|
||||||
|
workloadcluster.vip: 192.168.154.130
|
||||||
|
ippool.startip: 192.168.154.135
|
||||||
|
ippool.endip: 192.168.154.140
|
||||||
|
workloadcluster.nodetemplate: ubuntu-2204-kube-v1.30.0
|
||||||
|
workloadcluster.nodesize: small
|
||||||
|
# workloadcluster.additionaldisk: '75'
|
||||||
|
guestinfo.rootsshkey: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAiRc7Og+cRJGFwdUzgpX9YqvVenTk54N4kqM7emEfYHdsJLMjKQyxr8hklHmsam5dzxx3itFzc6SLf/ldJJ2JZuzE5FiCqUXXv4UFwN6HF5xqn7PTLicvWZH93H4m1gOlD5Dfzi4Es34v5zRBwbMScOgekk/LweTgl35jGKDgMP5DjGTqkPf7Ndh9+iuQrz99JEr8egl3bj+jIlKjScfaQbbnu3AJIRwZwTKgw0AOkLliQdEPNLvG5/ZImxJG4oHV9/uNkfdJObLjT1plR1HbVNskV5fuRNE/vnUiWl9jAJ1RT83GOqV0sQ+Q7p214fkgqb3JPvci/s0Bb7RA85hBEQ== bessems.eu
|
||||||
|
hv.fqdn: "{{ hv.hostname }}"
|
||||||
|
hv.username: "{{ hv.username }}"
|
||||||
|
hv.password: "{{ secrets.hv.password }}"
|
||||||
|
ldap.fqdn: _unused
|
||||||
|
ldap.dn: _unused
|
||||||
|
ldap.password: _unused
|
5
deployment/requirements.yaml
Normal file
5
deployment/requirements.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
collections:
|
||||||
|
# - ansible.posix
|
||||||
|
# - ansible.utils
|
||||||
|
# - community.general
|
||||||
|
- community.vmware
|
Loading…
Reference in New Issue
Block a user