Add .gitreview Rakefile files and update puppet coding style
All of the fat comma arrows (=) in a resource’s attribute/value list should be aligned. Put a trailing comma after the final resource parameter. Change-Id: If9567bf3c1978571970cac390df80f839627f45d Closes-Bug: #1334751
This commit is contained in:
parent
f55873584c
commit
99bc571b2e
|
@ -0,0 +1,4 @@
|
||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack-infra/puppet-yum.git
|
|
@ -0,0 +1,6 @@
|
||||||
|
require 'rubygems'
|
||||||
|
require 'puppetlabs_spec_helper/rake_tasks'
|
||||||
|
require 'puppet-lint/tasks/puppet-lint'
|
||||||
|
PuppetLint.configuration.fail_on_warnings = true
|
||||||
|
PuppetLint.configuration.send('disable_80chars')
|
||||||
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
@ -26,7 +26,7 @@ class yum (
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root'
|
group => 'root',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
#
|
#
|
||||||
define yum::repo (
|
define yum::repo (
|
||||||
$description = '',
|
$description = '',
|
||||||
$url_path = false,
|
$url_path = false,
|
||||||
$enabled = 0,
|
$enabled = 0,
|
||||||
$gpgcheck = 0,
|
$gpgcheck = 0,
|
||||||
$baseurl = absent,
|
$baseurl = absent,
|
||||||
$mirrorlist = absent,
|
$mirrorlist = absent,
|
||||||
$cron_hour = 2,
|
$cron_hour = 2,
|
||||||
$cron_minute = 0,
|
$cron_minute = 0,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -33,13 +33,13 @@ define yum::repo (
|
||||||
enabled => $enabled,
|
enabled => $enabled,
|
||||||
gpgcheck => $gpgcheck,
|
gpgcheck => $gpgcheck,
|
||||||
baseurl => $baseurl,
|
baseurl => $baseurl,
|
||||||
mirrorlist => $mirrorlist
|
mirrorlist => $mirrorlist,
|
||||||
}
|
}
|
||||||
|
|
||||||
cron { "reposync ${name}":
|
cron { "reposync ${name}":
|
||||||
command => "/usr/bin/reposync -r ${name} -p ${yum::repos_dir}; /usr/bin/createrepo -c /tmp/${name} ${yum::repos_dir}/${name}",
|
command => "/usr/bin/reposync -r ${name} -p ${yum::repos_dir}; /usr/bin/createrepo -c /tmp/${name} ${yum::repos_dir}/${name}",
|
||||||
hour => $cron_hour,
|
hour => $cron_hour,
|
||||||
minute => $cron_minute
|
minute => $cron_minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
if $url_path {
|
if $url_path {
|
||||||
|
@ -56,7 +56,7 @@ define yum::repo (
|
||||||
file { "${name} repo softlink":
|
file { "${name} repo softlink":
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
path => "${yum::repos_dir}/${url_path}",
|
path => "${yum::repos_dir}/${url_path}",
|
||||||
target => "${yum::repos_dir}/${name}"
|
target => "${yum::repos_dir}/${name}",
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue