Skip to content

make the locks_filename default to db_filename? #23

@bwitt

Description

@bwitt

if I'm trying to put a few dconf::db resources into the same db (e.g. local), I have to do something like this

    dconf::db { 'firstone':
      db_dir         => "${dconf::db_base_dir}/local.d",
      db_filename    => '00-firstone',
      locks_filename => '00-firstone',
      settings       => {
        'setting1' => {
          'key1' => 'value1',
        },
      },
      locks          => [
        'key1',
      ],
    }

      dconf::db { 'secondone':
        db_dir         => "${dconf::db_base_dir}/local.d",
        db_filename    => '02-secondone',
        locks_filename => '02-secondone',
        settings       => {
          'setting2' => {
            'key2' => 'value2',
          },
        },
        locks          => [
          'key2',
        ],
      }

Each of these would be in a separate class, and included or not based on a config, so I'd like to keep them separate like this (vs combining into one big dconf::db resource)

maybe we could make the locks_filename default to db_filename instead of 00-default

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions