Using Puppet to Pull Strings: a Gentle Introduction to Puppet
A talk I gave with Ben Rose at PICC12.
Slides are on google docs.
http://goo.gl/Swg4G
Exported resources cheat sheet
gnarwl vacation schema with 389
I'm in the process of setting up gnarwl with our 389 (fedora directory server) and needed to import the vacation attributes and objectclass into 389. I only added the attributes I needed for vacation from the included ISP schema file.
Here is the ldif for putting into /etc/dirsrv/[instance]/schema:
dn: cn=schema attributeTypes: ( 1.3.6.1.4.1.11048.1.1.1.1
Horde ingo with dovecot sieve doesn't connect
This is just a case of RTFM but I thought I'd share...
gethostbyname example that compiles and runs clean on puias6
While playing around with getting host entries to work with ldap, I found that my previous code for using gethostbyname was not running clean on puias6. Here is an updated version
#include <stdio.h> #include <netdb.h> #include <stdlib.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char **argv) { int i;
nsswitch.conf hosts lookup from ldap on puias6 (RHEL6/CENTOS6) nslcd
We store our host information in ldap. Previously using ldap for host lookups was done by adding the appropriate entries to /etc/ldap.conf and changing nsswitch.conf.
With 6, nss_ldap has been replaced by nslcd, so I needed to change our setup a little.
I put the following into nslcd.conf
uid nslcd gid ldap uri ldap://ldap2.example.com
Using previous command arguments in a new line
A friend of mine was talking about his design for a shell that would allow you to programatically reuse arguments. I started looking and found that bash can do this but not programatically (at least as far as I know).
horde 4 imp 5 uw-imap mail issues (Unknown Date, Invalid Address, Error communicating with server ajax_error, etc...)
finding the biggest subdirectories of the current directory
alias fl='(for file in `find .??* * -maxdepth 0 -type d`; do du -hs $file 2>/dev/null; done) |sort -h -k 1'