More puppet-lint formatting fixes

Yet another bunch of puppet-lint fixes.

Change-Id: I9574cf1c5e35620b12e4d5e2bd6b2eb4d320c935
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/13988
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Paul Belanger 2012-10-03 11:49:33 -04:00 committed by Jenkins
parent f892d7060a
commit fb0e6e26e2
2 changed files with 21 additions and 18 deletions

View File

@ -1,19 +1,19 @@
class planet { class planet {
package { 'planet-venus': package { 'planet-venus':
ensure => present ensure => present,
} }
file { '/srv/planet': file { '/srv/planet':
ensure => directory ensure => directory,
} }
file { '/var/lib/planet': file { '/var/lib/planet':
ensure => directory ensure => directory,
} }
file { '/var/log/planet': file { '/var/log/planet':
ensure => directory ensure => directory,
} }
} }
# vim:sw=2:ts=2:expandtab:textwidth=79

View File

@ -1,26 +1,29 @@
define planet::site($git_url, $vhost_name="planet.${name}.org") { define planet::site(
$git_url,
$vhost_name = "planet.${name}.org"
) {
include apache include apache
include remove_nginx include remove_nginx
apache::vhost { $vhost_name: apache::vhost { $vhost_name:
port => 80, docroot => "/srv/planet/${name}",
port => 80,
priority => '50', priority => '50',
docroot => "/srv/planet/${name}", require => File['/srv/planet'],
require => File["/srv/planet"],
} }
vcsrepo { "/var/lib/planet/${name}": vcsrepo { "/var/lib/planet/${name}":
ensure => present, ensure => present,
provider => git, provider => git,
source => $git_url, require => File['/var/lib/planet'],
require => File['/var/lib/planet'], source => $git_url,
} }
cron { "update_planet_${name}": cron { "update_planet_${name}":
user => root, command => "date >> /var/log/planet/${name}.log && cd /var/lib/planet/${name} && git pull -q --ff-only && planet /var/lib/planet/${name}/planet.ini >> /var/log/planet/${name}.log 2>&1",
minute => "*/5", minute => '*/5',
command => "date >> /var/log/planet/${name}.log && cd /var/lib/planet/${name} && git pull -q --ff-only && planet /var/lib/planet/${name}/planet.ini >> /var/log/planet/${name}.log 2>&1" user => 'root',
} }
} }
# vim:sw=2:ts=2:expandtab:textwidth=79