Hi all, I'm trying to configure Puppet to allow the creation of multiple memcached instances on a system. However, I'm running into the message that only subclasses can override parameters. Perhaps I'm going about this the wrong way, or maybe I just have something slightly wrong. Any advice is welcome.
class memcached { package { 'memcached': ensure => present } # do not want basic configuration file { '/etc/memcached.conf': ensure => absent } service { 'memcached': ensure => running, enable => true, require => Package['memcached'], } } define memcached::instance () { include memcached $conf = "/etc/memcached_${name}.conf" file { $conf: ensure => present } * Service['memcached'] { require +> File[$conf] }* } # create first instance in file /etc/memcached_en.conf memcached::instance { 'en': } The other thing I'd like to do is have Service['memcached'] set to NOT start unless there is at least one instance, i.e. not start until after the first instance's config file is in place, but that's not a showstopper. Thanks, Justin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/fic-AkDAfAoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.