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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for terrajinja-sbp-chef-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468fca83202d951eb9a8eb1e86c32b023e44b4278ba448acc3eb246f72d4d289 |
|
MD5 | 1eba8e10dcee6af624334eda1232210e |
|
BLAKE2b-256 | 04ed948fcc7036717cc0c5d8c399f6288b6109062fb6474f390072453b79fdda |
Close
Hashes for terrajinja_sbp_chef-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d47570caae8d55fd35e3e2d2c95e6ea561a173c6ed5c19b54098d4e84061b1 |
|
MD5 | 72603c71086fc7e61f2ee01cfd3a78fd |
|
BLAKE2b-256 | 1b5594885f5d510f43b4baf46ac6d86c60ab63bbf40bf07d52e4d23ab6edf311 |