Mohammed Almusaddar 3 days ago
committed by GitHub
parent
commit
9fef159e5a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
25 changed files with 143 additions and 0 deletions
  1. +1
    -0
      autogen.sh
  2. +6
    -0
      config.py
  3. +12
    -0
      diagrams/hashicorp/__init__.py
  4. +23
    -0
      diagrams/hashicorp/applications.py
  5. +19
    -0
      diagrams/hashicorp/infrastructure.py
  6. +15
    -0
      diagrams/hashicorp/networking.py
  7. +19
    -0
      diagrams/hashicorp/security.py
  8. +4
    -0
      diagrams/onprem/ci.py
  9. +8
    -0
      diagrams/onprem/iac.py
  10. +4
    -0
      diagrams/onprem/security.py
  11. +26
    -0
      docs/nodes/hashicorp.md
  12. +0
    -0
      resources/hashicorp/applications/nomad.png
  13. +0
    -0
      resources/hashicorp/applications/vagrant.png
  14. +0
    -0
      resources/hashicorp/applications/waypoint.png
  15. +0
    -0
      resources/hashicorp/infrastructure/packer.png
  16. +0
    -0
      resources/hashicorp/infrastructure/terraform.png
  17. +0
    -0
      resources/hashicorp/networking/consul.png
  18. +0
    -0
      resources/hashicorp/security/boundary.png
  19. +0
    -0
      resources/hashicorp/security/vault.png
  20. BIN
      resources/onprem/ci/waypoint.png
  21. BIN
      resources/onprem/iac/packer.png
  22. BIN
      resources/onprem/iac/terraform.png
  23. BIN
      resources/onprem/iac/vagrant.png
  24. BIN
      resources/onprem/security/boundary.png
  25. +6
    -0
      scripts/resource.py

+ 1
- 0
autogen.sh View File

@@ -20,6 +20,7 @@ providers=(
"generic"
"openstack"
"outscale"
"hashicorp"
)

if ! [ -x "$(command -v round)" ]; then


+ 6
- 0
config.py View File

@@ -29,6 +29,7 @@ PROVIDERS = (
"generic",
"openstack",
"outscale",
"hashicorp",
)

