Puppet Class: php::extra::s3cmd

Defined in:
manifests/extra/s3cmd.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/extra/s3cmd.pp', line 1

class php::extra::s3cmd
{
	define params(
		$user            = $title,
		$access_key      = 'ACCESS_KEY',
		$secret_key      = 'SECRET_KEY',
		$bucket_location = 'US'
	) {
		file {"php::extra::s3cmd::params::${user}":
			ensure  => present,
			path    => "/home/${user}/.s3cfg",
			owner   => $user,
			group   => $user,
			mode    => 0600,
			content => template('php/s3cmd/.s3cfg.erb'),
			require => Package['s3cmd'],
		}
	}
}