class pantin::aptly($ensure = 'present') {
	pantin::apache_http_server::www { 'apt-minmaxiste':
		ensure => $ensure,
	}

	file { '/var/www/aptly':
		mode => '0755',
		owner => 'root',
		group => 'root',
		force => true,
		recurse => $ensure ? {
			'absent' => 'true',
			default => false,
		},
		ensure => $ensure ? {
			'present' => 'directory',
			default => absent,
		},
	}
	file { '/var/www/aptly-minmaxiste':
		mode => '0755',
		owner => 'root',
		group => 'root',
		force => true,
		recurse => $ensure ? {
			'absent' => 'true',
			default => false,
		},
		ensure => $ensure ? {
			'present' => 'directory',
			default => absent,
		},
	}
}
