salt.modules.poudriere

Support for poudriere

salt.modules.poudriere.bulk_build(jail, pkg_file, keep=False)

Run bulk build on poudriere server.

Return number of pkg builds, failures, and errors, on error dump to CLI

CLI 范例:

salt -N buildbox_group poudriere.bulk_build 90amd64 /root/pkg_list
salt.modules.poudriere.create_jail(name, arch, version='9.0-RELEASE')

Creates a new poudriere jail if one does not exist

NOTE creating a new jail will take some time the master is not hanging

CLI 范例:

salt '*' poudriere.create_jail 90amd64 amd64
salt.modules.poudriere.create_ports_tree()

Not working need to run portfetch non interactive

salt.modules.poudriere.delete_jail(name)

Deletes poudriere jail with name

CLI 范例:

salt '*' poudriere.delete_jail 90amd64
salt.modules.poudriere.is_jail(name)

Return True if jail exists False if not

CLI 范例:

salt '*' poudriere.is_jail <jail name>
salt.modules.poudriere.list_jails()

Return a list of current jails managed by poudriere

CLI 范例:

salt '*' poudriere.list_jails
salt.modules.poudriere.list_ports()

Return a list of current port trees managed by poudriere

CLI 范例:

salt '*' poudriere.list_ports
salt.modules.poudriere.make_pkgng_aware(jname)

Make jail jname pkgng aware

CLI 范例:

salt '*' poudriere.make_pkgng_aware <jail name>
salt.modules.poudriere.parse_config(config_file=None)

Returns a dict of poudriere main configuration definitions

CLI 范例:

salt '*' poudriere.parse_config
salt.modules.poudriere.update_jail(name)

Run freebsd-update on name poudriere jail

CLI 范例:

salt '*' poudriere.update_jail freebsd:10:x86:64
salt.modules.poudriere.update_ports_tree(ports_tree)

Updates the ports tree, either the default or the ports_tree specified

CLI 范例:

salt '*' poudriere.update_ports_tree staging
salt.modules.poudriere.version()

Return poudriere version

CLI 范例:

salt '*' poudriere.version