I'm using the puppetlab-tomcat module.when i want to start tomcat ,i
will kick the agent to run this code.
tomcat::service{'default':
service_ensure => true,
catalina_base =>'/opt/apache-tomcat/tomcat',
}
if i want to stop,i will change the service_ensure to false.
but if i want to restart tomcat in one .pp file, just run kick command
only once, i have to define two service because service name can't be
duplicate declared. so i change the code:
tomcat::service{'default':
service_ensure => false,
catalina_base =>'/opt/apache-tomcat/tomcat',
}
->
tomcat::service{'restart':
service_ensure => true,
catalina_base =>'/opt/apache-tomcat/tomcat',
}
after i using this code, i find i can't stop tomcat using this code
tomcat::service{'default':
service_ensure => false,
catalina_base =>'/opt/apache-tomcat/tomcat',
}
because the service named restart is running, not default, so i can't
stop the tomcat service. so i want to know how to restart tomcat just
using only one kick command.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/8ce7092e-c16c-423f-b7c9-81976916e795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.