Class: Ansible::Ruby::Modules::Solaris_zone

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

Overview

Create, start, stop and delete Solaris zones. This module doesn’t currently allow changing of options for a zone that’s already been created.

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

#attach_optionsString?

Returns Extra options to the zoneadm attach command. For example, this can be used to specify whether a minimum or full update of packages is required and if any packages need to be deleted. For valid values, see zoneadm(1M).

Returns:

  • (String, nil)

    Extra options to the zoneadm attach command. For example, this can be used to specify whether a minimum or full update of packages is required and if any packages need to be deleted. For valid values, see zoneadm(1M)



41
# File 'lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb', line 41

attribute :attach_options

#configString?

Returns The zonecfg configuration commands for this zone. See zonecfg(1M) for the valid options and syntax. Typically this is a list of options separated by semi-colons or new lines, e.g. “set auto-boot=true;add net;set physical=bge0;set address=10.1.1.1;end”.

Returns:

  • (String, nil)

    The zonecfg configuration commands for this zone. See zonecfg(1M) for the valid options and syntax. Typically this is a list of options separated by semi-colons or new lines, e.g. “set auto-boot=true;add net;set physical=bge0;set address=10.1.1.1;end”



29
# File 'lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb', line 29

attribute :config

#create_optionsString?

Returns Extra options to the zonecfg(1M) create command.

Returns:

  • (String, nil)

    Extra options to the zonecfg(1M) create command.



33
# File 'lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb', line 33

attribute :create_options

#install_optionsString?

Returns Extra options to the zoneadm(1M) install command. To automate Solaris 11 zone creation, use this to specify the profile XML file, e.g. install_options=“-c sc_profile.xml”.

Returns:

  • (String, nil)

    Extra options to the zoneadm(1M) install command. To automate Solaris 11 zone creation, use this to specify the profile XML file, e.g. install_options=“-c sc_profile.xml”



37
# File 'lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb', line 37

attribute :install_options

#nameObject

Returns Zone name.

Returns:

  • (Object)

    Zone name.



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

attribute :name

#pathObject?

Returns The path where the zone will be created. This is required when the zone is created, but not used otherwise.

Returns:

  • (Object, nil)

    The path where the zone will be created. This is required when the zone is created, but not used otherwise.



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

attribute :path

#root_passwordObject?

Returns The password hash for the root account. If not specified, the zone’s root account will not have a password.

Returns:

  • (Object, nil)

    The password hash for the root account. If not specified, the zone’s root account will not have a password.



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

attribute :root_password

#sparseBoolean?

Returns Whether to create a sparse (C(true)) or whole root (C(false)) zone.

Returns:

  • (Boolean, nil)

    Whether to create a sparse (C(true)) or whole root (C(false)) zone.



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

attribute :sparse

#state:present, ...

Returns C(present), configure and install the zone.,C(installed), synonym for C(present).,C(running), if the zone already exists, boot it, otherwise, configure and install the zone first, then boot it.,C(started), synonym for C(running).,C(stopped), shutdown a zone.,C(absent), destroy the zone.,C(configured), configure the ready so that it’s to be attached.,C(attached), attach a zone, but do not boot it.,C(detached), shutdown and detach a zone.

Returns:

  • (:present, :installed, :started, :running, :stopped, :absent, :configured, :attached, :detached)

    C(present), configure and install the zone.,C(installed), synonym for C(present).,C(running), if the zone already exists, boot it, otherwise, configure and install the zone first, then boot it.,C(started), synonym for C(running).,C(stopped), shutdown a zone.,C(absent), destroy the zone.,C(configured), configure the ready so that it’s to be attached.,C(attached), attach a zone, but do not boot it.,C(detached), shutdown and detach a zone



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

attribute :state

#timeoutInteger?

Returns Timeout, in seconds, for zone to boot.

Returns:

  • (Integer, nil)

    Timeout, in seconds, for zone to boot.



45
# File 'lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb', line 45

attribute :timeout