Puppet Class: myapp::php

Defined in:
manifests/php.pp

Summary

A short summary of the purpose of this class

Overview

A description of what this class does

Examples:

include myapp::php

Parameters:

  • version (String) (defaults to: 'latest')


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/php.pp', line 7

class myapp::php (String $version = 'latest') {
  include apache::mod::php

  file { '/var/www/myapp/index.php':
    ensure  => file,
    content => epp("${module_name}/index.php.epp", {'name' => 'MyApp', 'version' => $version}),
    mode    =>   '0644'
  }

  file { '/var/www/myapp/info.php':
    ensure => file,
    source => "puppet:///modules/${module_name}/info.php",
    mode   =>   '0644'
  }
}