Class: Ansible::Ruby::Modules::Lxc_container

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb

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, #to_h, validates

Constructor Details

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

Instance Method Details

#archiveBoolean?

Returns Create an archive of a container. This will create a tarball of the running container.

Returns:

  • (Boolean, nil)

    Create an archive of a container. This will create a tarball of the running container.



77
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 77

attribute :archive

#archive_compression:gzip, ...

Returns Type of compression to use when creating an archive of a running container.

Returns:

  • (:gzip, :bzip2, :none, nil)

    Type of compression to use when creating an archive of a running container.



85
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 85

attribute :archive_compression

#archive_pathString?

Returns Path the save the archived container. If the path does not exist the archive method will attempt to create it.

Returns:

  • (String, nil)

    Path the save the archived container. If the path does not exist the archive method will attempt to create it.



81
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 81

attribute :archive_path

#backing_store:dir, ...

Returns Backend storage type for the container.

Returns:

  • (:dir, :lvm, :loop, :btrfs, :overlayfs, :zfs, nil)

    Backend storage type for the container.



14
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 14

attribute :backing_store

#clone_nameBoolean?

Returns Name of the new cloned server. This is only used when state is clone.

Returns:

  • (Boolean, nil)

    Name of the new cloned server. This is only used when state is clone.



69
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 69

attribute :clone_name

#clone_snapshotBoolean?

Returns Create a snapshot a container when cloning. This is not supported by all container storage backends. Enabling this may fail if the backing store does not support snapshots.

Returns:

  • (Boolean, nil)

    Create a snapshot a container when cloning. This is not supported by all container storage backends. Enabling this may fail if the backing store does not support snapshots.



73
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 73

attribute :clone_snapshot

#configObject?

Returns Path to the LXC configuration file.

Returns:

  • (Object, nil)

    Path to the LXC configuration file.



26
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 26

attribute :config

#container_commandString?

Returns Run a command within a container.

Returns:

  • (String, nil)

    Run a command within a container.



54
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 54

attribute :container_command

#container_configArray<String>, ...

Returns list of ‘key=value’ options to use when configuring a container.

Returns:

  • (Array<String>, String, nil)

    list of ‘key=value’ options to use when configuring a container.



93
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 93

attribute :container_config

#container_logBoolean?

Returns Enable a container log for host actions to the container.

Returns:

  • (Boolean, nil)

    Enable a container log for host actions to the container.



61
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 61

attribute :container_log

#container_log_level:INFO, ...

Returns Set the log level for a container where container_log was set.

Returns:

  • (:INFO, :ERROR, :DEBUG, nil)

    Set the log level for a container where container_log was set.



65
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 65

attribute :container_log_level

#directoryObject?

Returns Place rootfs directory under DIR.

Returns:

  • (Object, nil)

    Place rootfs directory under DIR.



48
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 48

attribute :directory

#fs_sizeString?

Returns File system Size.

Returns:

  • (String, nil)

    File system Size.



44
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 44

attribute :fs_size

#fs_typeString?

Returns Create fstype TYPE.

Returns:

  • (String, nil)

    Create fstype TYPE.



40
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 40

attribute :fs_type

#lv_nameString?

Returns Name of the logical volume, defaults to the container name.

Returns:

  • (String, nil)

    Name of the logical volume, defaults to the container name.



29
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 29

attribute :lv_name

#lxc_pathObject?

Returns Place container under PATH.

Returns:

  • (Object, nil)

    Place container under PATH



58
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 58

attribute :lxc_path

#nameString

Returns Name of a container.

Returns:

  • (String)

    Name of a container.



10
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 10

attribute :name

#state:started, ...

Returns Define the state of a container. If you clone a container using ‘clone_name` the newly cloned container created in a stopped state. The running container will be stopped while the clone operation is happening and upon completion of the clone the original container state will be restored.

Returns:

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

    Define the state of a container. If you clone a container using ‘clone_name` the newly cloned container created in a stopped state. The running container will be stopped while the clone operation is happening and upon completion of the clone the original container state will be restored.



89
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 89

attribute :state

#templateString?

Returns Name of the template to use within an LXC create.

Returns:

  • (String, nil)

    Name of the template to use within an LXC create.



18
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 18

attribute :template

#template_optionsString?

Returns Template options when building the container.

Returns:

  • (String, nil)

    Template options when building the container.



22
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 22

attribute :template_options

#thinpoolObject?

Returns Use LVM thin pool called TP.

Returns:

  • (Object, nil)

    Use LVM thin pool called TP.



37
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 37

attribute :thinpool

#vg_nameString?

Returns If Backend store is lvm, specify the name of the volume group.

Returns:

  • (String, nil)

    If Backend store is lvm, specify the name of the volume group.



33
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 33

attribute :vg_name

#zfs_rootObject?

Returns Create zfs under given zfsroot.

Returns:

  • (Object, nil)

    Create zfs under given zfsroot.



51
# File 'lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb', line 51

attribute :zfs_root