Implementation details - sonchang/cattle GitHub Wiki
Feel free to provide better names
New cattle resource called template-repository
that has field for connecting to a repository.
Actions available:
- list : retrieves list of compose-templates from repository
- load : load the contents of file
- run "some_id". take JSON payload where:
metadata: connection_info_for_fetching_values_from_server, fields : { user_field: user_value, etc... }
- does variable substitutions. the keys in `fields` can have the same exact name as the variables in the template file. from the metadata server, these should probably be namespaced according to the **environment/project.**
- feeds into `rancher-compose` library that does the necessary cattle API calls. For now, I'll just use system exec until a `rancher-compose` library exists.