Skip to content

new flag: allow other#10

Open
igalic wants to merge 4 commits into
masterfrom
feat/allow-other
Open

new flag: allow other#10
igalic wants to merge 4 commits into
masterfrom
feat/allow-other

Conversation

@igalic

@igalic igalic commented Jun 8, 2018

Copy link
Copy Markdown
Contributor

This pr adds a flag allow_other as per #8
We add it to both, the s3ql init class, and to s3ql_mount.

igalic added 2 commits June 8, 2018 10:30
when allow other is set, we ensure that the option "user_allow_other"
option is correctly set in `/etc/fuse.conf`
with a default breaking change, allow_other is now false
we add the parameter to the type and provider
an open question is still whether allow_other can be extracted from the
mount options, in which case it would need to become a property ;)

@igalic igalic left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Salokyn need your help here!

owner ||= 0
group = options.sub(%r{.*group(_id)?=([^,)]).*}, '\2') if options =~ %r{group(_id)?}
group ||= 0
# XXX: is allow_others in options?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Salokyn: can you please verify on your systems if allow_other somehow shows up in mount options?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

$mount
swiftks://auth.cloud.ovh.net/GRA1:nextcloud/ on /mnt/s3ql/www/nextcloud type fuse.s3ql (rw,nosuid,nodev,relatime,user_id=33,g
roup_id=33,default_permissions,allow_other)

@igalic igalic left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i… i just don't know what this was supposed to be about…

end

# TODO: This *arguments paramether is kinda pointless
def mount_s3ql(*arguments)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know what i thought here, this code is… weird.

igalic added 2 commits June 8, 2018 13:47
this now allows us easily extract and add them as needed.
add it to the list of properties in our tests, too
@igalic

igalic commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

@Salokyn do you think you can give this code a test-drive and lemme know how it's working for you?

if it's all good, i'll merge and release

@igalic igalic closed this Jun 8, 2018
@igalic igalic reopened this Jun 8, 2018
@igalic

igalic commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

aaaaand we have travis running checks again!
now i'll just need to convince travis to release for me ;)

@Salokyn

Salokyn commented Oct 3, 2018

Copy link
Copy Markdown
Contributor

How can I test it properly ?
I extracted the branch zip archive in /etc/puppet/code/modules/s3ql
When I launch puppet apply I get the following error:
Error: Failed to apply catalog: undefined method `split' for Puppet::Type::S3ql_mount::ProviderS3ql_mount:Class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants