include roles::backports_mirror
+ $bind = $::hostname ? {
+ default => '',
+ }
+
+ $bind6 = $::hostname ? {
+ default => '',
+ }
+
vsftpd::site { 'backports':
- source => 'puppet:///modules/roles/backports_master/vsftpd.conf'
+ source => 'puppet:///modules/roles/backports_master/vsftpd.conf',
+ bind => $bind,
}
+
+ if $bind6 {
+ vsftpd::site { 'security-v6':
+ source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
+ bind => $bind6,
+ }
+ }
+
}
class roles::ftp {
+
+ $bind = $::hostname ? {
+ default => '',
+ }
+
+ $bind6 = $::hostname ? {
+ default => '',
+ }
+
vsftpd::site { 'ftp':
- source => 'puppet:///modules/roles/ftp/vsftpd.conf'
+ source => 'puppet:///modules/roles/ftp/vsftpd.conf',
+ bind => $bind,
+ }
+
+ if $bind6 {
+ vsftpd::site { 'security-v6':
+ source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
+ bind => $bind6,
+ }
}
}
class roles::ftp_upload {
+
+ $bind = $::hostname ? {
+ default => '',
+ }
+
+ $bind6 = $::hostname ? {
+ default => '',
+ }
+
vsftpd::site { 'ftp-upload':
- source => 'puppet:///modules/roles/ftp_upload/vsftpd.conf'
+ source => 'puppet:///modules/roles/ftp_upload/vsftpd.conf',
+ bind => $bind,
+ }
+
+ if $bind6 {
+ vsftpd::site { 'security-v6':
+ source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
+ bind => $bind6,
+ }
}
}
config => 'puppet:///modules/roles/security_mirror/security.debian.org'
}
+ $bind = $::hostname ? {
+ default => '',
+ }
+
+ $bind6 = $::hostname ? {
+ default => '',
+ }
+
vsftpd::site { 'security':
- source => 'puppet:///modules/roles/security_mirror/vsftpd.conf'
+ source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
+ bind => $bind,
}
+
+ if $bind6 {
+ vsftpd::site { 'security-v6':
+ source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
+ bind => $bind6,
+ }
+ }
+
}