Commit Graph

16 Commits (00b8b96906a741afa8eaa1245d0e229f099318a5)

Author SHA1 Message Date
Dmitry Marakasov b0aec50b9a Improve documentation for pkgng module (#2338)
According to module checklist:

- Descriptions should always start with a Capital letter and end with a
  full stop.
- Ensure that you make use of U() for urls, C() for files and options,
  I() for params, M() for modules.
9 years ago
Brian Coca 8fac01a3cc minor fixes
removed unused imports
rearranged basic import
added if/main for testing/importability
9 years ago
Dmitry Marakasov e316888f21 Freebsd pkgng autoremove support (#2324)
* Whitespace cleanup

* Add autoremove capability to pkgng

* Add "default" and "choices" documentnation items for autoremove
9 years ago
Joerg Fiedler 44bfca315a add chroot flag to pkgng in order to allow installation of packages into chroot environments, e.g. jails (#1218) 9 years ago
Michael Scherer 2e8cd5cd74 Use type 'path' for rootdir, for pkgng 9 years ago
Toshio Kuratomi d6af6f8477 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
9 years ago
Toshio Kuratomi 8e0a2ed729 Make the pkg/name param into a list so that changes to make changes to _squash_items easier 9 years ago
mahadeva604 c3a0a3376a Merge https://github.com/ansible/ansible-modules-extras into devel
Conflicts:
	packaging/os/pkgng.py
9 years ago
Greg DeKoenigsberg 004dedba8a Changes to author formatting, remove emails 10 years ago
Toshio Kuratomi 88eff11c04 Many more doc fixes 10 years ago
Greg DeKoenigsberg 9501714b8b Adding author's github id 10 years ago
Matt Martz e568032bc3 Fix up modules that have python24 syntax error 10 years ago
Charlie Root fbd8c6b398 Add rootdir option to pkgng 10 years ago
Matthew Pherigo e909beb653 Make $BATCH=yes the default, remove module option 10 years ago
Matthew Pherigo 8ecb023939 pkgng: add 'batch' parameter
Some packages attempt to prompt the user for certain settings during
installation. Thus, this parameter sets the environment variable
$BATCH to 'yes', which forces package installation scripts to accept
default values for these interactive prompts. This should work for all
prompts that have a default value and aren't implemented through a
custom script (as this variable is built into the ports/package system).

FIXME: Package install should fail if it prompts and batch isn't set;
currently, the install hangs indefinitely.
TODO: Allow user to specify the answers to certain prompts.

I (github.com/mwpher) have NOT tested this with any packages besides
bsdstats. It's a small improvement, but not a complete answer to all
the complexities of package installation.
10 years ago
Michael DeHaan 7e6fc7023d Reorganization. 10 years ago