Class: Ansible::Ruby::Modules::Sorcery

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb

Overview

Manages “spells” on Source Mage GNU/Linux using I(sorcery) toolchain

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#cache_valid_timeInteger?

Returns Time in seconds to invalidate grimoire collection on update,especially useful for SCM and rsync grimoires,makes sense only in pair with C(update_cache).

Returns:

  • (Integer, nil)

    Time in seconds to invalidate grimoire collection on update,especially useful for SCM and rsync grimoires,makes sense only in pair with C(update_cache)



32
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 32

attribute :cache_valid_time

#dependsArray<String>, ...

Returns Comma-separated list of optional dependencies to build a spell (or make sure it is built) with; use /- in front of dependency to turn it on/off (‘’ is optional though),this option is ignored if C(name) parameter is equal to ‘*’ or contains more than one spell,providers must be supplied in the form recognized by Sorcery, e.g. ‘openssl(SSL)’.

Returns:

  • (Array<String>, String, nil)

    Comma-separated list of optional dependencies to build a spell (or make sure it is built) with; use /- in front of dependency to turn it on/off (‘’ is optional though),this option is ignored if C(name) parameter is equal to ‘*’ or contains more than one spell,providers must be supplied in the form recognized by Sorcery, e.g. ‘openssl(SSL)’



20
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 20

attribute :depends

#nameString?

Returns Name of the spell,multiple names can be given, separated by commas,special value ‘*’ in conjunction with states C(latest) or C(rebuild) will update or rebuild the whole system respectively.

Returns:

  • (String, nil)

    Name of the spell,multiple names can be given, separated by commas,special value ‘*’ in conjunction with states C(latest) or C(rebuild) will update or rebuild the whole system respectively



12
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 12

attribute :name

#state:present, ...

Returns Whether to cast, dispel or rebuild a package,state C(cast) is an equivalent of C(present), not C(latest),state C(latest) always triggers C(update_cache=yes),state C(rebuild) implies cast of all specified spells, not only those existed before.

Returns:

  • (:present, :latest, :absent, :cast, :dispelled, :rebuild, nil)

    Whether to cast, dispel or rebuild a package,state C(cast) is an equivalent of C(present), not C(latest),state C(latest) always triggers C(update_cache=yes),state C(rebuild) implies cast of all specified spells, not only those existed before



16
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 16

attribute :state

#update:yes, ...

Returns Whether or not to update sorcery scripts at the very first stage.

Returns:

  • (:yes, :no, nil)

    Whether or not to update sorcery scripts at the very first stage



24
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 24

attribute :update

#update_cache:yes, ...

Returns Whether or not to update grimoire collection before casting spells.

Returns:

  • (:yes, :no, nil)

    Whether or not to update grimoire collection before casting spells



28
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 28

attribute :update_cache