-
Notifications
You must be signed in to change notification settings - Fork 27
feat: generate another .conf-file when conf parameter is used #1608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
392ced2
do not put "conf" inputs in inputs.conf
kkedziak-splunk 4341615
Comment update
kkedziak-splunk d093170
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk f3cf6ba
More changes
kkedziak-splunk 8d02145
Fix unit tests
kkedziak-splunk 732faec
Fix unit tests
kkedziak-splunk 37db867
Fix tests
kkedziak-splunk 3d16874
Change the spec file
kkedziak-splunk b713244
Fix a unit test
kkedziak-splunk 40c114d
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk 40ccdeb
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk 37a98df
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk 52ac983
Revert helpLink
kkedziak-splunk 2376307
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk 2751e33
Merge
kkedziak-splunk 7878f22
Merge
kkedziak-splunk 813557b
Remove an unused constant
kkedziak-splunk 2c69137
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk ea4c9b2
Add comments
kkedziak-splunk 9943b62
Merge
kkedziak-splunk 27bc3a8
Add expected test spec file
kkedziak-splunk 8593b05
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk 5e6e4a3
Change
kkedziak-splunk 54723b8
Change
kkedziak-splunk a73af89
💩
kkedziak-splunk 867009a
Merge branch 'develop' into fix/inputs_with_conf
kkedziak-splunk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
splunk_add_on_ucc_framework/templates/README/inputs_conf_spec.template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{% for stanza in input_stanzas %} | ||
{{ "[" ~ stanza.keys() | join("") ~ "://<name>]" }} | ||
{% for property in stanza.values() -%} | ||
{{ property | sort() | join("\n") }} | ||
{% endfor %} | ||
{% for name, properties in input_stanzas.items() %} | ||
{{ "[" ~ name | join("") ~ "://<name>]" }} | ||
{{ properties | sort() | join("\n") }} | ||
{% endfor %} |
5 changes: 1 addition & 4 deletions
5
splunk_add_on_ucc_framework/templates/conf_files/inputs_conf.template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
{% for input_name in input_names %} | ||
{{ "[" ~ input_name ~ "]"}} | ||
python.version = python3 | ||
{% if disabled and service_name == input_name%} | ||
disabled = true | ||
{% endif %} | ||
{% for item, value in default_values[input_name].items() %} | ||
{% for item, value in default_values.get(input_name, {}).items() %} | ||
{{item}} = {{value}} | ||
{% endfor %} | ||
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hetangmodi-crest marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../expected_output_global_config_everything/Splunk_TA_UCCExample/README/some_conf.conf.spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[<name>] | ||
interval = Time interval of the data input, in seconds. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.