-
Notifications
You must be signed in to change notification settings - Fork 199
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
mitogen_sudo connection plugin and friends are the wrong plugin type for get_option('become_...')
#1173
Labels
affects-0.3
Issues related to 0.3.X Mitogen releases
DesignRequired
Issues that cannot progress due to incomplete design
Comments
moreati
added
DesignRequired
Issues that cannot progress due to incomplete design
affects-0.3
Issues related to 0.3.X Mitogen releases
labels
Oct 28, 2024
see #1172 |
moreati
added a commit
to moreati/mitogen
that referenced
this issue
Oct 29, 2024
Some ansible_mitogen connection plugins look more like become plugins (e.g. mitogen_sudo) & use become plugin options. For now there's special handling in PlayContextSpec._become_option(). Further design/discussion can go in mitogen-hq#1173. Refs mitogen-hq#1087.
moreati
added a commit
to moreati/mitogen
that referenced
this issue
Oct 29, 2024
Uses the same fallback for (mitogen_sudo et al) as become_exe (see mitogen-hq#1173). The new `Spec.become_flags()` is not yet explicitly tested. Note that it returns a string (matching the Ansible option of the same name), whereas Spec.sudo_args() returns a list. refs mitogen-hq#1083
moreati
added a commit
to moreati/mitogen
that referenced
this issue
Oct 29, 2024
Uses the same fallback for (mitogen_sudo et al) as become_exe (see mitogen-hq#1173). The new `Spec.become_flags()` is not yet explicitly tested. Note that it returns a string (matching the Ansible option of the same name), whereas `Spec.sudo_args()` returns a list. refs mitogen-hq#1083
jadacyrus
pushed a commit
to jadacyrus/mitogen
that referenced
this issue
Jan 28, 2025
Some ansible_mitogen connection plugins look more like become plugins (e.g. mitogen_sudo) & use become plugin options. For now there's special handling in PlayContextSpec._become_option(). Further design/discussion can go in mitogen-hq#1173. Refs mitogen-hq#1087.
jadacyrus
pushed a commit
to jadacyrus/mitogen
that referenced
this issue
Jan 28, 2025
Uses the same fallback for (mitogen_sudo et al) as become_exe (see mitogen-hq#1173). The new `Spec.become_flags()` is not yet explicitly tested. Note that it returns a string (matching the Ansible option of the same name), whereas `Spec.sudo_args()` returns a list. refs mitogen-hq#1083
I believe this is because Mitogen predates Ansible become plugins, introduced in Ansible 2.8 (ansible/ansible#50991). This matches when |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-0.3
Issues related to 0.3.X Mitogen releases
DesignRequired
Issues that cannot progress due to incomplete design
ansible_mitogen.plugins.connection
contains 3 "connections" that aren't connections in the Ansible world viewmitogen_doas
mitogen_sudo
mitogen_su
In Ansible land these would be become plugins. This wasn't a problem, but may become a problem now. I'm moving the PlaybookSpec to Ansible's plugin options API, but the options
become_exe
andbecome_flags
are associated with become plugins and these plugins are connection plugins.As a result the tests in tests/ansible/integration/stub_connections/all.yml fail with
The text was updated successfully, but these errors were encountered: