Skip to content

Commit

Permalink
Merge pull request #209 from eglynn/master
Browse files Browse the repository at this point in the history
Automatic update :: advancing puppet-redis to latest master upstream
  • Loading branch information
xbezdick committed Jan 12, 2015
2 parents fd29e1f + a2a73a6 commit fcceba1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ mod 'rabbitmq',
:git => 'https://github.com/puppetlabs/puppetlabs-rabbitmq.git'

mod 'redis',
:commit => 'f4ffa1b907281472c8572c7dbcee8d2f454f3e27',
:commit => 'd72af9ab3c2911b6dc18c5cc12e700630ebdcfb2',
:git => 'https://github.com/arioch/puppet-redis.git'

mod 'rsync',
Expand Down
18 changes: 11 additions & 7 deletions redis/manifests/sentinel.pp
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,23 @@
$working_dir = $::redis::params::sentinel_working_dir,
) inherits redis::params {


package { $::redis::params::package_name:
ensure => $::redis::params::package_ensure,
}

file {
$config_file_orig:
ensure => present,
content => template($conf_template);

$config_file:
owner => $service_user,
group => $service_group,
mode => $config_file_mode;
owner => $service_user,
group => $service_group,
mode => $config_file_mode,
content => template($conf_template),
require => Package[$::redis::params::package_name];
}

exec {
"cp ${config_file_orig} ${config_file}":
"cp -p ${config_file_orig} ${config_file}":
path => '/usr/bin:/bin',
subscribe => File[$config_file_orig],
notify => Service[$service_name],
Expand Down
13 changes: 11 additions & 2 deletions redis/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arioch-redis",
"version": "1.0.2",
"version": "1.0.3",
"author": "Tom De Vylder",
"summary": "Redis module",
"license": "Apache License, Version 2.0",
Expand Down Expand Up @@ -37,6 +37,13 @@
"7.5"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"14.10"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
Expand All @@ -61,6 +68,8 @@
}
],
"dependencies": [

{
"name": "puppetlabs/apt"
}
]
}
7 changes: 2 additions & 5 deletions redis/spec/classes/redis_sentinel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,12 @@

it { should contain_file('/etc/redis/redis-sentinel.conf.puppet').with(
'ensure' => 'present',
'mode' => '0644',
'owner' => 'redis',
'content' => $expected_noparams_content
)
}

it { should contain_file('/etc/redis/redis-sentinel.conf').with(
'mode' => '0644'
)
}

it { should contain_service('redis-sentinel').with(
'ensure' => 'running',
'enable' => 'true',
Expand Down

0 comments on commit fcceba1

Please sign in to comment.