Updates docs for SR1 with final revision
[genesis.git] / fuel / build / f_example_control_bond / puppet / modules / opnfv / manifests / control-bond.pp
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 ##############################################################################
10
11 # Class: opnfv::control-bond
12 #
13 # Bridge control and management networks together using OVS.
14 #
15 #
16
17 class opnfv::control-bond {
18   notify { '*** In Opnfv::control-bond-start ***': }
19
20   file { "/etc/init.d/control-bond":
21          source => "puppet:///modules/opnfv/control-bond",
22          owner  => 'root',
23          group  => 'root',
24          mode   => '0755',
25          notify => Service["control-bond"]
26        }
27
28
29   service { "control-bond":
30         ensure => running,
31         require => [ File["/etc/init.d/control-bond"], Service["openvswitch-service"] ],
32   }
33
34   # Only start scripts - we don't want to bring down
35   # bridge during shutdown
36
37   file { "/etc/rc2.d/S18control-bond":
38          ensure => 'link',
39          target => '/etc/init.d/control-bond',
40   }
41
42   file { "/etc/rc3.d/S18control-bond":
43          ensure => 'link',
44          target => '/etc/init.d/control-bond',
45   }
46
47   file { "/etc/rc4.d/S18control-bond":
48          ensure => 'link',
49          target => '/etc/init.d/control-bond',
50   }
51
52   file { "/etc/rc5.d/S18control-bond":
53          ensure => 'link',
54          target => '/etc/init.d/control-bond',
55   }
56 }