Files
puppet-designate/manifests/db/powerdns/sync.pp
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00

35 lines
880 B
Puppet

#
# Class to execute designate powerdns dbsync
#
# ==Parameters
#
# [*extra_params*]
# (optional) String of extra command line parameters to append
# to the designate-manage powerdns sync command. These will be
# inserted in the command line between 'designate-manage' and
# 'powerdns sync'.
# Defaults to undef
class designate::db::powerdns::sync(
$extra_params = undef,
) {
include ::designate::deps
include ::designate::params
exec { 'designate-powerdns-dbsync':
command => "designate-manage ${extra_params} powerdns sync",
path => '/usr/bin',
user => 'root',
refreshonly => true,
logoutput => on_failure,
subscribe => [
Anchor['designate::install::end'],
Anchor['designate::config::end'],
Anchor['designate::dbsync::begin']
],
notify => Anchor['designate::dbsync::end'],
}
}