]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio/postgresql.pp
Remove cleanup files
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio / postgresql.pp
index addad6724ac444333b23c65ba5e788c3e2a276ba..eda0d020625add4ab04c25e72513680a0f64f7e6 100644 (file)
@@ -13,7 +13,7 @@ class role::cryptoportfolio::postgresql inherits role::cryptoportfolio {
     password =>  postgresql_password($pg_user, $pg_password),
   }
 
-  postgresql::server::pg_hba_rule { 'allow localhost TCP access to cryptoportfolio user':
+  postgresql::server::pg_hba_rule { 'allow local access to cryptoportfolio user':
     type        => 'local',
     database    => $pg_db,
     user        => $pg_user,
@@ -21,21 +21,4 @@ class role::cryptoportfolio::postgresql inherits role::cryptoportfolio {
     order       => "05-01",
   }
 
-  # cleanup
-  postgresql_psql { "DROP PUBLICATION ${pg_db}_publication":
-    db     => $pg_db,
-    onlyif => "SELECT 1 FROM pg_catalog.pg_publication WHERE pubname = '${pg_db}_publication'",
-  } ->
-  postgresql_replication_slot { $pg_user_replication:
-    ensure => absent
-  } ->
-  postgresql_psql { "DROP OWNED BY $pg_user_replication":
-    db     => $pg_db,
-    onlyif => "SELECT 1 FROM pg_user WHERE usename='$pg_user_replication'"
-  } ->
-  postgresql::server::role { $pg_user_replication:
-    ensure        => absent,
-  }
-  # /cleanup
-
 }