Skip to content

Commit 5be3832

Browse files
committed
puppet-lint: remove anchors
1 parent b1bb343 commit 5be3832

1 file changed

Lines changed: 22 additions & 34 deletions

File tree

manifests/init.pp

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,23 @@
170170
$final_cli_settings = $real_settings + $cli_settings
171171

172172
if $manage_repos {
173-
class { 'php::repo': }
174-
-> Anchor['php::begin']
173+
contain php::repo
175174
}
176175

177-
anchor { 'php::begin': }
178-
-> class { 'php::packages': }
176+
class { 'php::packages': }
179177
-> class { 'php::cli':
180178
settings => $final_cli_settings,
181179
}
182-
-> anchor { 'php::end': }
180+
contain php::packages
181+
contain php::cli
183182

184183
# Configure global PHP settings in php.ini
185184
if $facts['os']['family'] != 'Debian' {
186185
Class['php::packages']
187186
-> class {'php::global':
188187
settings => $real_settings,
189188
}
190-
-> Anchor['php::end']
189+
contain php::global
191190
}
192191

193192
if $fpm { contain 'php::fpm' }
@@ -197,48 +196,37 @@
197196
fail('Enabling both cli and embedded sapis is not currently supported')
198197
}
199198

200-
Anchor['php::begin']
201-
-> class { 'php::embedded':
202-
settings => $real_settings,
203-
}
204-
-> Anchor['php::end']
199+
class { 'php::embedded':
200+
settings => $real_settings,
201+
}
202+
contain php::embedded
205203
}
206204
if $dev {
207-
Anchor['php::begin']
208-
-> class { 'php::dev': }
209-
-> Anchor['php::end']
205+
contain php::dev
210206
}
211207
if $composer {
212-
Anchor['php::begin']
213-
-> class { 'php::composer':
214-
proxy_type => $proxy_type,
215-
proxy_server => $proxy_server,
216-
}
217-
-> Anchor['php::end']
208+
class { 'php::composer':
209+
proxy_type => $proxy_type,
210+
proxy_server => $proxy_server,
211+
}
218212
}
219213
if $pear {
220-
Anchor['php::begin']
221-
-> class { 'php::pear':
222-
ensure => $pear_ensure,
223-
}
224-
-> Anchor['php::end']
214+
class { 'php::pear':
215+
ensure => $pear_ensure,
216+
}
225217
}
226218
if $phpunit {
227-
Anchor['php::begin']
228-
-> class { 'php::phpunit': }
229-
-> Anchor['php::end']
219+
contain php::phpunit
230220
}
231221
if $apache_config {
232-
Anchor['php::begin']
233-
-> class { 'php::apache_config':
234-
settings => $real_settings,
235-
}
236-
-> Anchor['php::end']
222+
class { 'php::apache_config':
223+
settings => $real_settings,
224+
}
225+
contain php::apache_config
237226
}
238227

239228
create_resources('php::extension', $real_extensions, {
240229
require => Class['php::cli'],
241-
before => Anchor['php::end']
242230
})
243231

244232
# On FreeBSD purge the system-wide extensions.ini. It is going

0 commit comments

Comments
 (0)