Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 9f38acc

Browse files
committed
Merge pull request #57 from sambauers/master
Remove version based PHP and PHP::FPM classes.
2 parents 476a6b4 + 1839f54 commit 9f38acc

File tree

390 files changed

+173
-3224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

390 files changed

+173
-3224
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ The following boxen modules are required if optional PHP extensions are used:
2525

2626
```puppet
2727
# Install php 5.4
28-
include php::5_4
28+
php::version { '5.4': }
2929
3030
# Install a couple of specific minor versions
31-
include php::5_3_17
32-
include php::5_4_11
31+
php::version { '5.3.17': }
32+
php::version { '5.4.11': }
3333
3434
# Install Composer globally on your PATH
3535
include php::composer
@@ -52,11 +52,11 @@ php::extension::apc { "apc for ${version}":
5252
}
5353
5454
# Set up PHP-FPM as a service running a specific version of PHP
55-
include php::fpm::5_3_15
55+
php::fpm { '5.3.15': }
5656
5757
# Run multiple PHP-FPM services
58-
include php::fpm::5_4_11
59-
include php::fpm::5_3_23
58+
php::fpm { '5.4.11': }
59+
php::fpm { '5.3.23': }
6060
6161
# Spin up a PHP-FPM pool for a project
6262
# Ensures:

data/common.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ php::config::composer:
1212
checksum: '05df355b5277c8c9012470e699fa5494'
1313
php::config::phpenv:
1414
revision: '6499bb6c7b645af3f4e67f7e17708d5ee208453f'
15+
php::config::secure_versions:
16+
'5.6': '5.6.5'
17+
'5.5': '5.5.20'
18+
'5.4': '5.4.36'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Puppet::Parser::Functions
2+
newfunction(:php_fpm_require) do |args|
3+
Puppet::Parser::Functions.function('ensure_resource')
4+
function_ensure_resource( [ 'php::fpm', args[0] ] )
5+
end
6+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Puppet::Parser::Functions
2+
newfunction(:php_require) do |args|
3+
Puppet::Parser::Functions.function('ensure_resource')
4+
function_ensure_resource( [ 'php::version', args[0] ] )
5+
end
6+
end

manifests/5_3.pp

Lines changed: 0 additions & 16 deletions
This file was deleted.

manifests/5_3_10.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

manifests/5_3_11.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

manifests/5_3_12.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

manifests/5_3_13.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

manifests/5_3_14.pp

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)