]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
migrate away from hiera stuff
authormh <mh@immerda.ch>
Thu, 14 Jun 2012 13:07:29 +0000 (10:07 -0300)
committermh <mh@immerda.ch>
Thu, 14 Jun 2012 13:07:29 +0000 (10:07 -0300)
manifests/apticron.pp
manifests/init.pp
manifests/listchanges.pp

index c5783118b864bc07bf9869685407b72b48af2f7a..ebdd5b57f0f7a4e55cbe39ea96e0de2bc39508d4 100644 (file)
@@ -1,15 +1,15 @@
 class apt::apticron(
-  $ensure_version = hiera('apticron_ensure_version','installed'),
-  $config = hiera('apticron_config',"apt/${::operatingsystem}/apticron_${::lsbdistcodename}.erb"),
-  $email = hiera('apticron_email', 'root'),
-  $diff_only = hiera('apticron_diff_only', '1'),
-  $listchanges_profile = hiera('apticron_listchanges_profile','apticron'),
-  $system = hiera('apticron_system',false),
-  $ipaddressnum = hiera('apticron_ipaddressnum',false),
-  $ipaddresses = hiera('apticron_ipaddresses', false),
-  $notifyholds = hiera('apticron_notifyholds', '0'),
-  $notifynew = hiera('apticron_notifynew', '0'),
-  $customsubject = hiera('apticron_customsubject','')
+  $ensure_version = 'installed',
+  $config = "apt/${::operatingsystem}/apticron_${::lsbdistcodename}.erb",
+  $email = 'root',
+  $diff_only = '1',
+  $listchanges_profile = 'apticron',
+  $system = false,
+  $ipaddressnum = false,
+  $ipaddresses = false,
+  $notifyholds = '0',
+  $notifynew = '0',
+  $customsubject = ''
 ) {
 
   package { apticron: ensure => $ensure_version }
index a015fc9d196dcad567afc2fbe091f1eec5719d0f..e35dd2c7c2a5d1500753f564825ab5660070c7ba 100644 (file)
@@ -4,17 +4,17 @@
 # See LICENSE for the full license granted to you.
 
 class apt(
-  $use_volatile = hiera('apt_volatile_enabled',false),
-  $include_src = hiera('apt_include_src',false),
-  $use_next_release = hiera('apt_use_next_release',false),
-  $debian_url = hiera('apt_debian_url','http://cdn.debian.net/debian/'),
-  $security_url = hiera('apt_security_url','http://security.debian.org/'),
-  $backports_url = hiera('apt_backports_url','http://backports.debian.org/debian-backports/'),
-  $volatile_url = hiera('apt_volatile_url', 'http://volatile.debian.org/debian-volatile/'),
-  $ubuntu_url = hiera('apt_ubuntu_url', 'http://archive.ubuntu.com/ubuntu'),
-  $repos = hiera('apt_repos','auto'),
-  $custom_preferences = hiera('apt_custom_preferences','')
-) {
+  $use_volatile = false,
+  $include_src = false,
+  $use_next_release = false,
+  $debian_url = 'http://cdn.debian.net/debian/',
+  $security_url = 'http://security.debian.org/',
+  $backports_url = 'http://backports.debian.org/debian-backports/',
+  $volatile_url = 'http://volatile.debian.org/debian-volatile/',
+  $ubuntu_url = 'http://archive.ubuntu.com/ubuntu',
+  $repos = 'auto',
+  $custom_preferences = ''
+){
   case $::operatingsystem {
     'debian': {
       $real_repos = $repos ? {
index 236b62997e345924c9453e9d9d8850b6d498a6d4..41944639f7bc518974012056dc32007770df69b2 100644 (file)
@@ -1,11 +1,11 @@
 class apt::listchanges(
-  $ensure_version = hiera('apt_listchanges_version','installed'),
-  $config = hiera('apt_listchanges_config', "apt/${::operatingsystem}/listchanges_${::lsbdistcodename}.erb"),
-  $frontend = hiera('apt_listchanges_frontend','mail'),
-  $email = hiera('apt_listchanges_email','root'),
-  $confirm = hiera('apt_listchanges_confirm','0'),
-  $saveseen = hiera('pt_listchanges_saveseen','/var/lib/apt/listchanges.db'),
-  $which = hiera('apt_listchanges_which','both')
+  $ensure_version = 'installed',
+  $config = "apt/${::operatingsystem}/listchanges_${::lsbdistcodename}.erb",
+  $frontend = 'mail',
+  $email = 'root',
+  $confirm = '0',
+  $saveseen = '/var/lib/apt/listchanges.db',
+  $which = 'both'
 ){
   package { apt-listchanges: ensure => $ensure_version }