File tree 4 files changed +13
-10
lines changed
4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,7 @@ def matches(value)
135
135
end
136
136
137
137
autorequire ( :anchor ) do
138
- [ "postgresql::server::service::begin::#{ self [ :instance ] } " ]
139
- end
140
-
141
- autorequire ( :service ) do
142
- [ "postgresqld_instance_#{ self [ :instance ] } " ]
138
+ [ "postgresql::server::service::end::#{ self [ :instance ] } " ]
143
139
end
144
140
145
141
def should_run_sql ( refreshing = false )
Original file line number Diff line number Diff line change 42
42
status => $service_status ,
43
43
}
44
44
45
+ Anchor[" postgresql::server::service::begin::${name} " ]
46
+ -> Service[" postgresqld_instance_${name} " ]
47
+ -> Anchor[" postgresql::server::service::end::${name} " ]
48
+
45
49
if $service_ensure in [' running' , true ] {
46
50
# This blocks the class before continuing if chained correctly, making
47
51
# sure the service really is 'up' before continuing.
56
60
sleep => 1,
57
61
tries => 60,
58
62
psql_path => $psql_path ,
59
- require => Service[" postgresqld_instance_${name} " ],
60
- before => Anchor[" postgresql::server::service::end::${name} " ],
61
63
}
62
- Postgresql::Server::Database <| title == $default_database |> -> Postgresql_conn_validator[" validate_service_is_running_instance_${name} " ]
64
+
65
+ Anchor[" postgresql::server::service::begin::${name} " ]
66
+ -> Service[" postgresqld_instance_${name} " ]
67
+ -> Postgresql::Server::Database <| title == $default_database |>
68
+ -> Postgresql_conn_validator[" validate_service_is_running_instance_${name} " ]
69
+ -> Anchor[" postgresql::server::service::end::${name} " ]
63
70
}
64
71
}
65
72
Original file line number Diff line number Diff line change 16
16
-> Class[' postgresql::server::install' ]
17
17
-> Package[' postgresql-plperl' ]
18
18
-> Class[' postgresql::server::service' ]
19
- anchor { 'postgresql::server::plperl::end' : }
19
+ -> anchor { ' postgresql::server::plperl::end' : }
20
20
}
Original file line number Diff line number Diff line change 2
2
3
3
require 'spec_helper_acceptance'
4
4
5
- describe 'postgresql::server' , skip : 'IAC-1286' do
5
+ describe 'postgresql::server' do
6
6
let ( :pp ) do
7
7
<<-MANIFEST
8
8
class { 'postgresql::globals':
You can’t perform that action at this time.
0 commit comments