Skip to content

Instantly share code, notes, and snippets.

@x-drum
Created February 1, 2015 09:43
Show Gist options
  • Select an option

  • Save x-drum/b50c3f7cd9660c478e9a to your computer and use it in GitHub Desktop.

Select an option

Save x-drum/b50c3f7cd9660c478e9a to your computer and use it in GitHub Desktop.

Revisions

  1. x-drum created this gist Feb 1, 2015.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    if $::operatingsystem == 'Debian' {
    file {
    '/etc/dpkg/dpkg.cfg.d/01_nolocale':
    ensure => present,
    source => 'puppet:///private/debian/dpkg_nolocale';
    '/etc/dpkg/dpkg.cfg.d/01_nodoc':
    ensure => present,
    source => 'puppet:///private/debian/dpkg_nodoc';
    }
    }

    cat << dpkg_nodoc:
    path-exclude /usr/share/doc/*
    path-exclude /usr/share/man/*
    path-exclude /usr/share/groff/*
    path-exclude /usr/share/info/*
    path-exclude /usr/share/lintian/*
    dpkg_nodoc:

    cat << dpkg_nolocale:
    path-exclude /usr/share/locale/*
    path-include /usr/share/locale/en*
    path-include /usr/share/locale/de*
    path-include /usr/share/locale/es*
    path-include /usr/share/locale/ja*
    path-include /usr/share/locale/fr*
    path-include /usr/share/locale/zh*
    dpkg_nolocale: