Can we start/stop Database using the puppet manifest

asked 2017-08-31 10:47:21 -0600

Mahender gravatar image


Could you please let me know can we manage the database start/stop using the puppet manifest?

It has to stop/start all the services like asm disk groups, asm, listener etc.. All the services has to go down and all the services has to come up.. when we use the script or manifest.

Could you please help me the approach for automating the database start/stop process.

Thanks, Mahender

edit retag flag offensive close merge delete


I've no clue what you're talking about. Do you wanna manage a service. A service, which traditionally's got its start/stop script in /etc/init.d/database? When shall it be started, when stopped? Can you draw a timeline?

Kai Burghardt gravatar imageKai Burghardt ( 2017-08-31 15:47:40 -0600 )edit

So you mean to say that calling the start/stop scripts using the manifest correct?

Mahender gravatar imageMahender ( 2017-08-31 16:52:47 -0600 )edit

You usually use the `service` resource type: It will figure out which scripts, which methods to use in order to start/stop a service. You (normally) don't use a `exec` resource for that.

Kai Burghardt gravatar imageKai Burghardt ( 2017-09-01 05:36:13 -0600 )edit

If he is trying to stop a series of services in a certain order, and then bring them back up in the reverse order, that is a lot more difficult to do (as you can only define each service resource once)

DarylW gravatar imageDarylW ( 2017-09-01 07:39:03 -0600 )edit

We trying to stop the services but not in any particular order. If the services gets stopped and start after issuing the command, thats should be good.

Mahender gravatar imageMahender ( 2017-09-01 11:30:33 -0600 )edit