Distributing service conditionally on OS version

Hi, Since we are in the process of migrating to 16.04, my service restart script needed to be deployed with separate builds. In that purpose, i found a fact that would help me, so that my standard file block transformed into this: case $facts[‘os’][‘distro’][‘codename’] { ‘xenial’: { file {“/root/servicerestart”: source => ‘puppet:///modules/profiles/servicerestart-kafka-new’, mode => ‘0755’, …

Final version of SSL gen script for kafka

Hi, I wrote a lot about this topic but it seems that i came to the procedure specified by Confluent. Here is the right way to do it, at least for now: #!/bin/bash HOST= PASSWORD= KEYSTOREPASS= VALIDITY=365 keytool -keystore kafka.server.keystore.jks -alias ${HOST} -validity $VALIDITY -genkey -dname “CN=${HOST}, OU=MyTeam, O=MyCompany, L=Bucharest S=Romania C=RO” -storepass $KEYSTOREPASS -keypass …