Commit f3d4c00e authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

postfix::augeas

  Add dependency on puppet-augeas
  Add spec for postfix::augeas
parent 89fdb4e4
fixtures:
repositories:
"augeas": "git://github.com/camptocamp/puppet-augeas.git"
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
symlinks:
"postfix": "#{source_dir}"
class postfix::augeas {
augeas::lens {'postfix_transport':
ensure => present,
lens_source => 'puppet:///modules/postfix/lenses/postfix_transport.aug',
test_source => 'puppet:///modules/postfix/lenses/test_postfix_transport.aug',
lens_source => "puppet:///modules/${module_name}/lenses/postfix_transport.aug",
test_source => "puppet:///modules/${module_name}/lenses/test_postfix_transport.aug",
stock_since => '1.0.0',
}
augeas::lens {'postfix_virtual':
ensure => present,
lens_source => 'puppet:///modules/postfix/lenses/postfix_virtual.aug',
test_source => 'puppet:///modules/postfix/lenses/test_postfix_virtual.aug',
lens_source => "puppet:///modules/${module_name}/lenses/postfix_virtual.aug",
test_source => "puppet:///modules/${module_name}/lenses/test_postfix_virtual.aug",
stock_since => '1.0.0',
}
}
require 'spec_helper'
describe 'postfix::augeas' do
let (:facts) { {
:operatingsystem => 'Debian',
:osfamily => 'Debian',
} }
it { should contain_augeas__lens('postfix_transport').with(
:ensure => 'present',
:lens_source => 'puppet:///modules/postfix/lenses/postfix_transport.aug',
:test_source => 'puppet:///modules/postfix/lenses/test_postfix_transport.aug',
:stock_since => '1.0.0'
) }
it { should contain_augeas__lens('postfix_virtual').with(
:ensure => 'present',
:lens_source => 'puppet:///modules/postfix/lenses/postfix_virtual.aug',
:test_source => 'puppet:///modules/postfix/lenses/test_postfix_virtual.aug',
:stock_since => '1.0.0'
) }
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment