-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
Add homebrew_bundle module #46401
Add homebrew_bundle module #46401
Conversation
This comment has been minimized.
This comment has been minimized.
This is failing with E312: no RETURN provided. What exactly do I need to provide here? |
@AnderEnder @DJMuggs @JoergFiedler @KimNorgaard @L2G @albertomurillo @alxgu @andrew-d @andytom @barnabycourt @berenddeboer @berenddeschouwer @brian-brazil @brontitall @dermute @dinoocch @eest @enriclluelles @evgkrsk @FlossWare @giovannisciortino @hacosta @ignatenkobrain @indrajitr @jasperla @JayKayy @jcftang @jirutka @jtyr @jvantuyl @kahowell @kustodian @matze @mavit @melodous @mgwilliams @oolongbrothers @pmakowski @robinro @sashka @scathatheworm @skinp @sysadmind @szinck @tdtrask @the-maldridge @troy2914 @vaygr @verm666 @vincentvdk @vritant @wltjr As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
fa41c69
to
04ab1f5
Compare
4050da5
to
9b311ba
Compare
Still curious about the RETURN string, as I’d like to populate it with valid info instead of a blank comment. Sent with GitHawk |
@danieljaouen it doesn't look like you are returning anything outside of the defaults like
If you have further questions around this, I highly recommend you post a question on the mailing list or on IRC;
|
@jborean93 Thanks for the info! I just wanted to make sure I wasn't skimming on the documentation for the module. |
@mattclay ping - how would one go about writing macOS integration tests to exercise this functionality? Thanks! |
@maxamillion Creating an integration test for macOS isn't much different than any other integration test. The test should be named after the module being tested, as usual. The test can use available facts to determine if tests need to be skipped due to the platform running the tests. As an optimization it should have entries to skip some platforms in the
It may also help to take a look at some of the logic used for macOS when dealing with brew: ansible/test/integration/targets/archive/tasks/main.yml Lines 43 to 60 in f2f743a
|
@danieljaouen if you don't mind, can you add some integration tests to exercise the functionality added here? Thank you! |
@maxamillion I've written out a basic integration test for this, but I need to test it on my local machine. How can I run just that single integration test? |
@danieljaouen From the checkout of your fork:
This assumes the test is under |
options: | ||
state: | ||
description: | ||
- the state of the homebrew bundle |
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.
- the state of the homebrew bundle | |
- The intended state of the homebrew bundle. |
state: | ||
description: | ||
- the state of the homebrew bundle | ||
choices: ['installed', 'dumped', 'cleanup'] |
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.
choices: ['installed', 'dumped', 'cleanup'] | |
type: str | |
choices: [ cleanup, dumped, installed ] |
default: installed | ||
file_path: | ||
description: | ||
- The path of the Brewfile. Defaults to ~/.Brewfile. |
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.
- The path of the Brewfile. Defaults to ~/.Brewfile. | |
- The path of the Brewfile. |
file_path: | ||
description: | ||
- The path of the Brewfile. Defaults to ~/.Brewfile. | ||
required: false |
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.
required: false | |
type: path |
path: | ||
description: | ||
- "A ':' separated list of paths to search for 'brew' executable. | ||
Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, |
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.
Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, | |
- Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, |
- "A ':' separated list of paths to search for 'brew' executable. | ||
Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, | ||
providing an alternative I(brew) path enables managing different set of packages in an alternative location in the system." | ||
default: '/usr/local/bin' |
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.
default: '/usr/local/bin' | |
type: path | |
default: /usr/local/bin |
default: '/usr/local/bin' | ||
install_options: | ||
description: | ||
- options flags to install a package |
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.
- options flags to install a package | |
- Options flags to install a package. | |
type: list |
install_options: | ||
description: | ||
- options flags to install a package | ||
aliases: ['options'] |
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.
aliases: ['options'] | |
aliases: [ options ] |
Why add an alias from the start ?
description: | ||
- options flags to install a package | ||
aliases: ['options'] | ||
version_added: "2.8" |
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.
version_added: "2.8" |
version_added: "2.8" | ||
''' | ||
EXAMPLES = ''' | ||
# Install from a Brewfile. |
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.
# Install from a Brewfile. | |
- name: Install from a Brewfile. |
''' | ||
EXAMPLES = ''' | ||
# Install from a Brewfile. | ||
- homebrew_bundle: |
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.
- homebrew_bundle: | |
homebrew_bundle: |
state: installed | ||
file_path: ~/.Brewfile | ||
|
||
# Dump to a Brewfile. |
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.
# Dump to a Brewfile. | |
- name: Dump to a Brewfile. |
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.
A few cosmetic changes.
file_path: ~/.Brewfile | ||
|
||
# Dump to a Brewfile. | ||
- homebrew_bundle: |
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.
- homebrew_bundle: | |
homebrew_bundle: |
file_path: ~/.Brewfile | ||
|
||
# Cleanup from a Brewfile. | ||
- homebrew_bundle: |
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.
- homebrew_bundle: | |
homebrew_bundle: |
state: dumped | ||
file_path: ~/.Brewfile | ||
|
||
# Cleanup from a Brewfile. |
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.
# Cleanup from a Brewfile. | |
- name: Cleanup from a Brewfile. |
|
||
# This file is part of Ansible | ||
# | ||
# Ansible is free software: you can redistribute it and/or modify |
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 could be a one-line statement.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
@@ -0,0 +1,21 @@ | |||
# (c) 2018, Daniel Jaouen <[email protected]> |
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.
# (c) 2018, Daniel Jaouen <[email protected]> | |
# Copyright: (c) 2018, Daniel Jaouen <[email protected]> |
@danieljaouen Thank you very much for your interest in Ansible. This plugin/module is no longer maintained in this repository and has been migrated to If you have further questions please stop by IRC or the mailing list:
Thanks, needs_info |
@danieljaouen This pullrequest is waiting for your response. Please respond or the pullrequest will be closed. |
Hi @danieljaouen, Thank you very much for your interest in Ansible. This plugin/module is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/community.general |
SUMMARY
Adds the
homebrew_bundle
module.ISSUE TYPE
COMPONENT NAME
homebrew_bundle
ANSIBLE VERSION
ADDITIONAL INFORMATION
N/A