Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
scrm_standard_template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2e2302f6
authored
Feb 22, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
change variable
1 parent
3f7d97e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
README.md
main.tf
schema.yaml
variables.tf
README.md
View file @
2e2302f
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
|------|-------------|------|---------|:--------:|
|------|-------------|------|---------|:--------:|
|
<a
name=
"input_app_log_path"
></a>
[
app\_log\_path
](
#input\_app\_log\_path
)
| @label "应用日志路径" @group "Advanced" |
`string`
|
`"/data/java_log"`
| no |
|
<a
name=
"input_app_log_path"
></a>
[
app\_log\_path
](
#input\_app\_log\_path
)
| @label "应用日志路径" @group "Advanced" |
`string`
|
`"/data/java_log"`
| no |
|
<a
name=
"input_app_log_path_volume_name"
></a>
[
app\_log\_path\_volume\_name
](
#input\_app\_log\_path\_volume\_name
)
| 应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc |
`string`
|
`"app-log-path"`
| no |
|
<a
name=
"input_app_log_path_volume_name"
></a>
[
app\_log\_path\_volume\_name
](
#input\_app\_log\_path\_volume\_name
)
| 应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc |
`string`
|
`"app-log-path"`
| no |
|
<a
name=
"input_args"
></a>
[
args
](
#input\_args
)
| 属于那个环境,例子:dev,test,beta,release |
`
list(string)`
|
<pre>
[
<br> "test"<br>
]
</pre>
| no |
|
<a
name=
"input_args"
></a>
[
args
](
#input\_args
)
| 属于那个环境,例子:dev,test,beta,release |
`
string`
|
`"test"`
| no |
|
<a
name=
"input_env"
></a>
[
env
](
#input\_env
)
| Name and value pairs to set as the environment variables |
`map(string)`
|
`{}`
| no |
|
<a
name=
"input_env"
></a>
[
env
](
#input\_env
)
| Name and value pairs to set as the environment variables |
`map(string)`
|
`{}`
| no |
|
<a
name=
"input_hosts"
></a>
[
hosts
](
#input\_hosts
)
| (Optional) host aliases 手动配置域名到hosts |
`list(object({ hostname = list(string), ip = string }))`
|
`[]`
| no |
|
<a
name=
"input_hosts"
></a>
[
hosts
](
#input\_hosts
)
| (Optional) host aliases 手动配置域名到hosts |
`list(object({ hostname = list(string), ip = string }))`
|
`[]`
| no |
|
<a
name=
"input_image"
></a>
[
image
](
#input\_image
)
| Docker image name |
`string`
| n/a | yes |
|
<a
name=
"input_image"
></a>
[
image
](
#input\_image
)
| Docker image name |
`string`
| n/a | yes |
...
...
main.tf
View file @
2e2302f
...
@@ -91,9 +91,7 @@ module "ingress" {
...
@@ -91,9 +91,7 @@ module "ingress" {
rule = [
rule = [
{
{
domain = var.ingress_switch.domain_name
domain = var.ingress_switch.domain_name
external_port = var.ports[
external_port = var.ports[0] // Service port
0
] // Service port
path = var.ingress_switch.path
path = var.ingress_switch.path
path_type = var.ingress_switch.path_type
path_type = var.ingress_switch.path_type
}
}
...
...
schema.yaml
View file @
2e2302f
...
@@ -180,9 +180,10 @@ components:
...
@@ -180,9 +180,10 @@ components:
args
:
args
:
title
:
Args
title
:
Args
type
:
string
type
:
string
description
:
属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp, testscrm
description
:
属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp,
testscrm
default
:
default
:
-
test
-
test
enum
:
enum
:
-
dev
-
dev
-
test
-
test
...
...
variables.tf
View file @
2e2302f
...
@@ -117,9 +117,9 @@ variable "restart_policy" {
...
@@ -117,9 +117,9 @@ variable "restart_policy" {
# @options ["dev", "test", "beta", "release"]
# @options ["dev", "test", "beta", "release"]
# @group "Advanced"
# @group "Advanced"
variable "args" {
variable "args" {
type =
list(string)
type =
string
description = "属于那个环境,例子:dev,test,beta,release"
description = "属于那个环境,例子:dev,test,beta,release"
default =
["test"]
default =
"test"
}
}
# @label "chiose ingress switch on or off"
# @label "chiose ingress switch on or off"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment