The file-manager
Operator Collection allows for the creation, deletion, and discovery of files on a host.
The playbooks and CustomResources provided by this OperatorCollection are listed below.
The create_file
playbook is a simple example of executing a playbook to create a file on a target system.
- Create
ansible-playbook playbooks/create_file.yml -i inventories/ibmcloud-vm.yml --limit ibmcloud-vm
The delete_file
playbook is a simple example of executing a playbook to delete a file on a target system.
- Delete
ansible-playbook playbooks/delete_file.yml -i inventories/ibmcloud-vm.yml --limit ibmcloud-vm
The discover
playbook connects to a system and populates Kubernetes with File CustomResources
- Discover
ansible-playbook playbooks/discover.yml -i inventories/ibmcloud-vm.yml --limit ibmcloud-vm
The file_message
playbook connects to a system and populates Kubernetes with File CustomResources
- Write to a file
ansible-playbook playbooks/file_message.yml -i inventories/ibmcloud-vm.yml --limit ibmcloud-vm
If you're currently running in an offline OpenShift cluster, you should install the IBM Operator Collection SDK, and run the following command to download the Ansible dependencies, and reconfigure this Operator Collection to use these local dependencies:
ansible-playbook ibm.operator_collection_sdk.create_offline_requirements