---
classes:
  - mysql::server
  - collectd::plugin_asf

mysql::server::databases:
  bugs:
    ensure: 'present'
    charset: 'utf8'
        
  ooobugs:
    ensure: 'present'
    charset: 'utf8'
    
  sabugs:
    ensure: 'present'
    charset: 'utf8'

mysql::server::override_options:
  mysqld:
    max_allowed_packet: '100M'
    ft_min_word_len: 2
    bind-address: "%{::ipaddress_eth1}"
    server-id: 1
    binlog-format: 'mixed'
    log_bin: '/var/log/mysql/mysql-bin.log'
    innodb_flush_log_at_trx_commit: '1'
    sync_binlog: '1'
    binlog-ignore-db: 'mysql'

ntp::interfaces:
  - eth1
  - lo

postfix::server::relayhost: '[mail-relay.apache.org]:587'
postfix::server::smtp_use_tls: true


---
classes:
  - mysql::server
  - collectd::plugin_asf

mysql::server::databases:
  bugs:
    ensure: 'present'
    charset: 'utf8'
        
  ooobugs:
    ensure: 'present'
    charset: 'utf8'
    
  sabugs:
    ensure: 'present'
    charset: 'utf8'

mysql::server::override_options:
  mysqld:
    max_allowed_packet: '100M'
    ft_min_word_len: 2
    bind-address: "%{::ipaddress_eth1}"
    server-id: 1
    binlog-format: 'mixed'
    log_bin: '/var/log/mysql/mysql-bin.log'
    innodb_flush_log_at_trx_commit: '1'
    sync_binlog: '1'
    binlog-ignore-db: 'mysql'
    expire-logs-days: '5'

ntp::interfaces:
  - eth1
  - lo

postfix::server::relayhost: '[mail-relay.apache.org]:587'
postfix::server::smtp_use_tls: true


Set binlong to rotate out after 5 days
Set binlong to rotate out after 5 days
