Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#15 Add Openstack as cloud provider #211

Merged
merged 4 commits into from
Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
![firebase provider](https://img.shields.io/badge/provider-Firebase-orange?logo=firebase&color=FFCA28)
![elastic provider](https://img.shields.io/badge/provider-Elastic-orange?logo=elastic&color=005571)
![saas provider](https://img.shields.io/badge/provider-SaaS-orange?color=5f87bf)
![openstack provider](https://img.shields.io/badge/provider-OpenStack-orange?logo=openstack&color=da1a32)

<a href="https://www.buymeacoffee.com/mingrammer" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

Expand Down
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
app_root_dir="diagrams"

# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "elastic" "generic")
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "elastic" "generic" "openstack")

if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'
Expand Down
21 changes: 19 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

PROVIDERS = (
"base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic",
"generic")
"generic", "openstack")

#########################
# Resource Processing #
Expand All @@ -39,6 +39,7 @@
"saas": (),
"elastic": (),
"generic": (),
"openstack": (),
}

#########################
Expand All @@ -65,6 +66,7 @@
"oci": ("oci",),
"elastic": ("apm", "siem", "ece", "eck"),
"generic": ("vpn", "ios", "xen"),
"openstack": ("rpm", "loci", "nfv", "ec2api"),
}

TITLE_WORDS = {
Expand All @@ -76,7 +78,10 @@
},
"aws": {
"cloudfront": "CloudFront"
}
},
"openstack": {
"openstack": "OpenStack"
},
}

# TODO: check if the classname exists
Expand Down Expand Up @@ -381,4 +386,16 @@
}
},
"generic": {},
"openstack": {
"user": {
"Openstackclient": "OpenStackClient",
},
"billing": {
"Cloudkitty": "CloudKitty",
},
"deployment": {
"Kolla": "KollaAnsible",
"Tripleo": "TripleO",
}
},
}
12 changes: 12 additions & 0 deletions diagrams/openstack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Openstack provides a set of general OpenStack services.
"""

from diagrams import Node


class _OpenStack(Node):
_provider = "openstack"
_icon_dir = "resources/openstack"

fontcolor = "#ffffff"
11 changes: 11 additions & 0 deletions diagrams/openstack/adjacentenablers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Adjacentenablers(_OpenStack):
_type = "adjacentenablers"
_icon_dir = "resources/openstack/adjacentenablers"


# Aliases
15 changes: 15 additions & 0 deletions diagrams/openstack/apiproxies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Apiproxies(_OpenStack):
_type = "apiproxies"
_icon_dir = "resources/openstack/apiproxies"


class EC2API(_Apiproxies):
_icon = "ec2api.png"


# Aliases
27 changes: 27 additions & 0 deletions diagrams/openstack/applicationlifecycle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Applicationlifecycle(_OpenStack):
_type = "applicationlifecycle"
_icon_dir = "resources/openstack/applicationlifecycle"


class Freezer(_Applicationlifecycle):
_icon = "freezer.png"


class Masakari(_Applicationlifecycle):
_icon = "masakari.png"


class Murano(_Applicationlifecycle):
_icon = "murano.png"


class Solum(_Applicationlifecycle):
_icon = "solum.png"


# Aliases
19 changes: 19 additions & 0 deletions diagrams/openstack/baremetal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Baremetal(_OpenStack):
_type = "baremetal"
_icon_dir = "resources/openstack/baremetal"


class Cyborg(_Baremetal):
_icon = "cyborg.png"


class Ironic(_Baremetal):
_icon = "ironic.png"


# Aliases
17 changes: 17 additions & 0 deletions diagrams/openstack/billing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Billing(_OpenStack):
_type = "billing"
_icon_dir = "resources/openstack/billing"


class Cloudkitty(_Billing):
_icon = "cloudkitty.png"


# Aliases

CloudKitty = Cloudkitty
23 changes: 23 additions & 0 deletions diagrams/openstack/compute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Compute(_OpenStack):
_type = "compute"
_icon_dir = "resources/openstack/compute"


class Nova(_Compute):
_icon = "nova.png"


class Qinling(_Compute):
_icon = "qinling.png"


class Zun(_Compute):
_icon = "zun.png"


# Aliases
15 changes: 15 additions & 0 deletions diagrams/openstack/containerservices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Containerservices(_OpenStack):
_type = "containerservices"
_icon_dir = "resources/openstack/containerservices"


class Kuryr(_Containerservices):
_icon = "kuryr.png"


# Aliases
38 changes: 38 additions & 0 deletions diagrams/openstack/deployment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Deployment(_OpenStack):
_type = "deployment"
_icon_dir = "resources/openstack/deployment"


class Ansible(_Deployment):
_icon = "ansible.png"


class Charms(_Deployment):
_icon = "charms.png"


class Chef(_Deployment):
_icon = "chef.png"


class Helm(_Deployment):
_icon = "helm.png"


class Kolla(_Deployment):
_icon = "kolla.png"


class Tripleo(_Deployment):
_icon = "tripleo.png"


# Aliases

KollaAnsible = Kolla
TripleO = Tripleo
15 changes: 15 additions & 0 deletions diagrams/openstack/frontend.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Frontend(_OpenStack):
_type = "frontend"
_icon_dir = "resources/openstack/frontend"


class Horizon(_Frontend):
_icon = "horizon.png"


# Aliases
11 changes: 11 additions & 0 deletions diagrams/openstack/lifecyclemanagement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Lifecyclemanagement(_OpenStack):
_type = "lifecyclemanagement"
_icon_dir = "resources/openstack/lifecyclemanagement"


# Aliases
19 changes: 19 additions & 0 deletions diagrams/openstack/monitoring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Monitoring(_OpenStack):
_type = "monitoring"
_icon_dir = "resources/openstack/monitoring"


class Monasca(_Monitoring):
_icon = "monasca.png"


class Telemetry(_Monitoring):
_icon = "telemetry.png"


# Aliases
15 changes: 15 additions & 0 deletions diagrams/openstack/multiregion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Multiregion(_OpenStack):
_type = "multiregion"
_icon_dir = "resources/openstack/multiregion"


class Tricircle(_Multiregion):
_icon = "tricircle.png"


# Aliases
23 changes: 23 additions & 0 deletions diagrams/openstack/networking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Networking(_OpenStack):
_type = "networking"
_icon_dir = "resources/openstack/networking"


class Designate(_Networking):
_icon = "designate.png"


class Neutron(_Networking):
_icon = "neutron.png"


class Octavia(_Networking):
_icon = "octavia.png"


# Aliases
15 changes: 15 additions & 0 deletions diagrams/openstack/nfv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _NFV(_OpenStack):
_type = "nfv"
_icon_dir = "resources/openstack/nfv"


class Tacker(_NFV):
_icon = "tacker.png"


# Aliases
11 changes: 11 additions & 0 deletions diagrams/openstack/operations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _OpenStack


class _Operations(_OpenStack):
_type = "operations"
_icon_dir = "resources/openstack/operations"


# Aliases
Loading