Ask Your Question
0

Selective service management

asked 2013-11-05 15:30:08 -0500

mczq gravatar image

I am trying to achieve selective service management with puppet. - be able to tell puppet to manage state of the services only 'once' - after first successful run no further service management should occur - be able to put system into 'maintenance' mode - no service management until further 'notice'

There are two approaches I can think of: 1) Include service definition based on custom fact, change custom fact value via file definition with pre-defined content and replace = false attribute. 2) Custom service wrapper - change path to start/stop/status scripts to a custom service wrapper

Any other ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-11-07 09:41:35 -0500

zwopiR gravatar image

set up a var "$noop" beeing true or false (i.e. provided by hiera) and use

noop => $noop

in your manifest

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-11-05 15:30:08 -0500

Seen: 100 times

Last updated: Nov 07 '13