The host to set in the sudo configuration. host Ruby Type: String | Default Value: "ALL" This property accepts eitherĪn array or a comma-separated list. Resource block groups Ruby Type: String, Array The name of the sudoers.d file if it differs from the name of the filename Ruby Type: String | Default Value: The resource block's name env_keep_subtract Ruby Type: ArrayĪn array of strings to remove from env_keep. env_keep_add Ruby Type: ArrayĪn array of strings to add to env_keep. defaults Ruby Type: ArrayĪn array of defaults for the user/group. The directory that contains the sudoers configuration file. config_prefix Ruby Type: String | Default Value: Prefix values based on the node's platform commands Ruby Type: Array | Default Value: Īn array of commands this sudoer can execute. The sudo resource has the following properties: command_aliases Ruby Type: ArrayĬommand aliases that can be used as allowed commands later in theĬonfiguration. Or is queued up to run at the end of a Chef Infra Client run. Once notified, this resource block either runs immediately :nothing This resource block does not act unless notified by another resource to :delete Removed a sudoers configuration file from the sudoers.d directory. Create a single sudoers configuration file in the sudoers.d directory. The sudo resource has the following actions: :create Default. command_aliases, commands, config_prefix, defaults, env_keep_add, env_keep_subtract, filename, groups, host, noexec, nopasswd, runas, setenv, template, users, variables, visudo_binary, and visudo_path are the properties available to this resource.action identifies which steps Chef Infra Client will take to bring the node into the desired state.name is the name given to the resource block.Visudo_binary String # default value: "/usr/sbin/visudo"Īction Symbol # defaults to :create if not specified end Setenv true, false # default value: false Nopasswd true, false # default value: false Noexec true, false # default value: false Config_prefix String # default value: Prefix values based on the node's platformįilename String # default value: 'name' unless specified
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |