01 April 2015

Introduction

I do love me some configuration management. One of the things that simplifies operational security is the ability to distribute and enforce configuration across a massive amount of nodes.

Unspecific to security, sometimes you need to check if a package is installed, and if it's down, download and install it. Unfortunately, there is no simplified workflow to get this done.

Updating the Recipe

The following gist ensures that you download and install the package as well updating the apt cache. Notice though, this is for deb files which do not exist in a mainstream repo.

Conclusion

You can obviously modify this in many ways to make it useful how you need.

Tagged under chef, system-administration, sysadm, config, configuration-management, automation, apt, yum, rpm, and others
Mike Mackintosh

This post was written by Mike Mackintosh, a decorated security professional.




Related Posts