Managing filesystem quotas

374 views
Skip to first unread message

Stephen Nelson-Smith

unread,
Oct 28, 2009, 4:52:03 AM10/28/09
to puppet...@googlegroups.com
I wish to impose a quota on a samba share.

I've created a mount, using puppet, enabling usrquota. I've then run
quotacheck manually, and edquota manually to set up the quota.

I suppose I could have puppet deliver the aquota.user file, but I don'
think that doesn't really enable me to rebuild the machine without
manual intervention. What would be really awesome would be a quota
type that drives quotacheck and edquota - is there much demand for
this?

Have any of you implemented quotas using puppet? What did you do?

S.

--
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com

Simon Josi

unread,
Oct 29, 2009, 7:34:13 AM10/29/09
to puppet...@googlegroups.com
On 28.10.2009 09:52, Stephen Nelson-Smith wrote:
>
> I wish to impose a quota on a samba share.
>
> I've created a mount, using puppet, enabling usrquota. I've then run
> quotacheck manually, and edquota manually to set up the quota.
>
> I suppose I could have puppet deliver the aquota.user file, but I don'
> think that doesn't really enable me to rebuild the machine without
> manual intervention. What would be really awesome would be a quota
> type that drives quotacheck and edquota - is there much demand for
> this?
>
> Have any of you implemented quotas using puppet? What did you do?
>
> S.

I've once began to implement such a module[1]. But I've got stuck
because there are no working quota-ruby-bindings available. I've found
Ruby/Quota[2], the code dates back to 2001 and does not compile against
modern kernels anymore, because much of the quota-internals have changed
since then. The module already implements editing fstab with augeas though.

/simon


[1] http://puppet.git.puzzle.ch/?p=module-quota.git
[2] http://sourceforge.net/projects/ruby-quota

signature.asc
Reply all
Reply to author
Forward
0 new messages