diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..cebd171 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack-infra/puppet-yum.git diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..51eca37 --- /dev/null +++ b/Rakefile @@ -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') diff --git a/manifests/init.pp b/manifests/init.pp index 372f2ec..1cd56ae 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,7 +26,7 @@ class yum ( ensure => directory, mode => '0755', owner => 'root', - group => 'root' + group => 'root', } } diff --git a/manifests/repo.pp b/manifests/repo.pp index c35db72..e5417cd 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -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}", } }