class nodo { include lsb include puppetd include backup include sudo include users::admin include motd include utils include cron include hosts include locales include tunnel # Set timezone and ntp config # # We config those here but leave class inclusion elsewhere # as ntp config differ from server to vserver. # $ntp_timezone = "Brazil/East" $ntp_pool = "south-america.pool.ntp.org" $ntp_servers = [ 'a.ntp.br', 'b.ntp.br', 'c.ntp.br' ] # Email delivery configuration case $mail_delivery { 'tunnel': { tunnel::mail { "$mail_hostname": sshport => "$mail_ssh_port", } } 'postfix': { } '','exim',default: { include exim } } # Apt configuration if $use_apt != false { include apt include apt::unattended_upgrades } # Default SSH configuration $sshd_password_authentication = "yes" $sshd_shared_ip = "yes" $sshd_tcp_forwarding = "yes" $sshd_perfect_forward_secrecy = "yes" file { "/etc/hostname": owner => "root", group => "root", mode => 0644, ensure => present, content => "$fqdn\n", } file { "/etc/rc.local": source => "puppet://$server/modules/nodo/etc/rc.local", owner => "root", group => "root", mode => 0755, ensure => present, } file { "/etc/screenrc": source => "puppet://$server/modules/nodo/etc/screenrc", owner => "root", group => "root", mode => 0644, ensure => present, } # As of squeeze, custom configuration can be placed directly at # /etc/profile.d, so in the future this file won't need to be # managed by puppet. file { "/etc/profile": source => [ "puppet://$server/modules/nodo/etc/profile.$lsbdistcodename", "puppet://$server/modules/nodo/etc/profile", ], owner => "root", group => "root", mode => 0644, ensure => present, require => File['/usr/local/bin/prompt.sh'], } file { "/etc/bash.bashrc": source => "puppet://$server/modules/nodo/etc/bash.bashrc", owner => "root", group => "root", mode => 0644, ensure => present, require => File['/usr/local/bin/prompt.sh'], } # As of squeeze, custom configuration can be placed directly at # /etc/profile.d, so in the future this file has to stay there. file { "/usr/local/bin/prompt.sh": source => "puppet://$server/modules/nodo/bin/prompt.sh", owner => "root", group => "root", mode => 0755, ensure => present, } # Squeeze prompt should be at /etc/profile.d file { "/etc/profile.d/prompt.sh": owner => "root", group => "root", ensure => "/usr/local/bin/prompt.sh" require => File['/usr/local/bin/prompt.sh'], } }