Class: Ansible::Ruby::Modules::Pkgng
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Pkgng
- Defined in:
- lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb
Overview
Manage binary packages for FreeBSD using ‘pkgng’ which is available in versions after 9.0.
Instance Method Summary collapse
-
#annotation ⇒ String?
A comma-separated list of keyvalue-pairs of the form <+/-/:><key>.
-
#cached ⇒ Boolean?
Use local package base or try to fetch an updated one.
-
#chroot ⇒ Object?
Pkg will chroot in the specified environment,can not be used together with ‘rootdir’ option.
-
#name ⇒ Array<String>, String
Name of package to install/remove.
-
#pkgsite ⇒ Object?
For pkgng versions before 1.1.4, specify packagesite to use for downloading packages, if not specified, use settings from /usr/local/etc/pkg.conf for newer pkgng versions, specify a the name of a repository configured in /usr/local/etc/pkg/repos.
-
#rootdir ⇒ Object?
For pkgng versions 1.5 and later, pkg will install all packages within the specified root directory,can not be used together with ‘chroot’ option.
-
#state ⇒ :present, ...
State of the package.
Methods inherited from Base
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
#annotation ⇒ String?
Returns a comma-separated list of keyvalue-pairs of the form <+/-/:><key>. A ‘+’ denotes adding an annotation, a ‘-’ denotes removing an annotation, and ‘:’ denotes modifying an annotation. If setting or modifying annotations, a value must be provided.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 23 attribute :annotation |
#cached ⇒ Boolean?
Returns use local package base or try to fetch an updated one.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 19 attribute :cached |
#chroot ⇒ Object?
Returns pkg will chroot in the specified environment,can not be used together with ‘rootdir’ option.
33 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 33 attribute :chroot |
#name ⇒ Array<String>, String
Returns name of package to install/remove.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 11 attribute :name |
#pkgsite ⇒ Object?
Returns for pkgng versions before 1.1.4, specify packagesite to use for downloading packages, if not specified, use settings from /usr/local/etc/pkg.conf for newer pkgng versions, specify a the name of a repository configured in /usr/local/etc/pkg/repos.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 27 attribute :pkgsite |
#rootdir ⇒ Object?
Returns for pkgng versions 1.5 and later, pkg will install all packages within the specified root directory,can not be used together with ‘chroot’ option.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 30 attribute :rootdir |
#state ⇒ :present, ...
Returns state of the package.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 15 attribute :state |