project-koku / korekuta

Read Only Please See: https://github.com/project-koku/korekuta-operator
https://github.com/project-koku/korekuta-operator
GNU Affero General Public License v3.0
6 stars 1 forks source link

DONT MERGE - Example role for performing file split. #135

Closed chambridge closed 4 years ago

chambridge commented 4 years ago

This is an example of how we could do the file splitting: ansible-playbook ./ocp_usage_playbook.yml -vv --tags=collect

This is just a rough example that needs more clean up, but wanted to put the gist out there.

You will note that this short circuits most of the collect logic to show what would be done after the files are downloaded, but I wanted to make it something simple to run.

I placed two sample csv files from previous output int /tmp and referenced them in the list of csv files.

69a5ae95-f66f-4149-874c-67041629a538_openshift_usage_report.0.txt 69a5ae95-f66f-4149-874c-67041629a538_openshift_usage_report.1.txt

You will need to swap the extension back to .csv

Let me know what you think.