Class: Ansible::Ruby::Modules::Lxd_container

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb

Overview

Management of LXD containers

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

#architectureObject?

Returns The architecture for the container (e.g. “x86_64” or “i686”). See U(github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).

Returns:



16
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 16

attribute :architecture

#cert_fileString?

Returns The client certificate file path.

Returns:

  • (String, nil)

    The client certificate file path.



55
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 55

attribute :cert_file

#configObject?

Returns The config for the container (e.g. “2”). See U(github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1),If the container already exists and its “config” value in metadata obtained from GET /1.0/containers/<name> U(github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersname) are different, they this module tries to apply the configurations.,The key starts with ‘volatile.’ are ignored for this comparison.,Not all config values are supported to apply the existing container. Maybe you need to delete and recreate a container.

Returns:



19
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 19

attribute :config

#devicesObject?

Returns The devices for the container (e.g. { “rootfs”: { “path”: “/dev/kvm”, “type”: “unix-char” }). See U(github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).

Returns:



22
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 22

attribute :devices

#ephemeralObject?

Returns Whether or not the container is ephemeral (e.g. true or false). See U(github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).

Returns:



25
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 25

attribute :ephemeral

#force_stopBoolean?

Returns If this is true, the C(lxd_container) forces to stop the container when it stops or restarts the container.

Returns:

  • (Boolean, nil)

    If this is true, the C(lxd_container) forces to stop the container when it stops or restarts the container.



43
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 43

attribute :force_stop

#key_fileString?

Returns The client certificate key file path.

Returns:

  • (String, nil)

    The client certificate key file path.



51
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 51

attribute :key_file

#nameString

Returns Name of a container.

Returns:

  • (String)

    Name of a container.



12
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 12

attribute :name

#sourceObject?

Returns The source for the container (e.g. { “type”: “image”, “mode”: “pull”, “server”: “images.linuxcontainers.org”, “protocol”: “lxd”, “alias”: “ubuntu/xenial/amd64” }). See U(github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).

Returns:



28
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 28

attribute :source

#state:started, ...

Returns Define the state of a container.

Returns:

  • (:started, :stopped, :restarted, :absent, :frozen, nil)

    Define the state of a container.



31
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 31

attribute :state

#timeoutInteger?

Returns A timeout for changing the state of the container.,This is also used as a timeout for waiting until IPv4 addresses are set to the all network interfaces in the container after starting or restarting.

Returns:

  • (Integer, nil)

    A timeout for changing the state of the container.,This is also used as a timeout for waiting until IPv4 addresses are set to the all network interfaces in the container after starting or restarting.



35
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 35

attribute :timeout

#trust_passwordObject?

Returns The client trusted password.,You need to set this password on the LXD server before running this module using the following command. lxc config set core.trust_password <some random password> See U(www.stgraber.org/2016/04/18/lxd-api-direct-interaction/),If trust_password is set, this module send a request for authentication before sending any requests.

Returns:

  • (Object, nil)

    The client trusted password.,You need to set this password on the LXD server before running this module using the following command. lxc config set core.trust_password <some random password> See U(www.stgraber.org/2016/04/18/lxd-api-direct-interaction/),If trust_password is set, this module send a request for authentication before sending any requests.



59
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 59

attribute :trust_password

#urlString?

Returns The unix domain socket path or the https URL for the LXD server.

Returns:

  • (String, nil)

    The unix domain socket path or the https URL for the LXD server.



47
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 47

attribute :url

#wait_for_ipv4_addressesBoolean?

Returns If this is true, the C(lxd_container) waits until IPv4 addresses are set to the all network interfaces in the container after starting or restarting.

Returns:

  • (Boolean, nil)

    If this is true, the C(lxd_container) waits until IPv4 addresses are set to the all network interfaces in the container after starting or restarting.



39
# File 'lib/ansible/ruby/modules/generated/cloud/lxd/lxd_container.rb', line 39

attribute :wait_for_ipv4_addresses