#########################
@@ -47,6 +48,7 @@ FILE_PREFIXES = {
"aws": ("Amazon-", "AWS-"),
"azure": ("Azure-",),
"digitalocean": (),
"hashicorp": (),
"gcp": ("Cloud-",),
"firebase": ("Cloud-",),
"ibm": (),
@@ -104,6 +106,9 @@ TITLE_WORDS = {
"digitalocean": {
"digitalocean": "DigitalOcean"
},
"hashicorp": {
"hashicorp": "HashiCorp"
},
"openstack": {
"openstack": "OpenStack"
},
@@ -411,6 +416,7 @@ ALIASES = {
}
},
"digitalocean": {},
"hashicorp": {},
"oci": {
"compute": {
"VM": "VirtualMachine",


+ 12
- 0
diagrams/hashicorp/__init__.py View File

@@ -0,0 +1,12 @@
"""
HashiCorp provides a set of services for HashiCorp provider.
"""

from diagrams import Node


class _HashiCorp(Node):
_provider = "hashicorp"
_icon_dir = "resources/hashicorp"

fontcolor = "#ffffff"

+ 23
- 0
diagrams/hashicorp/applications.py View File

@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _HashiCorp


class _Applications(_HashiCorp):
_type = "applications"
_icon_dir = "resources/hashicorp/applications"


class Nomad(_Applications):
_icon = "nomad.png"


class Vagrant(_Applications):
_icon = "vagrant.png"


class Waypoint(_Applications):
_icon = "waypoint.png"


# Aliases

+ 19
- 0
diagrams/hashicorp/infrastructure.py View File

@@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _HashiCorp


class _Infrastructure(_HashiCorp):
_type = "infrastructure"
_icon_dir = "resources/hashicorp/infrastructure"


class Packer(_Infrastructure):
_icon = "packer.png"


class Terraform(_Infrastructure):
_icon = "terraform.png"


# Aliases

+ 15
- 0
diagrams/hashicorp/networking.py View File

@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _HashiCorp


class _Networking(_HashiCorp):
_type = "networking"
_icon_dir = "resources/hashicorp/networking"


class Consul(_Networking):
_icon = "consul.png"


# Aliases

+ 19
- 0
diagrams/hashicorp/security.py View File

@@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _HashiCorp


class _Security(_HashiCorp):
_type = "security"
_icon_dir = "resources/hashicorp/security"


class Boundary(_Security):
_icon = "boundary.png"


class Vault(_Security):
_icon = "vault.png"


# Aliases

+ 4
- 0
diagrams/onprem/ci.py View File

@@ -40,6 +40,10 @@ class Travisci(_Ci):
_icon = "travisci.png"


class Waypoint(_Ci):
_icon = "waypoint.png"


class Zuulci(_Ci):
_icon = "zuulci.png"



+ 8
- 0
diagrams/onprem/iac.py View File

@@ -20,6 +20,10 @@ class Awx(_Iac):
_icon = "awx.png"


class Packer(_Iac):
_icon = "packer.png"


class Puppet(_Iac):
_icon = "puppet.png"

@@ -28,4 +32,8 @@ class Terraform(_Iac):
_icon = "terraform.png"


class Vagrant(_Iac):
_icon = "vagrant.png"


# Aliases

+ 4
- 0
diagrams/onprem/security.py View File

@@ -12,6 +12,10 @@ class Bitwarden(_Security):
_icon = "bitwarden.png"


class Boundary(_Security):
_icon = "boundary.png"


class Trivy(_Security):
_icon = "trivy.png"



+ 26
- 0
docs/nodes/hashicorp.md View File

@@ -0,0 +1,26 @@
---
id: hashicorp
title: HashiCorp
---

Node classes list of hashicorp provider.

## hashicorp.applications

- **diagrams.hashicorp.applications.Nomad**
- **diagrams.hashicorp.applications.Vagrant**
- **diagrams.hashicorp.applications.Waypoint**

## hashicorp.infrastructure

- **diagrams.hashicorp.infrastructure.Packer**
- **diagrams.hashicorp.infrastructure.Terraform**

## hashicorp.networking

- **diagrams.hashicorp.networking.Consul**

## hashicorp.security

- **diagrams.hashicorp.security.Boundary**
- **diagrams.hashicorp.security.Vault**

+ 0
- 0
resources/hashicorp/applications/nomad.png View File


+ 0
- 0
resources/hashicorp/applications/vagrant.png View File


+ 0
- 0
resources/hashicorp/applications/waypoint.png View File


+ 0
- 0
resources/hashicorp/infrastructure/packer.png View File


+ 0
- 0
resources/hashicorp/infrastructure/terraform.png View File


+ 0
- 0
resources/hashicorp/networking/consul.png View File


+ 0
- 0
resources/hashicorp/security/boundary.png View File


+ 0
- 0
resources/hashicorp/security/vault.png View File


BIN
resources/onprem/ci/waypoint.png View File

Before After
Width: 385  |  Height: 250  |  Size: 11 KiB

BIN
resources/onprem/iac/packer.png View File

Before After
Width: 170  |  Height: 277  |  Size: 4.3 KiB

BIN
resources/onprem/iac/terraform.png View File

Before After
Width: 256  |  Height: 256  |  Size: 18 KiB Width: 220  |  Height: 250  |  Size: 5.7 KiB

BIN
resources/onprem/iac/vagrant.png View File

Before After
Width: 242  |  Height: 250  |  Size: 8.7 KiB

BIN
resources/onprem/security/boundary.png View File

Before After
Width: 205  |  Height: 250  |  Size: 4.5 KiB

+ 6
- 0
scripts/resource.py View File

@@ -84,6 +84,7 @@ def cleaner_k8s(f):
break
return f.lower()


def cleaner_digitalocean(f):
f = f.replace("-32", "")
for p in cfg.FILE_PREFIXES["digitalocean"]:
@@ -135,6 +136,10 @@ def cleaner_openstack(f):
return f.lower()


def cleaner_hashicorp(f):
return f.lower()


cleaners = {
"onprem": cleaner_onprem,
"aws": cleaner_aws,
@@ -152,6 +157,7 @@ cleaners = {
"outscale": cleaner_outscale,
"generic": cleaner_generic,
"openstack": cleaner_openstack,
"hashicorp": cleaner_hashicorp,
}




Loading…
Cancel
Save