https://github.com/hosseinezolfi/openstack-tools
Some Openstack scripts!!
https://github.com/hosseinezolfi/openstack-tools
automation bash cloud cloud-automation cloud-computing cloud-infrastructure configuration-management deployment devops infrastructure-as-code openstack openstack-admin openstack-deployment openstack-scripts python python-scripting scripting shell-scripting system-administration
Last synced: 3 months ago
JSON representation
Some Openstack scripts!!
- Host: GitHub
- URL: https://github.com/hosseinezolfi/openstack-tools
- Owner: HosseineZolfi
- Created: 2025-09-24T10:59:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-09-24T11:11:24.000Z (3 months ago)
- Last Synced: 2025-09-24T13:04:46.093Z (3 months ago)
- Topics: automation, bash, cloud, cloud-automation, cloud-computing, cloud-infrastructure, configuration-management, deployment, devops, infrastructure-as-code, openstack, openstack-admin, openstack-deployment, openstack-scripts, python, python-scripting, scripting, shell-scripting, system-administration
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenStack Tools
A collection of Bash and Python scripts designed to automate and manage various OpenStack tasks. These scripts are intended to streamline the management of OpenStack environments, including instance operations, port security, and security group transformations.
## Table of Contents
- [Introduction](#introduction)
- [Requirements](#requirements)
- [Scripts](#scripts)
- [Bash Scripts](#bash-scripts)
- [Python Scripts](#python-scripts)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Introduction
This repository contains a set of scripts written in Bash and Python to assist with the administration of OpenStack environments. The scripts are aimed at automating repetitive tasks and facilitating faster management of OpenStack instances, security groups, and ports.
## Requirements
Before using the scripts, ensure the following:
- An OpenStack environment is set up and configured.
- The OpenStack RC file (credentials) is sourced.
- You have necessary privileges to manage instances, security groups, and ports in the OpenStack environment.
## Scripts
### Bash Scripts
1. **`disableportsec.sh`**
Disables port security on specified ports in OpenStack.
**Usage:**
`bash disableportsec.sh `
2. **`startandstop_host_instances.sh`**
Starts and stops instances running on a specific host in OpenStack.
**Usage:**
`bash startandstop_host_instances.sh `
3. **`transformsecgroup.sh`**
Transforms security groups for specified instances to ensure appropriate security settings.
**Usage:**
`bash transformsecgroup.sh `
4. **`unlock_unpause.sh`**
Unlocks and unpauses a specified instance, resuming its operation.
**Usage:**
`bash unlock_unpause.sh `
### Python Scripts
1. **`pauseanlock.py`**
Pauses and locks a specified instance in OpenStack.
**Usage:**
`python pauseanlock.py `
2. **`unpauseunlock.py`**
Unpauses and unlocks a specified instance to resume its normal state.
**Usage:**
`python unpauseunlock.py `
## Usage
1. **Set up OpenStack credentials**
Ensure that you source your OpenStack RC file before executing any scripts:
```bash
source
```
2. **Execute the desired script**
Choose the appropriate script based on the task you want to perform, and execute it with the necessary parameters.
## Contributing
Contributions to this repository are welcome. If you would like to improve or add new features, please follow these steps:
1. Fork this repository.
2. Create a new branch (`git checkout -b feature-name`).
3. Commit your changes (`git commit -am 'Add new feature'`).
4. Push to the branch (`git push origin feature-name`).
5. Create a new Pull Request.
## License
This repository is licensed under the MIT License. See [LICENSE](LICENSE) for more details.