Class: Ansible::Ruby::Modules::Crypttab

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/system/crypttab.rb

Overview

Control Linux encrypted block devices that are set up during system boot in C(/etc/crypttab).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#backing_deviceObject?

Returns Path to the underlying block device or file, or the UUID of a block-device prefixed with I(UUID=).

Returns:

  • (Object, nil)

    Path to the underlying block device or file, or the UUID of a block-device prefixed with I(UUID=)



19
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 19

attribute :backing_device

#nameString

Returns Name of the encrypted block device as it appears in the C(/etc/crypttab) file, or optionaly prefixed with C(/dev/mapper/), as it appears in the filesystem. I(/dev/mapper/) will be stripped from I(name).

Returns:

  • (String)

    Name of the encrypted block device as it appears in the C(/etc/crypttab) file, or optionaly prefixed with C(/dev/mapper/), as it appears in the filesystem. I(/dev/mapper/) will be stripped from I(name).



11
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 11

attribute :name

#optsArray<String>, ...

Returns A comma-delimited list of options. See C(crypttab(5) ) for details.

Returns:

  • (Array<String>, String, nil)

    A comma-delimited list of options. See C(crypttab(5) ) for details.



26
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 26

attribute :opts

#passwordString?

Returns Encryption password, the path to a file containing the pasword, or ‘none’ or ‘-’ if the password should be entered at boot.

Returns:

  • (String, nil)

    Encryption password, the path to a file containing the pasword, or ‘none’ or ‘-’ if the password should be entered at boot.



22
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 22

attribute :password

#pathString?

Returns Path to file to use instead of C(/etc/crypttab). This might be useful in a chroot environment.

Returns:

  • (String, nil)

    Path to file to use instead of C(/etc/crypttab). This might be useful in a chroot environment.



30
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 30

attribute :path

#state:present, ...

Returns Use I(present) to add a line to C(/etc/crypttab) or update it’s definition if already present. Use I(absent) to remove a line with matching I(name). Use I(opts_present) to add options to those already present; options with different values will be updated. Use I(opts_absent) to remove options from the existing set.

Returns:

  • (:present, :absent, :opts_present, :opts_absent)

    Use I(present) to add a line to C(/etc/crypttab) or update it’s definition if already present. Use I(absent) to remove a line with matching I(name). Use I(opts_present) to add options to those already present; options with different values will be updated. Use I(opts_absent) to remove options from the existing set.



15
# File 'lib/ansible/ruby/modules/generated/extras/system/crypttab.rb', line 15

attribute :state