Skip to content

Instantly share code, notes, and snippets.

@x-drum
Created February 1, 2015 09:43
Show Gist options
  • Save x-drum/b50c3f7cd9660c478e9a to your computer and use it in GitHub Desktop.
Save x-drum/b50c3f7cd9660c478e9a to your computer and use it in GitHub Desktop.
puppet: ReduceDebian
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment