Hello, I am trying to make it so that more than 1 instance of memcached can run on a single service. I have a special init.d script that can handle this, but want to define the service multiple times in a puppet class. Here is the definition I am using:
service { "$service_name": name => "memcached", ensure => running, enable => true, start => "$init_script start $service_name", stop => "$init_script stop $service_name", status => "$init_script status $service_name", restart => "$init_script restart $service_name", hasstatus => true, require => [Package[memcached],File["$file_name"]] } I used the $service_name so that the defintion would be unique, but now puppet is throwing this error: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Service[11411] to ["memcached"]; resource ["Service", ["memcached"]] already exists at How can I achieve what I am trying to achieve? Any ideas? Thanks, Bryan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.