Skip to main content

Terrajinja extension for automation using cdktf

Project description

terrajinja-sbp-chef

This is an extension to the vault provider for the following modules. The original documentation can be found here

SBP Specific implementations

Here is a list of supported resources and their modifications

sbp.chef.data_bag_item

Original provider: chef.data_bag_item

This custom provider adds the following:

  • allows specifying the databag item name seperate of the databag contents
  • automaticly converts the databag contents in to json for the resource
old parameter new parameter description
content_json content the data field is automaticly converted to json
- data_bag_item name of the databag item, inside the databag

additional to the above the data structure, the key id is automaticly filled with the data_bag_item value

{ 
    "id": "{data_bag_item}", # automatically added
    "your_content": "data",
}

terrajinja-cli example

the following is a code snipet you can used in a terrajinja-cli template file. This creates a databag with the name privoxy and a databag item with the name tst and the specified content

terraform:
  resources:
    - task: privoxy-databag
      module: sbp.chef.data_bag_item
      parameters:
        data_bag_name: privoxy
        data_bag_item: tst
        content:
          permit_access_subnets:
            - 127.0.0.1
          whitelist: 
            - my.domain.com

History

0.0.1 (14-03-2024)

  • First code creation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terrajinja-sbp-chef-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terrajinja_sbp_chef-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file terrajinja-sbp-chef-0.1.1.tar.gz.

File metadata

  • Download URL: terrajinja-sbp-chef-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for terrajinja-sbp-chef-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58ff701c904562a46ee86ed1f32936152a0f6529f52add874a5ee39ee0ad5463
MD5 e705f599f155655a493295e136cc0879
BLAKE2b-256 44c0ebd22686b9fe583791cf55d6c1099a87556ab4b1855e4b42229acf5bbc4d

See more details on using hashes here.

File details

Details for the file terrajinja_sbp_chef-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for terrajinja_sbp_chef-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b5d693978a7bc0e3d2b8707df46e2311fcefa42404cd64fa6c0218c90a7e9ff
MD5 345c518c84ac79102fc06f8f2149db6b
BLAKE2b-256 0833e3508f7cc2b2c356f3c12ac852b3a9c97c2aa4665e29eab5780b397b7559

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page