Redpanda Ansible Collection that enables provisioning and managing a Redpanda cluster.
More information on consuming this collection is available here in our official documentation.
You can also see some example playbooks in our deployment-automation repository.
To build the collection you first need to bump the version number listed in ansible/redpanda/cluster/galaxy.yml
You will probably need appropriate permissions on the namespace for this to work.
Once that's all sorted, run the following shell script with an API key from Ansible Galaxy
ansible-galaxy collection build
ansible-galaxy collection publish redpanda-cluster-*.tar.gz --token <YOUR_API_KEY> -s https://galaxy.ansible.com/api/
If you see something like this:
ok: [34.209.26.177] => {“changed”: false, “stat”: {“exists”: false}}
objc[57889]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[57889]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
ERROR! A worker was found in a dead state
You might try resolving by setting an environment variable:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES