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

    Cheetah in Cobbler Kickstart templates

    Cobbler kickstart templates support Cheetah (http://www.cheetahtemplate.org/) code. Essentially it allows for execution of python syntax within a kickstart script, providing powerful and flexible capabilities in the code. This is equivalent to ERB (embedded ruby) syntax in Puppet templates. Syntax key features Any line which starts with a…

    Read More
    • Python
    • cobbler
    • cheetah

    Python PDB

    An interactive debugger which allows you to interact via the python shell at specific places within your code. The two important parts are import pdb --> Use the pdb library pdb.set_trace() --> Use this in each part of the code where you want to invoke the…

    Read More
    • Python

    Getting started with Python Virtualenv

    Create a new Virtualenv virtualenv {name_of_virtualenv} Interactively load the virtualenv source ./{name_of_virtualenv}/bin/activate Work in the virtualenv cd ~/{name_of_virtualenv} git clone {repo} pip install -r ./{repo}/requirements.txt ./{repo}/{some_thing}.py Or, to run a python script within a virtualenv once (e.…

    Read More
    • Python
    • linux

    Submitting dynamic DNS updates in python

    I'd been looking for an equivalent to the UNIX nsupdate facility ( https://linux.die.net/man/8/nsupdate) for RFC2136 compliant updates (to a standard Windows or UNIX DNS server), but in python. I found https://github.com/rthalley/dnspython Although the examples were extremely limited (there was…

    Read More
    • Python
    • dns

    Regex in Python - printing all matches

    I've been dabbling in a bit of python. A good friend of mine, Michael, has given me a head start on this (http://benz.io/posts/Python-Regex/) - the re module is very nifty. re.match can return a "None" or matched result using Michael'…

    Read More
    • Python

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