Defined Type: zf::tool::install

Defined in:
manifests/tool.pp

Overview

Parameters:

  • major (Any) (defaults to: $title)


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

define install($major = $title)
	{
		if $major == 1 {
			file {"$zf::params::toolbin":
				ensure => link,
				target => "${zf::params::zenddir}/current/bin/zf.sh",
			}
		} else {
			wget::fetch {'wget-zf2':
				source      => 'https://packages.zendframework.com/zftool.phar',
				destination => '/usr/bin/zf',
				before      => Exec['chmod-zftool'],
			}   
			exec {'chmod-zftool':
				command => 'chmod 755 /usr/bin/zf',
				path    => '/bin',
			}
		}
	}