Ever wanted to target salt states based on data only the underlying OpenStack cluster knows. Here’s how I did it.
Snippet
A few useful GNU/Linux truth tests while creating salt states
A common task while writing server configuration management manifests is to make sure that some enforcements are run in specific situations.
Encapsulate a LDAP DN string using Arrays in PHP
While I was writing an authentication and privileges assignation mechanism using information provided by an ActiveDirectory’s LDAP DN string into my project’s web application, I realized that there was no documented way to extract information from it. This snippet is about reading a complex DN string, and “explode” it into a manageable PHP Array.