Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring to Ansible Collection #7

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
891f239
move terraform files to test folder
mkbrechtel May 18, 2024
a357dc6
add ansible collection repo files
mkbrechtel May 18, 2024
274df29
move ansible files to place in the ansible collection file structure
mkbrechtel May 18, 2024
3a22e38
rename task_ variables to their respective role names
mkbrechtel May 18, 2024
4183371
refactor ceph playbook to ansible role files
mkbrechtel May 18, 2024
2358973
refactor incus playbook to ansible role files
mkbrechtel May 18, 2024
405903c
refactor ovn playbook to ansible role files
mkbrechtel May 18, 2024
329fb10
refactor hosts example file as a test inventory directory
mkbrechtel May 18, 2024
0697282
split ansible readme to readme for each role
mkbrechtel May 18, 2024
54e956a
rewrite central deploy playbook and ansible config for new structure
mkbrechtel May 18, 2024
bf27cdf
adjust readme to be compatible with the new structure
mkbrechtel May 18, 2024
bb35a70
fix task indent
mkbrechtel May 18, 2024
a419cbd
let ansible output yaml instead of json for better readability
mkbrechtel May 18, 2024
87a4169
set ceph template paths correctly
mkbrechtel May 18, 2024
b6a0e68
fix data directory path
mkbrechtel May 18, 2024
7a45437
rename ceph template files
mkbrechtel May 18, 2024
8b0d3d7
fix ceph source template var names
mkbrechtel May 18, 2024
23f2e38
fix variable names in templates
mkbrechtel May 18, 2024
cd1266f
fix paths in ceph role and comment apt handler invocation
mkbrechtel May 18, 2024
5173246
add a playbook to simply rerun the test project
mkbrechtel May 18, 2024
9877152
ignore one of the terraform state files
mkbrechtel May 18, 2024
b689d52
rename ovn templates and fix task paths
mkbrechtel May 18, 2024
163af2b
recreate all folders on test rerun
mkbrechtel May 18, 2024
5344feb
disable ovn and incus in test playbook for now
mkbrechtel May 18, 2024
ea479bf
rename playbook that recreates the test env
mkbrechtel May 18, 2024
e6ef89d
fix handler invocation
mkbrechtel May 18, 2024
ba8dcac
fix recreation playbook ovn data directory
mkbrechtel May 18, 2024
af2fa1e
enable ovn and incus deploy again
mkbrechtel May 18, 2024
6668174
rename all remaining templates and rename all tpl extension usages to j2
mkbrechtel May 18, 2024
fd8e990
fix wrong ovn default var
mkbrechtel May 18, 2024
1ddbad8
symlink template from ovn role that is also needed in incus role
mkbrechtel May 18, 2024
cf2bfb2
Wait for IPv6 address to be set to avoid a race condition when starti…
mkbrechtel May 19, 2024
e3087af
fix some data paths in the task file
mkbrechtel May 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
data/
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apt install --no-install-recommends ceph-base ceph-common
### Create the test VMs with OpenTofu
Go to terraform directory:
```
cd terraform/
cd test/terraform/
```

Init the terraform project:
Expand All @@ -30,19 +30,14 @@ tofu apply
```

### Run the Ansible Playbook
Go to the ansible directory:
Go back to the root directory:
```
cd ../ansible/
cd ../../
```

Copy the example inventory file:
Run the Playbook with the test inventory:
```
cp hosts.yaml.example hosts.yaml
```

Run the Playbooks:
```
ansible-playbook deploy.yaml
ansible-playbook -i test/inventory/ deploy.yaml
```

NOTE: When re-deploying the same cluster (e.g. following a `terraform
Expand Down
5 changes: 1 addition & 4 deletions ansible/ansible.cfg → ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[defaults]
inventory = hosts.yaml
error_on_undefined_vars = false
timeout = 30
forks = 10
connection_plugins = plugins/connection/

[inventory]
enable_plugins = yaml
stdout_callback = yaml
2 changes: 0 additions & 2 deletions ansible/.gitignore

This file was deleted.

58 changes: 0 additions & 58 deletions ansible/README.md

This file was deleted.

Loading
Loading