Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
URI
Puppet
puppet-php
Commits
ca66745a
Commit
ca66745a
authored
Jan 5, 2018
by
Felipe Zipitria
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
f423ceaf
aafd620b
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.msync.yml
+1
-1
1 addition, 1 deletion
.msync.yml
.rubocop.yml
+1
-1
1 addition, 1 deletion
.rubocop.yml
.travis.yml
+1
-6
1 addition, 6 deletions
.travis.yml
Rakefile
+27
-0
27 additions, 0 deletions
Rakefile
manifests/pear.pp
+21
-19
21 additions, 19 deletions
manifests/pear.pp
with
51 additions
and
27 deletions
.msync.yml
+
1
−
1
View file @
ca66745a
modulesync_config_version
:
'
1.
5
.0'
modulesync_config_version
:
'
1.
6
.0'
This diff is collapsed.
Click to expand it.
.rubocop.yml
+
1
−
1
View file @
ca66745a
...
...
@@ -46,7 +46,7 @@ Style/HashSyntax:
Style/RedundantReturn
:
Enabled
:
True
Style
/EndOfLine
:
Layout
/EndOfLine
:
Enabled
:
False
Lint/AmbiguousOperator
:
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
+
1
−
6
View file @
ca66745a
...
...
@@ -4,12 +4,7 @@ dist: trusty
language
:
ruby
cache
:
bundler
before_install
:
-
bundle -v
-
rm Gemfile.lock ||
true
-
gem update --system
-
gem update bundler
-
gem --version
-
bundle -v
-
rm -f Gemfile.lock
script
:
-
'
bundle
exec
rake
$CHECK'
matrix
:
...
...
This diff is collapsed.
Click to expand it.
Rakefile
+
27
−
0
View file @
ca66745a
...
...
@@ -26,6 +26,12 @@ exclude_paths = %w(
PuppetLint
.
configuration
.
ignore_paths
=
exclude_paths
PuppetSyntax
.
exclude_paths
=
exclude_paths
desc
'Auto-correct puppet-lint offenses'
task
'lint:auto_correct'
do
PuppetLint
.
configuration
.
fix
=
true
Rake
::
Task
[
:lint
].
invoke
end
desc
'Run acceptance tests'
RSpec
::
Core
::
RakeTask
.
new
(
:acceptance
)
do
|
t
|
t
.
pattern
=
'spec/acceptance'
...
...
@@ -48,6 +54,27 @@ task test_with_coveralls: [:test] do
end
end
desc
"Print supported beaker sets"
task
'beaker_sets'
,
[
:directory
]
do
|
t
,
args
|
directory
=
args
[
:directory
]
metadata
=
JSON
.
load
(
File
.
read
(
'metadata.json'
))
(
metadata
[
'operatingsystem_support'
]
||
[]).
each
do
|
os
|
(
os
[
'operatingsystemrelease'
]
||
[]).
each
do
|
release
|
if
directory
beaker_set
=
"
#{
directory
}
/
#{
os
[
'operatingsystem'
].
downcase
}
-
#{
release
}
"
else
beaker_set
=
"
#{
os
[
'operatingsystem'
].
downcase
}
-
#{
release
}
-x64"
end
filename
=
"spec/acceptance/nodesets/
#{
beaker_set
}
.yml"
puts
beaker_set
if
File
.
exists?
filename
end
end
end
begin
require
'github_changelog_generator/task'
GitHubChangelogGenerator
::
RakeTask
.
new
:changelog
do
|
config
|
...
...
This diff is collapsed.
Click to expand it.
manifests/pear.pp
+
21
−
19
View file @
ca66745a
...
...
@@ -21,18 +21,19 @@ class php::pear (
if
$package
{
$package_name
=
$package
}
else
{
if
$facts
[
'os'
][
'name'
]
==
'Amazon'
{
# On Amazon Linux the package name is also just 'php-pear'.
# This would normally not be problematic but if you specify a
# package_prefix other than 'php' then it will fail.
$package_name
=
"php-
${::php::params::pear_package_suffix}
"
}
else
{
case
$facts
[
'os'
][
'family'
]
{
'Debian'
:
{
# Debian is a litte stupid: The pear package is called 'php-pear'
# even though others are called 'php5-fpm' or 'php5-dev'
$package_name
=
"php-
${::php::params::pear_package_suffix}
"
}
'Amazon'
:
{
# On Amazon Linux the package name is also just 'php-pear'.
# This would normally not be problematic but if you specify a
# package_prefix other than 'php' then it will fail.
$package_name
=
"php-
${::php::params::pear_package_suffix}
"
}
'FreeBSD'
:
{
# On FreeBSD the package name is just 'pear'.
$package_name
=
$::php::params::pear_package_suffix
...
...
@@ -43,6 +44,7 @@ class php::pear (
}
}
}
}
# Default PHP come with xml module and no seperate package for it
if
$facts
[
'os'
][
'name'
]
==
'Ubuntu'
and
versioncmp
(
$facts
[
'os'
][
'release'
][
'full'
],
'16.04'
)
>=
0
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment