Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement backup configuration for services #8

Open
nicolas-brousse opened this issue May 3, 2019 · 4 comments
Open

Implement backup configuration for services #8

nicolas-brousse opened this issue May 3, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@nicolas-brousse
Copy link

Do you think It may be possible to management backup configuration from a module?
On dokku_service_create or maybe something like dokku_service_backup.

I never code with python actually, but may be I could have a look if this feature may interest you and I found some time later.

@josegonzalez
Copy link
Member

Sure, seems interesting :)

@nicolas-brousse
Copy link
Author

Cool!

To be honest, I'm currently not having time to work on this kind of project.
But since we planned to use dokku to host our customer projects, I'll have to find some time to improve our ansible playbooks. So I'll try to work on a module when I'll update our playbooks.

@josegonzalez josegonzalez added the enhancement New feature or request label May 13, 2019
@nicolas-brousse
Copy link
Author

I start thinking to this library and I've got some question before I could really work on it.

  • What do you think of this structure for the configuration:
  dokku_service_backup:
    name: default
    service: redis
    state: present
    auth:
      access_key_id:
      secret_access_key:
      region:
      signature_version:
      endpoint_url:
      bucket_name:
    schedule:
    encryption:
      passphrase:
  • About the backup-auth/backup-deauth, how to know if authentication already set, and how to manage credentials updates. There is no dokku command that really help us with that. The only way I saw for now, is to directly read file on server. But not sure is the cleanest way.
  • For backup-set-encryption/backup-unset-encryption, I've almost the same question than for authentication. How to know if backups are already encrypted? And how to manage how to manage the passphrase update?

I never wrote python before, but it looks not really complicated. So I'll try to do a PR in the coming days. But could you tell me how do you process to test this ansible code? Manually, with a vagrant vm?

@josegonzalez
Copy link
Member

I would just assume that a user has configured their backups correctly, and as such would likely have different libraries for updating/removing auth/encryption information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants