Skip to content

Commit

Permalink
Bug fixes on #1 🐛
Browse files Browse the repository at this point in the history
Inspired by comments on dawidd6/action-ansible-playbook#36
  • Loading branch information
mblomdahl-bot authored Mar 20, 2024
1 parent fb360a9 commit 3c562a3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
.idea/

venv/
.vault-pass
.ansible_vault_password
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

# `minio-microk8s-ansible` – MinIO S3 Object Storage with a MicroK8s Sidecar

Ansible playbook to configure our Ubuntu 22 servers to run a distributed MinIO S3 service, heavily
inspired by [`mkdevops-se/hq.mkdevops.se`](https://github.com/mkdevops-se/hq.mkdevops.se). MicroK8s
is used here as a sidecar to provide container platform capabilities and handle internet ingress.


## Getting Started

Clone the repo:
Expand All @@ -19,10 +17,10 @@ Create a virtual environment and install the dependencies:
source venv/bin/activate
pip install -r requirements.txt

Add the Ansible Vault password to a file named `.vault-pass` and restrict readability.
Add the Ansible Vault password to a file named `.ansible_vault_password` and restrict readability.

echo theSecretAnsibleVaultPassword > .vault-pass
chmod og-r .vault-pass
echo theSecretAnsibleVaultPassword > .ansible_vault_password
chmod og-r .ansible_vault_password

Verify that the hosts are reachable:

Expand All @@ -31,4 +29,3 @@ Verify that the hosts are reachable:
Run through the bootstrap playbook in `--check` mode to verify that provisioning can execute:

ansible-playbook bootstrap.yml --check

2 changes: 1 addition & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ roles_path = roles/
retry_files_enabled = False
inventory = hosts.yml
display_args_to_stdout = True
vault_password_file = .vault-pass
vault_password_file = .ansible_vault_password
3 changes: 0 additions & 3 deletions hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ minio_servers:
ansible_host: 83.233.237.136
ansible_port: 622
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa
minio2:
ansible_host: 83.233.237.136
ansible_port: 623
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa
minio3:
ansible_host: 82.183.39.110
ansible_port: 622
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa

0 comments on commit 3c562a3

Please sign in to comment.