Hi,
Please see my init.pp file.
First I am stopping the Jboss server and then deleting few folders,copying
files and then trying to start the service.
When I place file copy statements it is not working. With out file copy
statements I am able to stop the service and start the service.
I am not sure why it is happening like that.
Can any one give us suggestions?
I am using below command for the execution:
*sudo puppet agent -t --waitforcert=60 (with debug)*
Service stop and folder deletion was successfull.But When I Included the
file copy statements like below Service is not getting started.
(
file
{
"/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/deploy/RulesService-1.0.esb":
ensure => "present",
mode => "0644",
owner => "katusa02",
group => "katusa02",
source => "puppet://$puppetserver/modules/httpd/RulesService-1.0.esb",
}
)
*Init.pp*
class httpd
{
service{
"stopjavaservice.sh":
ensure =>"stopped",
}
file
{
"/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/tmp":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/work":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/log":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/data":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/JBossRuntime/log":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/JBossRuntime/data":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
file
{
"/home/katusa02/JBossRuntime/server.log":
ensure => "absent",
force => "true",
recurse => "true",
owner => "katusa02",
}
service{
"startjavaservice.sh":
ensure =>"running",
}
}
Am i Missing any thing here? Do I need to wait for some amount of time for
each run?
Regards,
Sathish.
--
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/36548962-43e4-4970-ad4d-a842aafaf713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.