Giter Site home page Giter Site logo

abiquo-wiki-scripts's Introduction

Abiquo wiki scripts repository

This was my learning repository for many years and it contains many early examples of automation and other projects. Please note that there is a new repository that has all the current scripts to automate documentation, the Confluence documentation release, and so on. There is also a separate repository for the API examples project.

Starting with AWK

This repository contains many scripts that process code or API responses or other files to create reference documentation. The first automation I created was a shell script that contained AWK commands that read code. For example, a Java API errors file with AWK to process API Error file. Now for this process I use a Python script that reads the API errors generated in the build and creates a table in the Abiquo wiki.

Another early example is the documentation from the central configuration properties file. The Development team commits to the central file, and the scripts then process it for the wiki. See AWK to process properties file. The latest version is in Python and it manages multiple variants of single properties.

Python script for a customer use case

A common customer use case is to create a tenant in the cloud platform. The customer will then automate this action with the API for their specific environment. I created a very quick Python script to test the steps in the customer use case. I later also created a how-to to describe the steps: how-to create a tenant via API.

Python to implement API how-tos

When I write an API how-to, I think it's sometimes helpful to check the process with code, not just with cURL commands. I enjoyed using Python to implement how to add a NAT rule via API. The Python script is very basic, because it is just to test the process. See Add a NAT rule to a VM with Python.

Check API docs for missing data

I had an HTML version of the API docs and I used Python to scan it for missing data. In some cases, the privileges required to use a request were not appearing in the API docs. Rather than check 100 pages containing 700 methods by hand, I wrote a script. See Check roles or privileges in API docs

Migrating to Confluence Cloud

Migrating from Confluence Server to Confluence Cloud took several months. When you get to Cloud, your pages will be in the "legacy editor". Hopefully, you will be able to easily convert them to the "new editor" and it will offer all of the functionality necessary for your documentation use case. As part of a migration, I wrote scripts to automate many tasks, such as, check which editor the page is using.

Add data for screenshots using the product API

There were some new UI screens that displayed custom metrics. However, custom metrics are metrics that users have added with the API or a tool such as collectd running on the VM. To quickly get some screenshots with data, I wrote a very rough script to push custom metrics.

abiquo-wiki-scripts's People

Contributors

mjsmyth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.