Using Puppet to install DirectAdmin

ju5t

Verified User
Joined
Sep 14, 2005
Messages
409
Location
Amsterdam
We've spent a fair amount of time on a Puppet module that can manage your DirectAdmin servers. It's not meant to replace the GUI of DirectAdmin, though it tries to simplify installing a new server and managing custombuild across several servers at the same time. If Puppet is new for you, you probably want to have a look at puppetlabs.com. It may not be useful for you, but there are probably a few of you that do manage a dozen or more servers with a lot of custom bash scripting to sync it all to a common standard. In that case: this module will help you.

The source code is available at Github: https://github.com/sensson/sensson-directadmin.

We support the open source way of thinking here, so if you find any issues with this module either send us a pull request with your fix or raise an issue at Github and we'll try to look into it.
 
Last edited:
I have been hearing a LOT about Puppet, I have yet to find a live working demo though that I can get a feel and perhaps wrap my head around how it works. Does anyone know of anything out there?

We've spend a fair amount of time on a Puppet module that can manage your DirectAdmin servers. It's not meant to replace the GUI of DirectAdmin, though it tries to simplify installing a new server and managing custombuild across several servers at the same time. If Puppet is new for you, you probably want to have a look at puppetlabs.com. It may not be useful for you, but there are probably a few of you that do manage a dozen or more servers with a lot of custom bash scripting to sync it all to a common standard. In that case: this module will help you.

The source code is available at Github: https://github.com/sensson/sensson-directadmin.

We support the open source way of thinking here, so if you find any issues with this module either send us a pull request with your fix or raise an issue at Github and we'll try to look into it.
 
We've just released a new version of the DirectAdmin Puppet module that supports creating user packages. Again we're not aiming to replace the GUI but we do want to simplify some tasks when setting up new servers for ourselves or our customers.

The latest version can be pulled from https://github.com/sensson/sensson-directadmin.

I have been hearing a LOT about Puppet, I have yet to find a live working demo though that I can get a feel and perhaps wrap my head around how it works. Does anyone know of anything out there?

DigitalOcean has some straight forward tutorial series that you can use to get started. I would say the best demo is to use it yourself and to get familiar with its concepts.

https://www.digitalocean.com/commun...l-puppet-to-manage-your-server-infrastructure
 
I have been hearing a LOT about Puppet, I have yet to find a live working demo though that I can get a feel and perhaps wrap my head around how it works. Does anyone know of anything out there?

When I started using puppet is simply installed a puppetmaster and a puppet agent on a clean vps. After that you can read some of the smaller examples on puppetlabs. Antway that's what we did en now we can configure complete clusters with a few config files and keep everything updated. iF you manage more than a couple of servers, you'd be wise to check it out ;)

@getUP: Well done!
 
@sysdev: thanks!

We've made some changes to the module in the last few weeks. Some of it required changes in the way DirectAdmin handles things but John from DirectAdmin has been more than helpful and supportive, thanks for that!

* Simplified the installation of DirectAdmin to support more operating systems.
* Added support for IMAP in PHP by using the recommended DirectAdmin installation.
* Added support for also-notify, allow-transfer and notify in /etc/named.conf.
* Added support for rewriting the Named config in case you're using DNS templates.
* Added support for a default webmail client. Defaults to Roundcube.

Some small bugs were squashed in the process too.
 
Just a small update from our end. With the help of others we have resolved a number of issues in the last couple of months.

* Added support for CloudLinux.
* Added support for SpamAssassin on Ubuntu.
* Added support for NAT setups.
* Added a brute force filter for xmlrpc.php in ModSecurity.
* Added support for Puppet 4.
* Added SSL support in our custom resources in case you're running DirectAdmin over SSL.
* Added support for a mail limit per e-mail address.
* Improved the regex when changing exim.conf.
* Improved the regex when setting options directadmin.conf and custombuild.
* Solved a dependency issue on the admin user.

Please feel free to raise new issues or feature requests on GitHub: https://github.com/sensson/puppet-directadmin.
 
A few months have passed and there have been some small changes.

* Added support for custom SpamAssassin rules.
* Added spec tests for the entire module.
* Switched to ModSecurity from DirectAdmin. Our patches have been merged into CustomBuild 2.0.

The module is available on Puppet Forge as well: http://forge.puppet.com/sensson/directadmin.
 
Back
Top