debops / debops-tools

Your Debian-based data center in a box
https://debops.org/
GNU General Public License v3.0
1.07k stars 116 forks source link

provide a commented example config of how to use template_src #182

Open muelli opened 7 years ago

muelli commented 7 years ago

It seems that the currently generated .debops.cfg does not indicate how to make use of the template_src lookup mechanism. It would make debops more discoverable if it showed how to make use of that functionality.

Currently, the file looks like this:

# -*- conf -*-

[paths]
;data-home: /opt/debops

[ansible defaults]
display_skipped_hosts = False
retry_files_enabled = False
;callback_plugins = /my/plugins/callback
;roles_path = /my/roles

[ansible paramiko]
;record_host_keys=True

[ansible ssh_connection]
;ssh_args = -o ControlMaster=auto -o ControlPersist=60s

it's probably necessary to make it smth like

# -*- conf -*-

[paths]
;data-home: /opt/debops
;templates-paths: ansible/templates

[ansible defaults]
display_skipped_hosts = False
retry_files_enabled = False
;callback_plugins = /my/plugins/callback
;roles_path = /my/roles

[ansible paramiko]
;record_host_keys=True

[ansible ssh_connection]
;ssh_args = -o ControlMaster=auto -o ControlPersist=60s
drybjed commented 7 years ago

Good idea. The paths to tasks and files could be added and commented out as well.