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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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