From: Dan Carley Date: Mon, 16 Sep 2013 07:53:01 +0000 (+0100) Subject: [#153] Rename unattended_upgrades s/-/_/ X-Git-Tag: 1.3.0~1^2~5 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2fea399a09d64addb9413a67697211a93cb803bd;p=puppet-modules%2Fpuppetlabs-apt.git [#153] Rename unattended_upgrades s/-/_/ It's preferable to use underscores rather than hyphens in class names. Refs: - http://projects.puppetlabs.com/issues/5268 - http://docs.puppetlabs.com/puppet/3/reference/lang_reserved.html#classes-and-types --- diff --git a/manifests/unattended-upgrades.pp b/manifests/unattended_upgrades.pp similarity index 95% rename from manifests/unattended-upgrades.pp rename to manifests/unattended_upgrades.pp index 772ab04..e4ad4dc 100644 --- a/manifests/unattended-upgrades.pp +++ b/manifests/unattended_upgrades.pp @@ -1,19 +1,19 @@ -# unattended-upgrades.pp - +# Class: apt::unattended_upgrades +# # This class manages the unattended-upgrades package and related configuration # files for ubuntu - +# # origins are the repositories to automatically upgrade included packages # blacklist is a list of packages to not automatically upgrade # update is how often to run "apt-get update" in days # download is how often to run "apt-get upgrade --download-only" in days # upgrade is how often to upgrade packages included in the origins list in days # autoclean is how often to run "apt-get autoclean" in days - +# # information on the other options can be found in the 50unattended-upgrades # file and in /etc/cron.daily/apt - -class apt::unattended-upgrades ( +# +class apt::unattended_upgrades ( $origins = ['${distro_id}:${distro_codename}-security'], $blacklist = [], $update = "1", diff --git a/spec/classes/unattended-upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb similarity index 99% rename from spec/classes/unattended-upgrades_spec.rb rename to spec/classes/unattended_upgrades_spec.rb index 98245ca..6695550 100644 --- a/spec/classes/unattended-upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -1,5 +1,5 @@ require 'spec_helper' -describe 'apt::unattended-upgrades', :type => :class do +describe 'apt::unattended_upgrades', :type => :class do it { should contain_package("unattended-upgrades") }