-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support more scenarios #1
Open
weshouman
wants to merge
6
commits into
agaffney:master
Choose a base branch
from
weshouman:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
24e1b1a
Use localhost to connect to the synology
weshouman 4e44c90
Cleanup, add comments and fix dict modificaion-while-iterating
weshouman 3d4f509
Allow use of templated multi-strings, for the compound element.
weshouman e28debe
Support detection of deeper failures, ie: occuring in user creation s…
weshouman 67b5079
Add filters to be used to for fine-grained array-constructions within…
weshouman 3a6d4dc
Major restructure for the tasks
weshouman 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 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
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,7 @@ | ||
--- | ||
synology_dsm_login_user: admin_devops_user | ||
synology_dsm_login_pass: dXNlX2Ffc3Ryb25nX3Bhc3N3b3JkX2xpa2VfdGhpcw== | ||
|
||
# NOTE: for passwords, use a base64 hash, in example: | ||
# ```echo -n use_a_strong_password_like_this | base64``` | ||
|
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
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,13 @@ | ||
synology_dsm_notif_mail_enable: true | ||
synology_dsm_notif_mail_receipent: [email protected] | ||
synology_dsm_notif_mail_prefix: "[SYNO_EMAIL_PREFIX]" | ||
synology_dsm_notif_mail_server: smtp.gmail.com | ||
synology_dsm_notif_mail_port: 587 | ||
synology_dsm_notif_mail_ssl: true | ||
synology_dsm_notif_mail_oauth: false | ||
synology_dsm_notif_mail_welcome_mail: false | ||
synology_dsm_notif_mail_auth_enable: true | ||
synology_dsm_notif_mail_auth_user: [email protected] | ||
synology_dsm_notif_mail_auth_pass: YV9zdHJvbmdfcGFzc3dvcmRfbGlrZV90aGlz | ||
synology_dsm_notif_mail_sender_name: Sender Name | ||
synology_dsm_notif_mail_sender_mail: [email protected] |
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,9 @@ | ||
--- | ||
synology_dsm_new_user_name: automated_user1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not have this as e.g. a dict? synology_dsm_users:
automated_user1:
description: Automatically created test user
email: ""
cnt_chg_pw: false
expired: normal
notify_by_email: false
send_pw: false
pass: dXNlX2Ffc3Ryb25nX3Bhc3N3b3JkX2xpa2VfdGhpcw==
automated_user2:
# etc Multiple users can be specified this way. |
||
synology_dsm_new_user_description: Automatically created test user | ||
synology_dsm_new_user_email: "" | ||
synology_dsm_new_user_cnt_chg_pw: false | ||
synology_dsm_new_user_expired: normal | ||
synology_dsm_new_user_notify_by_email: false | ||
synology_dsm_new_user_send_pw: false | ||
synology_dsm_new_user_pass: dXNlX2Ffc3Ryb25nX3Bhc3N3b3JkX2xpa2VfdGhpcw== |
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,4 @@ | ||
--- | ||
synology_dsm_users_to_delete: | ||
- "to_be_deleted_user1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preferably default this to an empty list: synology_dsm_users_to_delete: [] |
||
- "to_be_deleted_user2" |
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.
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.
Same note as somewhere else. Why base64? That isn’t secure when checking into version control. Better to use Ansible Vault: https://docs.ansible.com/ansible/latest/user_guide/vault.html#use-encrypt-string-to-create-encrypted-variables-to-embed-in-yaml
If the action_plugin is the only place which needs it in base64 isn’t it possible to encode it in the python file?