Skip to content

biggun002/puppet-amavisd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-amavisd


Installation

First, copy necessary files to the directory where installpuppet.sh will be running

  • rc.d/puppet
  • rc.d/puppetmaster
  • puppet/puppet.conf
  • etc/pkgng.rb

use etc/installpuppet.sh script to install required packages and gems, create directory structure and patch the copied necessary files to their proper locations.

Notes: pkgng was also edited here to optimize runtime

/usr/local/lib/ruby/gems/2.1/gems/puppet-4.2.0/lib/puppet/provider/package/pkgng.rb

Module

In order to use package compiled from port, Puppet only lookup package in pkg. So, we have to host own package repository. First, list the package you want to create in packagelist file and run this script in /usr/local/www/pkg etc/finddependeccies.sh.

To use localhost's package repository:

  • Disable default repository
mkdir -p /usr/local/etc/pkg/repos
echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
  • Add these lines to /etc/pkg/FreeBSD.conf
echo "Self: { url: 'pkg+http://localhost/pkg', mirror_type: 'srv', enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf

When you want to restore everything back to normal state, simply remove /usr/local/etc/pkg/repos/FreeBSD.conf file.


#Puppet client In puppet client run puppet agent -t


#Puppetmaster In newer version, puppetserver was renamed to puppetmaster.

We used puppetmaster machine as MySQL server for storing mails and configurations in database, LDA (Dovecot) and Spamassassin for learning bayes per user.

required puppet modules for puppetmaster machine:

cd /etc/puppetlabs/code/environments/production/modules
puppet apply 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 78.1%
  • PHP 6.5%
  • HTML 5.0%
  • Puppet 5.0%
  • ApacheConf 3.3%
  • Shell 1.9%
  • Pascal 0.2%