Merge "Corrected links associated with release docs. To be updated along with the...
[genesis.git] / common / puppet-opnfv / manifests / odl_docker.pp
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # daniel.smith@ericsson.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 class opnfv::odl_docker
11 {
12     case $::fuel_settings['role'] {
13       /controller/: {
14
15         file { "/opt":
16                 ensure => "directory",
17              }
18
19         file { "/opt/opnfv":
20                 ensure => "directory",
21                 owner => "root",
22                 group => "root",
23                 mode => 777,
24              }
25
26         file { "/opt/opnfv/odl":
27                 ensure => "directory",
28              }
29
30         file { "/opt/opnfv/odl/odl_docker_image.tar":
31                 ensure => present,
32                 source => "/etc/puppet/modules/opnfv/odl_docker/odl_docker_image.tar",
33                 mode => 750,
34              }
35
36         file { "/opt/opnfv/odl/docker-latest":
37                 ensure => present,
38                 source => "/etc/puppet/modules/opnfv/odl_docker/docker-latest",
39                 mode => 750,
40              }
41
42         file { "/opt/opnfv/odl/start_odl_container.sh":
43                 ensure => present,
44                 source => "/etc/puppet/modules/opnfv/scripts/start_odl_container.sh",
45                 mode => 750,
46              }
47   }
48  }
49 }
50