forked from StackStorm/st2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move sample improved pack config stuff to examples pack.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,10 @@ | ||
from pprint import pprint | ||
|
||
from st2actions.runners.pythonrunner import Action | ||
|
||
|
||
class PrintConfigAction(Action): | ||
def run(self): | ||
print('=========') | ||
pprint(self.config) | ||
print('=========') |
This file contains 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,6 @@ | ||
--- | ||
name: print_config | ||
runner_type: run-python | ||
description: Action which prints config values. | ||
enabled: true | ||
entry_point: print_config.py |
This file contains 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,20 @@ | ||
--- | ||
api_key: | ||
description: "API key" | ||
type: "string" | ||
secret: true | ||
required: true | ||
api_secret: | ||
description: "API secret" | ||
type: "string" | ||
secret: true | ||
required: true | ||
region: | ||
description: "API region to use" | ||
type: "string" | ||
required: true | ||
default: "us-east-1" | ||
private_key_path: | ||
description: "Path to the private key file to use" | ||
type: "string" | ||
required: false |