Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICG - Infrastucture as Code Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIACERE
public
The Platform
ICG - Infrastucture as Code Generator
Commits
93d73ea4
Commit
93d73ea4
authored
2 years ago
by
debora.benedetto@hpe.com
Browse files
Options
Downloads
Patches
Plain Diff
add monitoring agents folder
parent
30a8cf5d
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.dockerignore
+5
-0
5 additions, 0 deletions
.dockerignore
plugin/TerraformPlugin.py
+7
-0
7 additions, 0 deletions
plugin/TerraformPlugin.py
with
12 additions
and
0 deletions
.dockerignore
0 → 100644
+
5
−
0
View file @
93d73ea4
.idea
*.tar.gz
icgparser/doml/*domlx
output_files_generated/nginx_openstack/terraform/*
output_files_generated/nginx_openstack/ansible/*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plugin/TerraformPlugin.py
+
7
−
0
View file @
93d73ea4
import
logging
from
distutils.dir_util
import
copy_tree
from
plugin
import
TemplateUtils
,
PluginUtility
def
store_monitoring_agents_folder
(
output_path
):
copy_tree
(
"
templates/terraform/open_stack/agents_playbook
"
,
output_path
)
def
create_files
(
parameters
,
output_path
):
language
=
"
terraform
"
provider
=
parameters
[
"
provider
"
]
...
...
@@ -36,6 +42,7 @@ def create_files(parameters, output_path):
TemplateUtils
.
write_template
(
terraform_out_file
,
output_file_stored_path
)
config_file_stored_path
=
output_path
+
"
/config.yaml
"
TemplateUtils
.
write_template
(
config_file
,
config_file_stored_path
)
store_monitoring_agents_folder
(
output_path
)
logging
.
info
(
"
Terraform main file available at: {}
"
.
format
(
main_file_stored_path
))
logging
.
info
(
f
"
Terraform output file available at
{
output_file_stored_path
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment