-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow multiple uses of dconf::db for the same database #5
Comments
This should be possible with a little bit of work. Currently defining two separate files for the same DB results in a duplicate resource declaration.
This is because the dconf::db defined-type uses a standard 'file' resource to create the db_dir. But we could switch to a stdlib ensure-resource declaration instead. I'll look into this and see what else might need changing as well. |
I've pushed some draft changes to a dev branch (commit-id 5fd52fa) Feel free to test and give feedback. I still need to add documentation for it. But you can test using some code like the following:
The key difference here is specifying the |
That looks useful - does the same need to happen for the lock files so that they can be named for their contents as well, rather than having all locks in one file? |
That could be a bit more difficult since the locks file is also tied to the |
I have pushed another update to dev branch (commit-id: The following is a working example
Although possible, I do think this approach is a bit of a hack. Managing everything in a single db file and locks file is the intended use-case of the module. But I'll see about merging these changes at some point |
At present, we create DConf settings manually in several Puppet profiles, mostly in the
local
database, but using different file names for different groups of settings. We'd prefer to use a module for this, and your DConf module looks great, but at present it can only be used once for each database.Can there be a parameter to the
dconf::db
type so that the name of the resource can be different from the database?This way I could have two files for settings in different profiles:
The text was updated successfully, but these errors were encountered: