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

Backend SQLite3 change directory ownership #71

Closed
alebeta90 opened this issue Feb 5, 2020 · 3 comments
Closed

Backend SQLite3 change directory ownership #71

alebeta90 opened this issue Feb 5, 2020 · 3 comments

Comments

@alebeta90
Copy link

Hi friends,

Recently I had been deploying my slaves dns servers with version PowerDNS 4.2 and it was having troubles to write changes in the database. After asking for help in the IRC group, I got the follow answer

4.2 changed the default SQLite journal mode to WAL, so the process has to be able to create db.sqlite-shm and db.sqlite-wal files.

and the suggestion was to change the ownership of powerdns db directory to user pdns and group pdns. I did it in my Ansible PB as adding this:

        - name: Change /var/lib/powerdns/ ownership to pdns user and group
          file:
            path: /var/lib/powerdns/
            owner: pdns
            group: pdns

I think it would be great if this piece of code could be integrated in the role. I could help to do the PR.

Thanks and all the best

@atosatto
Copy link
Contributor

atosatto commented Feb 5, 2020

Hi @alebeta90, thanks for your detail report.
Indeed the role is not correctly handling the permissions for the new 4.2.x PowerDNS release.

I could help to do the PR.

Please go ahead submitting a PR. I will take care or review and merge it ASAP.

@alebeta90
Copy link
Author

Hi @atosatto

could you have a look at my change in the PB. For some reason in the CI it is giving me an error related the lint, I run some lint test but can not see the error.

Thanks

@pieterlexis
Copy link
Contributor

Should be fixed with #82

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

No branches or pull requests

3 participants