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
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
||||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack-infra/puppet-yum.git
|
6
Rakefile
Normal file
6
Rakefile
Normal file
@ -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,
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
group => 'root'
|
||||
group => 'root',
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,12 +16,12 @@
|
||||
#
|
||||
define yum::repo (
|
||||
$description = '',
|
||||
$url_path = false,
|
||||
$enabled = 0,
|
||||
$gpgcheck = 0,
|
||||
$baseurl = absent,
|
||||
$mirrorlist = absent,
|
||||
$cron_hour = 2,
|
||||
$url_path = false,
|
||||
$enabled = 0,
|
||||
$gpgcheck = 0,
|
||||
$baseurl = absent,
|
||||
$mirrorlist = absent,
|
||||
$cron_hour = 2,
|
||||
$cron_minute = 0,
|
||||
) {
|
||||
|
||||
@ -33,13 +33,13 @@ define yum::repo (
|
||||
enabled => $enabled,
|
||||
gpgcheck => $gpgcheck,
|
||||
baseurl => $baseurl,
|
||||
mirrorlist => $mirrorlist
|
||||
mirrorlist => $mirrorlist,
|
||||
}
|
||||
|
||||
cron { "reposync ${name}":
|
||||
command => "/usr/bin/reposync -r ${name} -p ${yum::repos_dir}; /usr/bin/createrepo -c /tmp/${name} ${yum::repos_dir}/${name}",
|
||||
hour => $cron_hour,
|
||||
minute => $cron_minute
|
||||
minute => $cron_minute,
|
||||
}
|
||||
|
||||
if $url_path {
|
||||
@ -56,7 +56,7 @@ define yum::repo (
|
||||
file { "${name} repo softlink":
|
||||
ensure => 'link',
|
||||
path => "${yum::repos_dir}/${url_path}",
|
||||
target => "${yum::repos_dir}/${name}"
|
||||
target => "${yum::repos_dir}/${name}",
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user