1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 # Class: opnfv::control-bond
13 # Bridge control and management networks together using OVS.
17 class opnfv::control-bond {
18 notify { '*** In Opnfv::control-bond-start ***': }
20 file { "/etc/init.d/control-bond":
21 source => "puppet:///modules/opnfv/control-bond",
25 notify => Service["control-bond"]
29 service { "control-bond":
31 require => [ File["/etc/init.d/control-bond"], Service["openvswitch-service"] ],
34 # Only start scripts - we don't want to bring down
35 # bridge during shutdown
37 file { "/etc/rc2.d/S18control-bond":
39 target => '/etc/init.d/control-bond',
42 file { "/etc/rc3.d/S18control-bond":
44 target => '/etc/init.d/control-bond',
47 file { "/etc/rc4.d/S18control-bond":
49 target => '/etc/init.d/control-bond',
52 file { "/etc/rc5.d/S18control-bond":
54 target => '/etc/init.d/control-bond',