Categories
Infrastructure

Testing logstash configs with Docker

Now this is really not rocket science, but since I might do this more often, I don’t want to google every time. Prepare your directories ./tmp # THIS IS YOUR WORKING DIRECTORY |- patterns/ # optional | |- patternfile1 # optional | |- patternfile2 # optional |- logs.log |- logstash.conf Prepare your logstash config # […]

Categories
Puppet

Loathing RSpec and Puppet

There are words for how much I hate RSpec (especially RSpec-Puppet), but they would be too harsh to write down. So now that I don’t have to google the same shit over and over again, here’s what you have to do to get basic puppet module testing up and running (replace $MODULE with your module […]

Categories
Infrastructure

TeamCity LDAP authentication with JumpCloud

JumpCloud looks like a great service to use LDAP without using LDAP. And I have just managed to find an error in the documentation, precisely the file “ldap-config.properties.dist”. The working configuration is: # basic jumpcloud url java.naming.provider.url=ldap://ldap.jumpcloud.com:389/ # search user for jumpcloud java.naming.security.principal=uid=BIND_USER_NAME,ou=Users,o=ORG_ID,dc=jumpcloud,dc=com java.naming.security.credentials=BIND_USER_PASSWORD # unix ldap seems to use uid as username – see […]