Skip to content

Commit

Permalink
Add basic FreeBSD support
Browse files Browse the repository at this point in the history
  • Loading branch information
leepa committed Feb 2, 2015
1 parent 2c4d81b commit 3ce160a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,30 @@
$service_user = 'redis'
}

'FreeBSD': {
$config_dir = '/usr/local/etc/redis'
$config_dir_mode = '0755'
$config_file = '/usr/local/etc/redis.conf'
$config_file_mode = '0644'
$config_group = 'root'
$config_owner = 'root'
$daemonize = false
$package_ensure = 'present'
$package_name = 'redis'
$sentinel_config_file = '/usr/local/etc/redis-sentinel.conf'
$sentinel_config_file_orig = '/usr/local/etc/redis-sentinel.conf.puppet'
$sentinel_init_script = undef
$sentinel_package_name = 'redis'
$sentinel_package_ensure = 'present'
$service_enable = true
$service_ensure = 'running'
$service_group = 'redis'
$service_hasrestart = true
$service_hasstatus = true
$service_name = 'redis'
$service_user = 'redis'
}

default: {
fail "Operating system ${::operatingsystem} is not supported yet."
}
Expand Down

0 comments on commit 3ce160a

Please sign in to comment.