add file control for pg_hba
This commit is contained in:
@@ -6,5 +6,19 @@
|
||||
class postgresql_cd::main::files (
|
||||
|
||||
) inherits postgresql_cd::params {
|
||||
require postgresql_cd::main::dirs
|
||||
if $fqdn == $pl_server_fqdn {
|
||||
require postgresql_cd::main::dirs
|
||||
|
||||
file { '/var/lib/pgsql/data/pg_hba.conf':
|
||||
ensure => file,
|
||||
owner => 'postgres',
|
||||
group => 'postgres',
|
||||
mode => '0600',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => postgresql_db_t,
|
||||
seluser => unconfined_u,
|
||||
content => template('postgresql_cd/pg_hba.conf.erb'),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user