Skip to content

osmanburucu-ibm/helper_scripts

Repository files navigation

helper_scripts

A collection of scripts. Not very sophisticated but they do the job!

VMWare Automation Scripts

Simple scripts for my other projects, createvmclone is based on Virtjunkie.com repo

Cannot remember where i had found the base for addtoknownhosts.

Both scripts were tested only on Mac OS (zsh) so they could work on Linux but not sure.

createvmclone

This script will clone a given base image and will insert its name and ip address to an ansible inventory file

sh ./createvmclone -v|--vms <path to vmware image directory> -n|--name <New VM name> -b|--base <Template/Base VM name> -i|--inventory <Ansible inventory file>

The parameters -u|--user and -p|--pass are not used, but are the admin user for the vm image with its password

pre-reqs: vmware tools have to be installed in the base image!

addtoknownhosts

This script will exchange your ssh keys with the image for the given userid (must exist in the image) so that no password will be asked during execution of the playbooks. The password will be asked during the run of this shell script.

sh ./addtoknownhosts.sh <ip address of running image> <userid for image>

UCD Automation Scripts

Cloning ResourceTree

export_resource_tree.py

exports the resource tree in a simple json format to be reused with create resource tree script

create_resource_tree.py

based on ResourceTree.json it will create the resource tree on the target UCD server TODO: check if resource exists TODO: check for error returncodes TODO: create also other non tree resources like, agents, agentpools, tags, components

Upgrading UCD

upgrade_ucd_agent.py

This script will iterate over all IBM UrbanCode Agents and upgrade the ones with a given tag.

About

simple scripts for my other projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published