Skip to content

Commit 7b58f84

Browse files
authored
Initial commit
0 parents  commit 7b58f84

24 files changed

Lines changed: 756 additions & 0 deletions

.github/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"repos": {
3+
"description": "A Terraform module that manages the tpl_resources resources from the azurerm provider.",
4+
"visibility": "public",
5+
"default_branch": "main",
6+
"homepage": "https://telekom-mms.github.io/terraform-template",
7+
"topics": [
8+
"terraform",
9+
"azure"
10+
]
11+
}
12+
}

.github/version-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.github/workflows/codespell.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: codespell
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
call-codespell:
12+
uses: telekom-mms/.github/.github/workflows/codespell.yml@main

.github/workflows/linting.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: linting
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
call-linting:
12+
uses: telekom-mms/.github/.github/workflows/terraform_linting.yml@main

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: release
3+
4+
on:
5+
push:
6+
branches: [main]
7+
8+
env:
9+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
10+
11+
jobs:
12+
call-readme:
13+
if: github.repository != '$TEMPLATE_REPOSITORY'
14+
uses: telekom-mms/.github/.github/workflows/terraform_docs.yml@main
15+
call-release:
16+
if: github.repository != '$TEMPLATE_REPOSITORY'
17+
uses: telekom-mms/.github/.github/workflows/release.yml@main
18+
secrets:
19+
GH_BRANCH_PROTECTION_APP_TOKEN: ${{ secrets.GH_BRANCH_PROTECTION_APP_TOKEN }}
20+
with:
21+
files: README.md

.github/workflows/settings.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: settings
3+
4+
on:
5+
push:
6+
branches: [main]
7+
schedule:
8+
- cron: '0 10 * * *'
9+
10+
env:
11+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
12+
13+
jobs:
14+
call-settings:
15+
if: github.repository != '$TEMPLATE_REPOSITORY'
16+
uses: telekom-mms/.github/.github/workflows/github_repository.yml@main
17+
secrets:
18+
GH_APP_CREDENTIALS_TOKEN: ${{ secrets.GH_APP_CREDENTIALS_TOKEN }}

.github/workflows/terrascan.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: terrascan
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
8+
env:
9+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
10+
11+
jobs:
12+
call-terrascan:
13+
if: github.repository != '$TEMPLATE_REPOSITORY'
14+
uses: telekom-mms/.github/.github/workflows/terrascan.yml@main
15+
with:
16+
iac_type: terraform
17+
iac_dir: ./tests
18+
policy_type: all
19+
non_recursive: true

.github/workflows/terratest.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: terratest
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
8+
env:
9+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
10+
11+
jobs:
12+
call-terratest:
13+
if: github.repository != '$TEMPLATE_REPOSITORY'
14+
uses: telekom-mms/.github/.github/workflows/terratest.yml@main
15+
with:
16+
test: azure
17+
secrets:
18+
azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
19+
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
20+
azure_subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
21+
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}

.terraform-docs.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
formatter: template
2+
3+
sections:
4+
show:
5+
- header
6+
- requirements
7+
- providers
8+
- data-sources
9+
- resources
10+
- modules
11+
- inputs
12+
- outputs
13+
- footer
14+
15+
content: |-
16+
{{ .Header }}
17+
18+
_<-- This file is autogenerated, please do not change. -->_
19+
20+
{{ .Requirements }}
21+
22+
{{ .Providers }}
23+
24+
{{ .Resources }}
25+
26+
{{ .Inputs }}
27+
28+
{{ .Outputs }}
29+
30+
## Examples
31+
32+
Minimal configuration to install the desired resources with the module
33+
34+
```hcl
35+
{{ include "examples/min_main.tf" }}
36+
```
37+
38+
Advanced configuration to install the desired resources with the module
39+
40+
```hcl
41+
{{ include "examples/full_main.tf" }}
42+
```
43+
44+
output:
45+
mode: replace
46+
template: |-
47+
<!-- BEGIN_TF_DOCS -->
48+
{{ .Content }}
49+
<!-- END_TF_DOCS -->
50+
51+
sort:
52+
enabled: true
53+
by: required
54+
55+
settings:
56+
anchor: false
57+
escape: false
58+
hide-empty: true
59+
html: true
60+
indent: 2
61+
read-comments: true
62+
required: true
63+
type: true

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
4+
5+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

0 commit comments

Comments
 (0)