ComputerManagementDsc icon indicating copy to clipboard operation
ComputerManagementDsc copied to clipboard

NFSShare: New Resource proposal

Open lavahot opened this issue 5 years ago • 1 comments

Description

A new resource which configures NFS shares on systems that support that functionality.

Proposed properties

???

Special considerations or limitations

lavahot avatar Aug 14 '19 22:08 lavahot

Hi @lavahot - this looks like a good addition. I'd expect it to have properties like this:

[Key, Description("Specifies the name of the NFS share.")] String Name;
[Required, Description("Specifies the path of the NFS share")] String Path;
[Write, Description("Specifies the network name of a share.")] String NetworkName;
[Write, Description("Specifies an array of authentication types that an NFS client can use to access NFS shares."), ValueMap{"sys","krb5","krb5i","krb5p","all","default"}, Values{"sys","krb5","krb5i","krb5p","all","default"}] String Authentication[];
[Write, Description("Specifies the user identifier (UID) that Server for NFS uses for anonymous users who access an NFS share.")] Int32 AnonymousUid;
[Write, Description("Specifies the group identifier (GID) that Server for NFS uses for anonymous users who access an NFS share.")] Int32 AnonymousGid;
[Write, Description("Specifies language encoding to configure on an NFS share."), ValueMap{"euc-jp","euc-tw","euc-kr","shift-jis","big5","ksc5601","gb2312-80","ansi"}, Values{"euc-jp","euc-tw","euc-kr","shift-jis","big5","ksc5601","gb2312-80","ansi"}] String LanguageEncoding;
[Write, Description("Configures an NFS share to allow anonymous users to access it.")] Boolean EnableAnonymousAccess;
[Write, Description("Configures an NFS share to allow unmapped UNIX users to access a share by using the UID or GID.")] Boolean EnableUnmappedAccess;
[Write, Description("Grants the UNIX root user access to a share.")] Boolean AllowRootAccess;
[Write, Description("Configures the type of global ('All Machines') permissions on the NFS share."), ValueMap{"no-access","readonly","readwrite"}, Values{"no-access","readonly","readwrite"}] String Permission;
[Write, Description("Specifies whether the NFS share should be present or not."), ValueMap{"present","absent"}, Values{"present","absent"}] String Ensure;

PlagueHO avatar Aug 17 '19 00:08 PlagueHO