Debian Codegraph @

lib/puppet/type/postgresql_replication_slot.rb

raw
1 # frozen_string_literal: true
2
3 Puppet::Type.newtype(:postgresql_replication_slot) do
4 @doc = <<~EOS
5 @summary Manages Postgresql replication slots.
6
7 This type allows to create and destroy replication slots
8 to register warm standby replication on a Postgresql
9 primary server.
10 EOS
11
12 ensurable
13
14 newparam(:name) do
15 desc 'The name of the slot to create. Must be a valid replication slot name.'
16 isnamevar
17 newvalues %r{^[a-z0-9_]+$}
18 end
19 end