Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Puppet Camptocamp Postfix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Projets publics
Puppet Camptocamp Postfix
Commits
0485a8d2
Commit
0485a8d2
authored
Apr 14, 2015
by
Mickaël Canévet
Browse files
Options
Downloads
Patches
Plain Diff
Use file() instead of fileserver
parent
f48cbe51
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+2
-0
2 additions, 0 deletions
.travis.yml
manifests/augeas.pp
+13
-11
13 additions, 11 deletions
manifests/augeas.pp
spec/classes/postfix_augeas_spec.rb
+8
-8
8 additions, 8 deletions
spec/classes/postfix_augeas_spec.rb
with
23 additions
and
19 deletions
.travis.yml
+
2
−
0
View file @
0485a8d2
...
@@ -9,6 +9,8 @@ matrix:
...
@@ -9,6 +9,8 @@ matrix:
include
:
include
:
-
rvm
:
1.8.7
-
rvm
:
1.8.7
env
:
PUPPET_GEM_VERSION="~> 3.0" FACTER_GEM_VERSION="~> 1.7.0"
env
:
PUPPET_GEM_VERSION="~> 3.0" FACTER_GEM_VERSION="~> 1.7.0"
-
rvm
:
1.9.3
env
:
PUPPET_GEM_VERSION="~> 3.6.0"
-
rvm
:
1.9.3
-
rvm
:
1.9.3
env
:
PUPPET_GEM_VERSION="~> 3.0"
env
:
PUPPET_GEM_VERSION="~> 3.0"
-
rvm
:
2.0.0
-
rvm
:
2.0.0
...
...
This diff is collapsed.
Click to expand it.
manifests/augeas.pp
+
13
−
11
View file @
0485a8d2
...
@@ -2,21 +2,23 @@
...
@@ -2,21 +2,23 @@
# This class provides the augeas lenses used by the postfix class
# This class provides the augeas lenses used by the postfix class
#
#
class
postfix::augeas
{
class
postfix::augeas
{
$module_path
=
get_module_path
(
$module_name
)
augeas::lens
{
'postfix_transport'
:
augeas::lens
{
'postfix_transport'
:
ensure
=>
present
,
ensure
=>
present
,
lens_
source
=>
'puppet:///modules/postfix
/lenses/postfix_transport.aug
'
,
lens_
content
=>
file
(
"
${module_path}
/files
/lenses/postfix_transport.aug
"
)
,
test_
source
=>
'puppet:///modules/postfix
/lenses/test_postfix_transport.aug
'
,
test_
content
=>
file
(
"
${module_path}
/files
/lenses/test_postfix_transport.aug
"
)
,
stock_since
=>
'1.0.0'
,
stock_since
=>
'1.0.0'
,
}
}
augeas::lens
{
'postfix_virtual'
:
augeas::lens
{
'postfix_virtual'
:
ensure
=>
present
,
ensure
=>
present
,
lens_
source
=>
'puppet:///modules/postfix
/lenses/postfix_virtual.aug
'
,
lens_
content
=>
file
(
"
${module_path}
/files
/lenses/postfix_virtual.aug
"
)
,
test_
source
=>
'puppet:///modules/postfix
/lenses/test_postfix_virtual.aug
'
,
test_
content
=>
file
(
"
${module_path}
/files
/lenses/test_postfix_virtual.aug
"
)
,
stock_since
=>
'1.0.0'
,
stock_since
=>
'1.0.0'
,
}
}
augeas::lens
{
'postfix_canonical'
:
augeas::lens
{
'postfix_canonical'
:
ensure
=>
present
,
ensure
=>
present
,
lens_
source
=>
'puppet:///modules/postfix
/lenses/postfix_canonical.aug
'
,
lens_
content
=>
file
(
"
${module_path}
/files
/lenses/postfix_canonical.aug
"
)
,
test_
source
=>
'puppet:///modules/postfix
/lenses/test_postfix_canonical.aug
'
,
test_
content
=>
file
(
"
${module_path}
/files
/lenses/test_postfix_canonical.aug
"
)
,
}
}
}
}
This diff is collapsed.
Click to expand it.
spec/classes/postfix_augeas_spec.rb
+
8
−
8
View file @
0485a8d2
...
@@ -18,14 +18,14 @@ describe 'postfix::augeas' do
...
@@ -18,14 +18,14 @@ describe 'postfix::augeas' do
it
{
is_expected
.
to
contain_augeas__lens
(
'postfix_transport'
).
with
({
it
{
is_expected
.
to
contain_augeas__lens
(
'postfix_transport'
).
with
({
:ensure
=>
'present'
,
:ensure
=>
'present'
,
:lens_
source
=>
'puppet:///modules/postfix/lenses
/postfix
_
transport
.aug'
,
:lens_
content
=>
%r{Parses /etc
/postfix
/
transport
}
,
:test_
source
=>
'puppet:///modules/postfix/lenses/test_p
ostfix_
t
ransport
.aug'
,
:test_
content
=>
%r{Provides unit tests and examples for the <P
ostfix_
T
ransport
> lens.}
,
:stock_since
=>
'1.0.0'
,
:stock_since
=>
'1.0.0'
,
}
)
}
}
)
}
it
{
is_expected
.
to
contain_augeas__lens
(
'postfix_virtual'
).
with
({
it
{
is_expected
.
to
contain_augeas__lens
(
'postfix_virtual'
).
with
({
:ensure
=>
'present'
,
:ensure
=>
'present'
,
:lens_
source
=>
'puppet:///modules/postfix/lenses
/postfix
_
virtual
.aug'
,
:lens_
content
=>
%r{Parses /etc
/postfix
/
virtual
}
,
:test_
source
=>
'puppet:///modules/postfix/lenses/test_p
ostfix_
v
irtual
.aug'
,
:test_
content
=>
%r{Provides unit tests and examples for the <P
ostfix_
V
irtual
> lens.}
,
:stock_since
=>
'1.0.0'
,
:stock_since
=>
'1.0.0'
,
})
}
})
}
end
end
...
...
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