2bit Thoughts
  • Home
  • Author
Sign in Subscribe

snippet

A collection of 4 posts
automation

Mute and Unmute Checks in Morpheus with Python

If you are using Morpheus for monitoring and you want to mute check in a Jenkins task or similar, here's a quick Python script to mute a task by name: from pymorpheus import MorpheusClient import os # env vars from jenkins secrets morpheusUrl = os.environ['morpheusUrl'] morpheusToken
24 Feb 2022 1 min read
snippet

Paging Morpheus API in Python

Using Morpheus' API is something that comes up very often, and there have been a few bad habits that I've noticed.  I myself have been guilty of using large maximum values when hitting endpoints.  eg. <api>/networks?max=10000 I came up with the following
17 Feb 2022 1 min read
snippet

Install Specific Package Versions with Yum and Apt

Apt-based: # Check available versions apt-cache madison <package> # Install package by version apt-get install <package>=<version> -V Yum-based: # Check available versions yum list <package> --showduplicates # Install package by version yum install <package>-<version>
03 Feb 2022
snippet

CentOS 8 End of Life Fix

So, with the end of January 2022 comes the end of versioned CentOS from our good friends at IBM/Redhat. To make CentOS 8.5 just keep working, run this: sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" -e "s|#baseurl=http://mirror.centos.org|baseurl=http:
03 Feb 2022
Page 1 of 1
2bit Thoughts © 2025
Powered by Ghost