Commit c5be138 1 parent 683d273 commit c5be138 Copy full SHA for c5be138
File tree 3 files changed +8
-15
lines changed
3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,13 @@ jobs:
64
64
65
65
- name : Deploy the test VMs
66
66
run : |
67
- cd ansible
68
- cp hosts.yaml.example hosts.yaml
69
67
70
68
if [ "${{ matrix.os }}" = "ubuntu/20.04" ]; then
71
69
# Ubuntu 20.04's OVN is too old.
72
- sed -i "s/ovn_release:.*/ovn_release: \"ppa\"/g" hosts .yaml
70
+ sed -i "s/ovn_release:.*/ovn_release: \"ppa\"/g" inventories/baremetal .yaml
73
71
fi
74
72
75
- ansible-playbook deploy.yaml
73
+ ansible-playbook -i inventories/baremetal.yaml deploy.yaml
76
74
77
75
- name : Post deployment validation
78
76
run : |
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ tofu apply -target=module.baremetal
34
34
```
35
35
36
36
### Run the Ansible Playbook
37
- Go to the ansible directory:
37
+ Go back to the repo root directory:
38
38
```
39
- cd ../ansible/
39
+ cd ../
40
40
```
41
41
42
42
NOTE: If you need the same version of Ansible this was tested with:
@@ -47,15 +47,11 @@ pipenv shell
47
47
ansible-galaxy install -r ansible_requirements.yml
48
48
```
49
49
50
- Copy the example inventory file:
51
- ```
52
- cp hosts.yaml.example hosts.yaml
53
- ```
54
50
NOTE: If you are connecting to a remote Incus host you will need to change the ` ansible_incus_remote ` variable to match the name of the Incus remote (see: ` incus remote list ` for a list of remote names to use).
55
51
56
52
Run the Playbooks:
57
53
```
58
- ansible-playbook deploy.yaml
54
+ ansible-playbook -i inventories/baremetal.yaml deploy.yaml
59
55
```
60
56
61
57
NOTE: When re-deploying the same cluster (e.g. following a ` terraform destroy ` ),
@@ -65,9 +61,9 @@ connection to the previously deployed systems which will cause the
65
61
deployment to get stuck.
66
62
67
63
```
68
- rm ansible/ data/ceph/*
69
- rm ansible/ data/lvmcluster/*
70
- rm ansible/ data/ovn/*
64
+ rm data/ceph/*
65
+ rm data/lvmcluster/*
66
+ rm data/ovn/*
71
67
```
72
68
73
69
### Test a VM and Container on the new Incus cluster
Original file line number Diff line number Diff line change 1
1
[defaults]
2
- inventory = inventories/baremetal.yaml
3
2
error_on_undefined_vars = false
4
3
timeout = 30
5
4
forks = 10
You can’t perform that action at this time.
0 commit comments