Skip to content

Commit 7ba1f7a

Browse files
authored
Merge pull request #2 from clouddrove/internal-274-m
inital commit
2 parents d3fdd30 + 92743b6 commit 7ba1f7a

21 files changed

+530
-21
lines changed

.github/workflows/readme.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: 'Create README.md file'
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
readme-create:
9+
name: 'readme-create'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 'Checkout'
13+
uses: actions/checkout@master
14+
15+
- name: 'Set up Python 3.7'
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
20+
- name: 'create readme'
21+
uses: 'clouddrove/[email protected]'
22+
with:
23+
actions_subcommand: 'readme'
24+
github_token: '${{ secrets.GITHUB }}'
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
29+
- name: 'pre-commit check errors'
30+
uses: pre-commit/[email protected]
31+
continue-on-error: true
32+
33+
- name: 'pre-commit fix erros'
34+
uses: pre-commit/[email protected]
35+
continue-on-error: true
36+
37+
- name: 'push readme'
38+
uses: 'clouddrove/[email protected]'
39+
continue-on-error: true
40+
with:
41+
actions_subcommand: 'push'
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: 'Slack Notification'
46+
uses: clouddrove/action-slack@v2
47+
with:
48+
status: ${{ job.status }}
49+
fields: repo,author
50+
author_name: 'CloudDrove'
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
53+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
54+
if: always()

.github/workflows/static-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
- ${{ needs.versionExtract.outputs.minVersion }}
3131
- ${{ needs.versionExtract.outputs.maxVersion }}
3232
directory:
33-
- _example/complete
34-
33+
- _example/
3534
steps:
3635
- name: Checkout
3736
uses: actions/checkout@v2
@@ -49,6 +48,7 @@ jobs:
4948
- name: tflint
5049
uses: reviewdog/action-tflint@master
5150
with:
51+
tflint_version: v0.29.0
5252
github_token: ${{ secrets.GITHUB_TOKEN }}
5353
working_directory: ${{ matrix.directory }}
5454
fail_on_error: 'true'

