-
Notifications
You must be signed in to change notification settings - Fork 151
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
new module: filesize, create or resize a file, given its size #148
Conversation
5880c44
to
6f85103
Compare
6f85103
to
6b983ba
Compare
Ansible Zuul check ansible-changelog-fragment fails due to
Does a new module need a changelog fragment ? If yes, what could be a valid changelog fragment entry ? ---
new_modules:
- module_name - short description (PR URL) thanks for help |
Ansible Zuul check ansible-test-sanity-docker fails against other modules than this one, and it also seems to be false positives (at least for the
This issue is addressed by this targeted PR now: #156 |
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.
@quidame , hi, though I'm not a specialist in this area but it looks like a great job:)
@quidame update about changelog fragments - I've just noticed that the collection require it.
|
Also i can see sanity issues:
It's not about your module. Ignore it. |
5760875
to
d354db3
Compare
@quidame once it's ready for review, please let me know, I'll try to ping other folks |
I've just pinged the other engineers. |
@Andersson007 yeah ! thanks |
recheck |
@quidame there's only the changelog issue left. Please do what you did to get rid of it:) |
* description: create a file given its size, or resize it * add integration tests (filter Mac OS X < 11 for some of them)
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
* Add a stat task for almost every filesize tasks and check results (size) consistency. * Check that cmd result is always the same, in check mode or not. * Check consistency of other returned results (size_diff & filesize.bytes). add DOCUMENTATION.seealso section fix docstrings coding style (tenses, typos...) add changelog fragment (placeholder)
d354db3
to
6ce2f02
Compare
@Andersson007 , done :) |
@quidame thanks, I pinged folks in IRC that it's ready for review |
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.
LGTM (the idea, documentation formatting, tests, and other general things). Though I'm not an expert.
@quidame also FYI - this collection is officially supported and available on Automation hub, so the barrier to get new stuff merged here is much higher than, say, in c.g., resp. time between "ts created" and "ts merged" can be much longer as well. I suggest waiting for some time and, if it doesn't get merged during April, we could move it to community.general. |
@Andersson007 , thanks for the review !
Sounds good to me. |
@quidame hi, it's still not the end of the month but we've discuss with @felixfontein that the PR content could be moved to community.general and it seems to be fine. If you're ok with it, feel free to move now or wait until May (which, IMO, doesn't make a lot of sense). What do you think? |
@Andersson007 @felixfontein OK, moved to ansible-collections/community.general#2232. |
@quidame great, thanks! |
SUMMARY
New module
filesize
to create a file or resize it. This is a simple wrapper arounddd
that allows to grow or reduce (truncate) a file to any arbitrary size. Useful to manage swap files.Supports
check_mode
anddiff
.ISSUE TYPE
COMPONENT NAME
filesize
ADDITIONAL INFORMATION
Example: