File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
manifests/server/instance Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 172
172
173
173
# This runs the initdb command, we use the existance of the PG_VERSION
174
174
# file to ensure we don't keep running this command.
175
- exec { 'postgresql_initdb' :
175
+ exec { "postgresql_initdb_instance_${name}" :
176
176
command => $initdb_command ,
177
177
creates => " ${datadir} /PG_VERSION" ,
178
178
user => $user ,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class { 'postgresql::server': }
65
65
end
66
66
67
67
it 'contains exec with specified working directory' do
68
- expect ( subject ) . to contain_exec ( 'postgresql_initdb ' ) . with (
68
+ expect ( subject ) . to contain_exec ( 'postgresql_initdb_instance_main ' ) . with (
69
69
cwd : '/var/tmp' ,
70
70
)
71
71
end
@@ -82,7 +82,7 @@ class { 'postgresql::server': }
82
82
end
83
83
84
84
it 'contains exec with default working directory' do
85
- expect ( subject ) . to contain_exec ( 'postgresql_initdb ' ) . with (
85
+ expect ( subject ) . to contain_exec ( 'postgresql_initdb_instance_main ' ) . with (
86
86
cwd : '/tmp' ,
87
87
)
88
88
end
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ class { 'postgresql::globals':
194
194
end
195
195
196
196
it 'contains proper initdb exec' do
197
- expect ( subject ) . to contain_exec ( 'postgresql_initdb ' )
197
+ expect ( subject ) . to contain_exec ( 'postgresql_initdb_instance_main ' )
198
198
end
199
199
end
200
200
You can’t perform that action at this time.
0 commit comments