Merge pull request #317 from hubspotdevops/validate_db_connection_float
Prevent float of defined resource.
This commit is contained in:
commit
0bb214d1be
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,8 @@ class postgresql::server::service {
|
|||
default => $ensure
|
||||
}
|
||||
|
||||
anchor { 'postgresql::server::service::begin': }
|
||||
|
||||
service { 'postgresqld':
|
||||
ensure => $service_ensure,
|
||||
name => $service_name,
|
||||
|
@ -35,6 +37,9 @@ class postgresql::server::service {
|
|||
tries => 60,
|
||||
create_db_first => false,
|
||||
require => Service['postgresqld'],
|
||||
before => Anchor['postgresql::server::service::end']
|
||||
}
|
||||
}
|
||||
|
||||
anchor { 'postgresql::server::service::end': }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue