From 1044886150fd3f5a8488714594c38a11a7328f09 Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Fri, 5 Sep 2014 18:51:39 +0200 Subject: [PATCH] Fix some Puppet Lint errors --- manifests/init.pp | 20 ++++++++++---------- manifests/params.pp | 12 ++++++------ manifests/ppa.pp | 14 +++++++------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 1c318b6..eb8c709 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -89,8 +89,8 @@ class apt( if $purge_preferences { file { 'apt-preferences': - ensure => absent, - path => "${root}/preferences", + ensure => absent, + path => "${root}/preferences", } } @@ -113,8 +113,8 @@ class apt( } false: { file { '99progressbar': - ensure => absent, - path => "${apt_conf_d}/99progressbar", + ensure => absent, + path => "${apt_conf_d}/99progressbar", } } undef: {} # do nothing @@ -142,9 +142,9 @@ class apt( case $proxy_host { false, '', undef: { file { '01proxy': - ensure => absent, - path => "${apt_conf_d}/01proxy", - notify => Exec['apt_update'], + ensure => absent, + path => "${apt_conf_d}/01proxy", + notify => Exec['apt_update'], } } default: { @@ -161,9 +161,9 @@ class apt( } file { 'old-proxy-file': - ensure => absent, - path => "${apt_conf_d}/proxy", - notify => Exec['apt_update'], + ensure => absent, + path => "${apt_conf_d}/proxy", + notify => Exec['apt_update'], } # Need anchor to provide containment for dependencies. diff --git a/manifests/params.pp b/manifests/params.pp index d57b801..a90d2b4 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -11,9 +11,9 @@ class apt::params { 'squeeze': { $backports_location = 'http://backports.debian.org/debian-backports' $legacy_origin = true - $origins = ['${distro_id} oldstable', - '${distro_id} ${distro_codename}-security', - '${distro_id} ${distro_codename}-lts'] + $origins = ['${distro_id} oldstable', #lint:ignore:single_quote_string_with_variables + '${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables + '${distro_id} ${distro_codename}-lts'] #lint:ignore:single_quote_string_with_variables } 'wheezy': { $backports_location = 'http://ftp.debian.org/debian/' @@ -33,19 +33,19 @@ class apt::params { $backports_location = 'http://us.archive.ubuntu.com/ubuntu' $ppa_options = undef $legacy_origin = true - $origins = ['${distro_id} ${distro_codename}-security'] + $origins = ['${distro_id} ${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables } 'precise', 'trusty': { $backports_location = 'http://us.archive.ubuntu.com/ubuntu' $ppa_options = '-y' $legacy_origin = true - $origins = ['${distro_id}:${distro_codename}-security'] + $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables } default: { $backports_location = 'http://old-releases.ubuntu.com/ubuntu' $ppa_options = '-y' $legacy_origin = true - $origins = ['${distro_id}:${distro_codename}-security'] + $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables } } } diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 5f5c6ae..0fdcc95 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -48,13 +48,13 @@ define apt::ppa( $proxy_env = [] } exec { "add-apt-repository-${name}": - environment => $proxy_env, - command => "/usr/bin/add-apt-repository ${options} ${name}", - unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}", - user => 'root', - logoutput => 'on_failure', - notify => Exec['apt_update'], - require => [ + environment => $proxy_env, + command => "/usr/bin/add-apt-repository ${options} ${name}", + unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}", + user => 'root', + logoutput => 'on_failure', + notify => Exec['apt_update'], + require => [ File['sources.list.d'], Package[$package], ], -- 2.32.3