Commit 72d465f1 authored by mh's avatar mh

we can use this one once we have a newer concat version

parent 62995f16
forge 'https://forgeapi.puppetlabs.com'
mod 'puppetlabs-stdlib'
mod 'puppetlabs-concat', '~> 1.2.5'
if !ENV['PUPPET_VERSION'].nil? && ENV['PUPPET_VERSION'].to_i < 4
mod 'puppetlabs-concat', '~> 1.2.5'
else
mod 'puppetlabs-concat'
end
mod 'puppet-healthcheck'
mod 'scl', :git => 'https://git-ipuppet.immerda.ch/module-scl'
mod 'selinux', :git => 'https://git-ipuppet.immerda.ch/module-selinux'
......
......@@ -18,11 +18,15 @@ class schleuder::client(
owner => root,
group => root,
mode => '0600',
#todo: enable once concat supports that
#seltype => 'schleuder_data_t',
} -> package{'schleuder-cli':
ensure => installed,
}
# old concat versions don't support that yet
if versioncmp($puppetversion,'4.0') >= 0 {
Concat['/root/.schleuder-cli/schleuder-cli.yml']{
seltype => 'schleuder_data_t',
}
}
# we use a fragement to trick around the fingerprint
# into one run
......
......@@ -4,6 +4,7 @@ describe 'schleuder' do
let(:facts){
{
:operatingsystem => 'CentOS',
:puppetversion => ENV['PUPPET_VERSION'].nil? ? '5.0.0' : ENV['PUPPET_VERSION'],
:concat_basedir => '/tmp',
}
}
......
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