-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
start/stop/restart azure webapp #44498
Conversation
The test
The test
The test
|
@@ -157,6 +157,16 @@ | |||
- Purge any existing application settings. Replace web app application settings with app_settings. | |||
type: bool | |||
|
|||
power_action: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wonder if power_action is a proper name for this, because it's really a state.
I was just thinking about virtual machines, and a kind of I don't like the interface there either (started / restarted / allocated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to app_state per offline sync
@@ -932,6 +967,29 @@ def get_webapp_configuration(self): | |||
|
|||
return False | |||
|
|||
def start_webapp(self, action): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is a bit misleading, because it can be also used to stop the application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe set_application_state would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to change_webapp_state
in general everything looks good, i just have some doubts regarding option name. "power action" more applies to hardware devices, like virtual machines, shoudln't it be just "action", or application_state? let me think a bit more. |
@yungezz this PR contains the following merge commits: Please rebase your branch to remove these commits. |
0979bc9
to
83b3b6b
Compare
@yungezz This PR has some conflicting files need you help to resolve? Thanks! |
working on it |
83b3b6b
to
765b32e
Compare
ready_for_review |
@@ -410,6 +420,11 @@ def __init__(self): | |||
type='bool', | |||
default=False | |||
), | |||
app_state=dict( | |||
type='str', | |||
choices=['start', 'stop', 'restart'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe, still wondering, would be better to have "started", "stopped", "restarted"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or, "running", "stopped", "restart"?
SUMMARY
support start/stop/restart webapp.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
ADDITIONAL INFORMATION