Puppet Class: profile::labs::downloadserver

Defined in:
modules/profile/manifests/labs/downloadserver.pp

Overview

Simple file server for the 'download' project

filtertags: labs-project-download



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/labs/downloadserver.pp', line 4

class profile::labs::downloadserver {
    labs_lvm::volume { 'srv':
        mountat => '/srv',
    }

    file { '/srv/public_files':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        require => Labs_lvm::Volume['srv'],
    }

    nginx::site { 'downloadserver':
        source  => 'puppet:///modules/profile/labs/downloadserver.nginx',
        require => Labs_lvm::Volume['srv'],
    }
}