.gitignore

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
### Linux template
2+
*~
3+
4+
# temporary files which can be created if a process still has a handle open of a deleted file
5+
.fuse_hidden*
6+
7+
# KDE directory preferences
8+
.directory
9+
10+
# Linux trash folder which might appear on any partition or disk
11+
.Trash-*
12+
13+
# .nfs files are created when an open file is removed but is still being accessed
14+
.nfs*
15+
### Eclipse template
16+
17+
.metadata
18+
bin/
19+
tmp/
20+
*.tmp
21+
*.bak
22+
*.swp
23+
*~.nib
24+
local.properties
25+
.settings/
26+
.loadpath
27+
.recommenders
28+
29+
# External tool builders
30+
.externalToolBuilders/
31+
32+
# Locally stored "Eclipse launch configurations"
33+
*.launch
34+
35+
# PyDev specific (Python IDE for Eclipse)
36+
*.pydevproject
37+
38+
# CDT-specific (C/C++ Development Tooling)
39+
.cproject
40+
41+
# Java annotation processor (APT)
42+
.factorypath
43+
44+
# PDT-specific (PHP Development Tools)
45+
.buildpath
46+
47+
# sbteclipse plugin
48+
.target
49+
50+
# Tern plugin
51+
.tern-project
52+
53+
# TeXlipse plugin
54+
.texlipse
55+
56+
# STS (Spring Tool Suite)
57+
.springBeans
58+
59+
# Code Recommenders
60+
.recommenders/
61+
62+
# Scala IDE specific (Scala & Java development for Eclipse)
63+
.cache-main
64+
.scala_dependencies
65+
.worksheet
66+
### Windows template
67+
# Windows thumbnail cache files
68+
Thumbs.db
69+
ehthumbs.db
70+
ehthumbs_vista.db
71+
72+
# Dump file
73+
*.stackdump
74+
75+
# Folder config file
76+
[Dd]esktop.ini
77+
78+
# Recycle Bin used on file shares
79+
$RECYCLE.BIN/
80+
81+
# Windows Installer files
82+
*.cab
83+
*.msi
84+
*.msm
85+
*.msp
86+
87+
# Windows shortcuts
88+
*.lnk
89+
### Ansible template
90+
*.retry
91+
### macOS template
92+
# General
93+
.DS_Store
94+
.AppleDouble
95+
.LSOverride
96+
97+
# Icon must end with two \r
98+
Icon
99+
100+
# Thumbnails
101+
._*
102+
103+
# Files that might appear in the root of a volume
104+
.DocumentRevisions-V100
105+
.fseventsd
106+
.Spotlight-V100
107+
.TemporaryItems
108+
.Trashes
109+
.VolumeIcon.icns
110+
.com.apple.timemachine.donotpresent
111+
112+
# Directories potentially created on remote AFP share
113+
.AppleDB
114+
.AppleDesktop
115+
Network Trash Folder
116+
Temporary Items
117+
.apdisk
118+
### Archives template
119+
# It's better to unpack these files and commit the raw source because
120+
# git has its own built in compression methods.
121+
*.7z
122+
*.jar
123+
*.rar
124+
*.zip
125+
*.gz
126+
*.tgz
127+
*.bzip
128+
*.bz2
129+
*.xz
130+
*.lzma
131+
*.cab
132+
133+
# Packing-only formats
134+
*.iso
135+
*.tar
136+
137+
# Package management formats
138+
*.dmg
139+
*.xpi
140+
*.gem
141+
*.egg
142+
*.deb
143+
*.rpm
144+
*.msi
145+
*.msm
146+
*.msp
147+
### JetBrains template
148+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
149+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
150+
151+
/.idea/
152+
# User-specific stuff:
153+
.idea/**/workspace.xml
154+
.idea/**/tasks.xml
155+
.idea/dictionaries
156+
157+
# Sensitive or high-churn files:
158+
.idea/**/dataSources/
159+
.idea/**/dataSources.ids
160+
.idea/**/dataSources.xml
161+
.idea/**/dataSources.local.xml
162+
.idea/**/sqlDataSources.xml
163+
.idea/**/dynamic.xml
164+
.idea/**/uiDesigner.xml
165+
166+
# Gradle:
167+
.idea/**/gradle.xml
168+
.idea/**/libraries
169+
170+
# CMake
171+
cmake-build-debug/
172+
173+
# Mongo Explorer plugin:
174+
.idea/**/mongoSettings.xml
175+
176+
## File-based project format:
177+
*.iws
178+
179+
## Plugin-specific files:
180+
181+
# IntelliJ
182+
out/
183+
184+
# mpeltonen/sbt-idea plugin
185+
.idea_modules/
186+
# User-specific stuff:
187+
.idea/*
188+
# JIRA plugin
189+
atlassian-ide-plugin.xml
190+
191+
# Cursive Clojure plugin
192+
.idea/replstate.xml
193+
194+
# TFstste
195+
*.tfstate*
196+
197+
deployment/_logs/ansible-log.json
198+
deployment/_logs/ansible-log.log
199+
deployment/_logs/facts/*
200+
deployment/_logs/retry/*
201+
_app/*
202+
ansible-log.json
203+
.terraform
204+
terraform.tfstate
205+
206+
*.tfstate
207+
*.tfstate.backup
208+
*.iml
209+
*.terraform.lock.hcl

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export GENIE_PATH ?= $(shell 'pwd')/../../../genie
2+
include $(GENIE_PATH)/Makefile

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
#
3+
# This is the canonical configuration for the `README.md`
4+
# Run `make readme` to rebuild the `README.md`
5+
#
6+
7+
8+
# Name of this project
9+
name: Terraform AZURE LOG-ANALYTICS
10+
11+
# License of this project
12+
license: "APACHE"
13+
14+
# Canonical GitHub repo
15+
github_repo: clouddrove/terraform-azure-log-analytics
16+
17+
# Badges to display
18+
badges:
19+
- name: "Terraform"
20+
image: "https://img.shields.io/badge/Terraform-v1.1.7-green"
21+
url: "https://www.terraform.io"
22+
- name: "Licence"
23+
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
24+
url: "LICENSE.md"
25+
26+
# description of this project
27+
description: |-
28+
Terraform module to create LOG-ANALYTICS resource on AZURE.
29+
30+
# extra content
31+
include:
32+
- "terraform.md"
33+
34+
# How to use this project
35+
# yamllint disable rule:line-length
36+
usage: |-
37+
### Simple Example
38+
Here is an example of how you can use this module in your inventory structure:
39+
```hcl
40+
module "log-analytics" {
41+
source = "clouddrove/log-analytics/azure"
42+
name = "app"
43+
environment = "test"
44+
label_order = ["name", "environment"]
45+
create_log_analytics_workspace = true
46+
log_analytics_workspace_sku = "PerGB2018"
47+
resource_group_name = module.resource_group.resource_group_name
48+
log_analytics_workspace_location = module.resource_group.resource_group_location
49+
}
50+
```

_example/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

_example/complete/README.md

Whitespace-only changes.

_example/complete/main.tf

Lines changed: 0 additions & 1 deletion
This file was deleted.

_example/complete/outputs.tf

Whitespace-only changes.

0 commit comments

Comments
 (0)