Skip to content

Instantly share code, notes, and snippets.

View pfree's full-sized avatar

Patrick pfree

  • Charleston, SC
View GitHub Profile
@pfree
pfree / apt_ordering.pp
Last active April 25, 2019 04:36
Set global Apt ordering in Puppet. This snippet goes at the beginning of the main manifest.
# Enforce the order in which apt, apt::source & package
# resources are applied across a Puppet run.
#
# Order of Events
# ---------------
# Install apt sources -> Run apt update -> Install packages
#
include ::apt
exec { 'apt-update':
command => '/usr/bin/apt-get update'