Skip to content

Commit

Permalink
adding /var/run/redis for Debian based hosts
Browse files Browse the repository at this point in the history
* Fixes failing beaker test
* Add spec for new setting for Debian
  • Loading branch information
codylane authored and petems committed Nov 30, 2016
1 parent c2717f8 commit 4a36463
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
7 changes: 7 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@
owner => $::redis::config_owner,
}

file { '/var/run/redis':
ensure => 'directory',
owner => $::redis::config_owner,
group => $::redis::config_group,
mode => '0755',
}

if $::redis::ulimit {
augeas { 'redis ulimit' :
context => '/files/etc/default/redis-server',
Expand Down
19 changes: 18 additions & 1 deletion spec/classes/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@
})
end

it do
is_expected.to contain_file('/var/run/redis').with({
:ensure => 'directory',
:owner => 'redis',
:group => 'redis',
:mode => '0755',
})
end

end

when 'Ubuntu'
Expand All @@ -323,6 +332,15 @@

it { is_expected.to contain_apt__ppa(ppa_repo) }

it do
is_expected.to contain_file('/var/run/redis').with({
:ensure => 'directory',
:owner => 'redis',
:group => 'redis',
:mode => '0755',
})
end

when 'RedHat', 'CentOS', 'Scientific', 'OEL', 'Amazon'

it { is_expected.to contain_class('epel') }
Expand Down Expand Up @@ -1071,4 +1089,3 @@
end

end

0 comments on commit 4a36463

Please sign in to comment.