Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
pkgname=openldap
pkgdir="$PWD"/.pkg-openldap
pkgver=2.4.35-152-g494ca7d
pkgrel=2
makedeps=(libssl-dev libltdl-dev libdb-dev libsasl2-dev libperl-dev)
notice("IS_VIRTUAL: $is_virtual.")
env_setting { "GRUB_TIMEOUT":
file => "/etc/default/grub",
value => $is_virtual ? {
true => 0,
default => 5,
}
}
@package {"iptables": }
class foo {
package {"fail2ban": require=>Package['iptables']}
}
class bar {
file {"rc.local": require=>Package['iptables']}
}