Skip to content

Combine templates into a single script#23

Merged
raneq merged 3 commits intomasterfrom
combine-script-templates
Jun 18, 2019
Merged

Combine templates into a single script#23
raneq merged 3 commits intomasterfrom
combine-script-templates

Conversation

@raneq
Copy link
Collaborator

@raneq raneq commented Jun 18, 2019

  • now cron-main at the template rendering stage, the cron prepare and cron upload
  • the combined rendered template is installed as the only backup script at the host.
  • update README with the variable changes
  • renamed backups_role_script_path to backups_role_script_dir
  • backups_role_script_path now means install path of backups script, instead of the parent dir.
  • collapsed 3-character ... into 1-char ellipsis …
  • removed redundant code from prepare and upload templates, as we no longer need to define title function 3 times

Closes #15

* now cron-main at the template rendering stage, the cron prepare and cron upload
* the combined rendered template is installed as the only backup script at the host.
* update README with the variable changes
* renamed backups_role_script_path to backups_role_script_dir
* backups_role_script_path now means install path of backups script, instead of the parent dir.
* collapsed 3-character ... into 1-char ellipsis …
* removed redundant code from prepare and upload templates, as we no longer need to define title function 3 times
@raneq raneq requested a review from danypr92 June 18, 2019 07:03
@raneq
Copy link
Collaborator Author

raneq commented Jun 18, 2019

@danypr92 it is tested and working in my environment. Can you have a look and see if there's something you disagree with?

@raneq raneq added this to the v1.1.1 milestone Jun 18, 2019
raneq and others added 2 commits June 18, 2019 10:55
This becomes an issue when doing local_restore. However, in local_restore we were using inventory_hostname_short, which would make collide hosts like odoo.coopdevs.org and odoo.some-other.coop
Add the `backups_role_path` var to the README and explain it

Co-Authored-By: raneq <46573858+raneq@users.noreply.github.com>
@raneq raneq merged commit f639d81 into master Jun 18, 2019
@raneq raneq deleted the combine-script-templates branch July 11, 2019 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify rendered backup scripts by including sub-templates

3 participants