twitter linkedin youtube
  • About
  • Blog
  • My Services
  • Twitter
  • LinkedIn
  • Email
All tags

    Puppet Course - Day 3 Notes

    Largely practical today, so less theory notes etc than previous days. External Facts ./modules/${module}/facts.d/ You can download additional facts to be collected during a puppet run. This directory resides on the puppet master /lib/facter/*.rb - Custom facts - to be deployed to each of the…

    Read More
    • puppet

    Puppet Course - Day 2 Notes

    Notify - puppet debugging The notify statement can be used in module definitions to print & log useful debugging information. For instance, if large trees of logic are being traversed, insertion of a notify statement will allow you to determine whether the class is being declared or not. notify { '…

    Read More

    sed replacing a string in a file

    Simple example of replacement of a password field in /etc/shadow. usern=robbie encpass= :$1$CQoPk7Zh$370xDLmeGD9m4aF/ciIlC sed -i "s/^${usern}\:[^\:]\{1,100\}\:/${usern}\:${encpass}\:/" /etc/shadow Probably some more improvements here (e.g. determine maximum hashed password string length rather than "up to 100"…

    Read More
    • linux
    • sed

    Puppet Course - Day 1 notes

    Below are some useful notes from the course. Note these notes apply primarily to puppet enterprise, the standalone puppet version may not include all these features and/or may contain different syntax. Also, the writing style applies more to note-taking rather than externally useful tech-tips. Puppet Stack * Puppet Master * Puppet…

    Read More
    • puppet

    PXE Chain Loading from PXELinux to iPXE and back again

    I recently needed to add a PXE environment to an existing PXE service. At a high level, the existing PXE service (running on MS Windows WDS with iPXE) needed to remain in place, but the new PXE service needed to integrate with Cobbler on CentOS 7. As cobbler modifies the…

    Read More
    • linux
    • PXE

    Load more posts
    Subscribe!
    All content copyright © 2025 • All rights reserved.
    Proudly published with Ghost