Sha256: cabd91b825988b52e27945add4e0dc50c162cb41afd76b070ebc2ba38ea69c6b

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

class memcached(
  $package_ensure  = 'present',
  $logfile         = '/var/log/memcached.log',
  $max_memory      = false,
  $lock_memory     = false,
  $listen_ip       = '0.0.0.0',
  $tcp_port        = 11211,
  $udp_port        = 11211,
  $user            = $::memcached::params::user,
  $max_connections = '8192',
  $verbosity       = undef,
  $unix_socket     = undef,
  $install_dev     = false
) inherits memcached::params {

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

  if $install_dev {
    package { $memcached::params::dev_package_name:
      ensure  => $package_ensure,
      require => Package[$memcached::params::package_name]
    }
  }

  file { $memcached::params::config_file:
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template($memcached::params::config_tmpl),
    require => Package[$memcached::params::package_name],
  }

  service { $memcached::params::service_name:
    ensure     => running,
    enable     => true,
    hasrestart => true,
    hasstatus  => false,
    subscribe  => File[$memcached::params::config_file],
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-boxen-0.0.4 puppet-modules/memcached/manifests/init.pp
vagrant-boxen-0.0.3 puppet-modules/memcached/manifests/init.pp
vagrant-boxen-0.0.2 puppet/modules/memcached/manifests/init.pp
vagrant-boxen-0.0.1 puppet/modules/memcached/manifests/init.pp