Skip to content

Commit

Permalink
Fix README and class descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sshnaidm committed Sep 1, 2024
1 parent 053293d commit 913db0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In many infrastructure projects, dealing with existing cloud resources is a common scenario. Whether you've set up resources manually in your cloud provider's console or CLI, or used infrastructure as code tools like Terraform or AWS CloudFormation, Transible is here to help you adopt and manage those resources seamlessly.

### Supported Cloud Providers

Transible currently supports OpenStack, Azure, and Amazon AWS. Please note that the product is still in development, with ongoing enhancements and additional cloud provider support planned.

Run for Openstack:
Expand All @@ -30,6 +31,8 @@ AWS_PROFILE=readonly ./transible.py --from aws --to ansible
Run for Azure:

```bash
AZURE_SUBSCRIPTION_ID=<my subscription id>
AZURE_RESOURCE_GROUP=<my resource group name>
./transible.py --from azure --to ansible
```

Expand Down
8 changes: 4 additions & 4 deletions transible/plugins/az_ansible/azure_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class AzureAnsible:
"""Main class to generate Ansible playbooks from Amazon
"""Main class to generate Ansible playbooks from Azure
Args:
debug (bool, optional): debug option. Defaults to False.
Expand Down Expand Up @@ -118,7 +118,7 @@ class AzureAnsibleCalculation:
"""Class to generate all Ansible playbooks.
Args:
data (dict): Amazon info data to be used to generate the playbooks.
data (dict): Azure info data to be used to generate the playbooks.
debug (bool, optional): debug option. Defaults to False.
"""
def __init__(self, data, debug=False):
Expand Down Expand Up @@ -621,7 +621,7 @@ def create_servers(self, force_optimize=conf.VARS_OPT_SERVERS,


class AzureInfo:
"""Retrieve information about Amazon cloud
"""Retrieve information about Azure cloud
Args:
debug (bool, optional): debug option. Defaults to False.
Expand All @@ -635,7 +635,7 @@ def __init__(self, debug=False):
raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.")
self.resource_group_name = os.environ.get("AZURE_RESOURCE_GROUP")
if self.resource_group_name is None:
raise ValueError("AZURE_RESOURCE_GROUP environment variable not set. It should match resource gruop name.")
raise ValueError("AZURE_RESOURCE_GROUP environment variable not set. It should match resource group name.")
self.network_client = NetworkManagementClient(credential, subscription_id)
self.resource_client = ResourceManagementClient(credential, subscription_id)
self.compute_client = ComputeManagementClient(credential, subscription_id)
Expand Down

0 comments on commit 913db0b

Please sign in to comment.