Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

5
sysutils/ansible/DESCR Normal file
View File

@@ -0,0 +1,5 @@
Ansible is a radically simple model-driven configuration management,
multi-node deployment, and remote task execution system. Ansible works
over SSH and does not require any software or daemons to be installed
on remote nodes. Extension modules can be written in any language and
are transferred to managed machines automatically.

83
sysutils/ansible/Makefile Normal file
View File

@@ -0,0 +1,83 @@
# $NetBSD: Makefile,v 1.7 2013/04/13 17:51:57 riz Exp $
#
DISTNAME= ansible-1.1
CATEGORIES= sysutils
MASTER_SITES= http://ansible.cc/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ansible.cc/
COMMENT= SSH-based configuration management, deployment, and task execution
LICENSE= gnu-gpl-v3
EGDIR= ${PREFIX}/share/examples/ansible
#USE_LANGUAGES= # none
USE_TOOLS+= gmake
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_FILES.prefix= docs/man/man1/ansible-playbook.1
SUBST_FILES.prefix+= docs/man/man1/ansible.1
SUBST_FILES.prefix+= examples/ansible.cfg
SUBST_FILES.prefix+= lib/ansible/constants.py
SUBST_SED.prefix= -e "s,@PREFIX@,${PREFIX},"
SUBST_SED.prefix+= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},"
SUBST_CLASSES+= localbase
SUBST_STAGE.localbase= pre-configure
SUBST_FILES.localbase= \
lib/ansible/callbacks.py \
library/mysql_db \
library/ping \
library/pkgin \
library/raw \
library/setup \
library/slurp \
library/virt
SUBST_SED.localbase= -e "s,@LOCALBASE@,${LOCALBASE},"
SUBST_CLASSES+= pythonbin
SUBST_STAGE.pythonbin= pre-configure
SUBST_FILES.pythonbin= Makefile
SUBST_FILES.pythonbin= -e "s,@PYTHONBIN@,${PYTHONBIN},"
MANPAGES= ansible-doc.1 ansible-pull.1 ansible-playbook.1 ansible.1
DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko
DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/ansible ${EGDIR}/playbooks
CHECK_INTERPRETER_SKIP= share/ansible/*
pre-install:
find ${WRKSRC} -name \*.orig -exec rm {} \;
post-install:
.for f in ${MANPAGES}
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
.endfor
${INSTALL_MAN} ${WRKSRC}/docs/man/man3/* \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
.for f in ansible.cfg hosts
${INSTALL_DATA} ${WRKSRC}/examples/${f} \
${DESTDIR}/${EGDIR}
.endfor
${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR}/playbooks
for f in ${WRKSRC}/examples/playbooks/*.yml; do \
${INSTALL_DATA} $$f ${DESTDIR}/${EGDIR}/playbooks; \
done
.for f in filter_plugins handlers tasks templates vars
${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR}/playbooks/${f}
for g in ${WRKSRC}/examples/playbooks/${f}/*; do \
${INSTALL_DATA} $$g ${DESTDIR}/${EGDIR}/playbooks/${f}; \
done
.endfor
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

403
sysutils/ansible/PLIST Normal file
View File

@@ -0,0 +1,403 @@
@comment $NetBSD: PLIST,v 1.4 2013/04/13 17:51:57 riz Exp $
bin/ansible
bin/ansible-doc
bin/ansible-playbook
bin/ansible-pull
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/ansible/__init__.py
${PYSITELIB}/ansible/__init__.pyc
${PYSITELIB}/ansible/__init__.pyo
${PYSITELIB}/ansible/callback_plugins/__init__.py
${PYSITELIB}/ansible/callback_plugins/__init__.pyc
${PYSITELIB}/ansible/callback_plugins/__init__.pyo
${PYSITELIB}/ansible/callback_plugins/noop.py
${PYSITELIB}/ansible/callback_plugins/noop.pyc
${PYSITELIB}/ansible/callback_plugins/noop.pyo
${PYSITELIB}/ansible/callbacks.py
${PYSITELIB}/ansible/callbacks.pyc
${PYSITELIB}/ansible/callbacks.pyo
${PYSITELIB}/ansible/color.py
${PYSITELIB}/ansible/color.pyc
${PYSITELIB}/ansible/color.pyo
${PYSITELIB}/ansible/constants.py
${PYSITELIB}/ansible/constants.pyc
${PYSITELIB}/ansible/constants.pyo
${PYSITELIB}/ansible/errors.py
${PYSITELIB}/ansible/errors.pyc
${PYSITELIB}/ansible/errors.pyo
${PYSITELIB}/ansible/inventory/__init__.py
${PYSITELIB}/ansible/inventory/__init__.pyc
${PYSITELIB}/ansible/inventory/__init__.pyo
${PYSITELIB}/ansible/inventory/dir.py
${PYSITELIB}/ansible/inventory/dir.pyc
${PYSITELIB}/ansible/inventory/dir.pyo
${PYSITELIB}/ansible/inventory/expand_hosts.py
${PYSITELIB}/ansible/inventory/expand_hosts.pyc
${PYSITELIB}/ansible/inventory/expand_hosts.pyo
${PYSITELIB}/ansible/inventory/group.py
${PYSITELIB}/ansible/inventory/group.pyc
${PYSITELIB}/ansible/inventory/group.pyo
${PYSITELIB}/ansible/inventory/host.py
${PYSITELIB}/ansible/inventory/host.pyc
${PYSITELIB}/ansible/inventory/host.pyo
${PYSITELIB}/ansible/inventory/ini.py
${PYSITELIB}/ansible/inventory/ini.pyc
${PYSITELIB}/ansible/inventory/ini.pyo
${PYSITELIB}/ansible/inventory/script.py
${PYSITELIB}/ansible/inventory/script.pyc
${PYSITELIB}/ansible/inventory/script.pyo
${PYSITELIB}/ansible/inventory/vars_plugins/__init__.py
${PYSITELIB}/ansible/inventory/vars_plugins/__init__.pyc
${PYSITELIB}/ansible/inventory/vars_plugins/__init__.pyo
${PYSITELIB}/ansible/inventory/vars_plugins/group_vars.py
${PYSITELIB}/ansible/inventory/vars_plugins/group_vars.pyc
${PYSITELIB}/ansible/inventory/vars_plugins/group_vars.pyo
${PYSITELIB}/ansible/module_common.py
${PYSITELIB}/ansible/module_common.pyc
${PYSITELIB}/ansible/module_common.pyo
${PYSITELIB}/ansible/playbook/__init__.py
${PYSITELIB}/ansible/playbook/__init__.pyc
${PYSITELIB}/ansible/playbook/__init__.pyo
${PYSITELIB}/ansible/playbook/play.py
${PYSITELIB}/ansible/playbook/play.pyc
${PYSITELIB}/ansible/playbook/play.pyo
${PYSITELIB}/ansible/playbook/task.py
${PYSITELIB}/ansible/playbook/task.pyc
${PYSITELIB}/ansible/playbook/task.pyo
${PYSITELIB}/ansible/runner/__init__.py
${PYSITELIB}/ansible/runner/__init__.pyc
${PYSITELIB}/ansible/runner/__init__.pyo
${PYSITELIB}/ansible/runner/action_plugins/__init__.py
${PYSITELIB}/ansible/runner/action_plugins/__init__.pyc
${PYSITELIB}/ansible/runner/action_plugins/__init__.pyo
${PYSITELIB}/ansible/runner/action_plugins/add_host.py
${PYSITELIB}/ansible/runner/action_plugins/add_host.pyc
${PYSITELIB}/ansible/runner/action_plugins/add_host.pyo
${PYSITELIB}/ansible/runner/action_plugins/async.py
${PYSITELIB}/ansible/runner/action_plugins/async.pyc
${PYSITELIB}/ansible/runner/action_plugins/async.pyo
${PYSITELIB}/ansible/runner/action_plugins/copy.py
${PYSITELIB}/ansible/runner/action_plugins/copy.pyc
${PYSITELIB}/ansible/runner/action_plugins/copy.pyo
${PYSITELIB}/ansible/runner/action_plugins/debug.py
${PYSITELIB}/ansible/runner/action_plugins/debug.pyc
${PYSITELIB}/ansible/runner/action_plugins/debug.pyo
${PYSITELIB}/ansible/runner/action_plugins/fail.py
${PYSITELIB}/ansible/runner/action_plugins/fail.pyc
${PYSITELIB}/ansible/runner/action_plugins/fail.pyo
${PYSITELIB}/ansible/runner/action_plugins/fetch.py
${PYSITELIB}/ansible/runner/action_plugins/fetch.pyc
${PYSITELIB}/ansible/runner/action_plugins/fetch.pyo
${PYSITELIB}/ansible/runner/action_plugins/group_by.py
${PYSITELIB}/ansible/runner/action_plugins/group_by.pyc
${PYSITELIB}/ansible/runner/action_plugins/group_by.pyo
${PYSITELIB}/ansible/runner/action_plugins/normal.py
${PYSITELIB}/ansible/runner/action_plugins/normal.pyc
${PYSITELIB}/ansible/runner/action_plugins/normal.pyo
${PYSITELIB}/ansible/runner/action_plugins/pause.py
${PYSITELIB}/ansible/runner/action_plugins/pause.pyc
${PYSITELIB}/ansible/runner/action_plugins/pause.pyo
${PYSITELIB}/ansible/runner/action_plugins/raw.py
${PYSITELIB}/ansible/runner/action_plugins/raw.pyc
${PYSITELIB}/ansible/runner/action_plugins/raw.pyo
${PYSITELIB}/ansible/runner/action_plugins/script.py
${PYSITELIB}/ansible/runner/action_plugins/script.pyc
${PYSITELIB}/ansible/runner/action_plugins/script.pyo
${PYSITELIB}/ansible/runner/action_plugins/template.py
${PYSITELIB}/ansible/runner/action_plugins/template.pyc
${PYSITELIB}/ansible/runner/action_plugins/template.pyo
${PYSITELIB}/ansible/runner/connection.py
${PYSITELIB}/ansible/runner/connection.pyc
${PYSITELIB}/ansible/runner/connection.pyo
${PYSITELIB}/ansible/runner/connection_plugins/__init__.py
${PYSITELIB}/ansible/runner/connection_plugins/__init__.pyc
${PYSITELIB}/ansible/runner/connection_plugins/__init__.pyo
${PYSITELIB}/ansible/runner/connection_plugins/chroot.py
${PYSITELIB}/ansible/runner/connection_plugins/chroot.pyc
${PYSITELIB}/ansible/runner/connection_plugins/chroot.pyo
${PYSITELIB}/ansible/runner/connection_plugins/fireball.py
${PYSITELIB}/ansible/runner/connection_plugins/fireball.pyc
${PYSITELIB}/ansible/runner/connection_plugins/fireball.pyo
${PYSITELIB}/ansible/runner/connection_plugins/local.py
${PYSITELIB}/ansible/runner/connection_plugins/local.pyc
${PYSITELIB}/ansible/runner/connection_plugins/local.pyo
${PYSITELIB}/ansible/runner/connection_plugins/paramiko_ssh.py
${PYSITELIB}/ansible/runner/connection_plugins/paramiko_ssh.pyc
${PYSITELIB}/ansible/runner/connection_plugins/paramiko_ssh.pyo
${PYSITELIB}/ansible/runner/connection_plugins/ssh.py
${PYSITELIB}/ansible/runner/connection_plugins/ssh.pyc
${PYSITELIB}/ansible/runner/connection_plugins/ssh.pyo
${PYSITELIB}/ansible/runner/filter_plugins/__init__.py
${PYSITELIB}/ansible/runner/filter_plugins/__init__.pyc
${PYSITELIB}/ansible/runner/filter_plugins/__init__.pyo
${PYSITELIB}/ansible/runner/filter_plugins/core.py
${PYSITELIB}/ansible/runner/filter_plugins/core.pyc
${PYSITELIB}/ansible/runner/filter_plugins/core.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/__init__.py
${PYSITELIB}/ansible/runner/lookup_plugins/__init__.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/__init__.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/dnstxt.py
${PYSITELIB}/ansible/runner/lookup_plugins/dnstxt.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/dnstxt.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/env.py
${PYSITELIB}/ansible/runner/lookup_plugins/env.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/env.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/file.py
${PYSITELIB}/ansible/runner/lookup_plugins/file.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/file.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/fileglob.py
${PYSITELIB}/ansible/runner/lookup_plugins/fileglob.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/fileglob.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/first_found.py
${PYSITELIB}/ansible/runner/lookup_plugins/first_found.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/first_found.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/items.py
${PYSITELIB}/ansible/runner/lookup_plugins/items.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/items.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/lines.py
${PYSITELIB}/ansible/runner/lookup_plugins/lines.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/lines.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/nested.py
${PYSITELIB}/ansible/runner/lookup_plugins/nested.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/nested.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/password.py
${PYSITELIB}/ansible/runner/lookup_plugins/password.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/password.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/pipe.py
${PYSITELIB}/ansible/runner/lookup_plugins/pipe.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/pipe.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/random_choice.py
${PYSITELIB}/ansible/runner/lookup_plugins/random_choice.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/random_choice.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/redis_kv.py
${PYSITELIB}/ansible/runner/lookup_plugins/redis_kv.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/redis_kv.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/sequence.py
${PYSITELIB}/ansible/runner/lookup_plugins/sequence.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/sequence.pyo
${PYSITELIB}/ansible/runner/lookup_plugins/template.py
${PYSITELIB}/ansible/runner/lookup_plugins/template.pyc
${PYSITELIB}/ansible/runner/lookup_plugins/template.pyo
${PYSITELIB}/ansible/runner/poller.py
${PYSITELIB}/ansible/runner/poller.pyc
${PYSITELIB}/ansible/runner/poller.pyo
${PYSITELIB}/ansible/runner/return_data.py
${PYSITELIB}/ansible/runner/return_data.pyc
${PYSITELIB}/ansible/runner/return_data.pyo
${PYSITELIB}/ansible/utils/__init__.py
${PYSITELIB}/ansible/utils/__init__.pyc
${PYSITELIB}/ansible/utils/__init__.pyo
${PYSITELIB}/ansible/utils/module_docs.py
${PYSITELIB}/ansible/utils/module_docs.pyc
${PYSITELIB}/ansible/utils/module_docs.pyo
${PYSITELIB}/ansible/utils/plugins.py
${PYSITELIB}/ansible/utils/plugins.pyc
${PYSITELIB}/ansible/utils/plugins.pyo
${PYSITELIB}/ansible/utils/template.py
${PYSITELIB}/ansible/utils/template.pyc
${PYSITELIB}/ansible/utils/template.pyo
man/man1/ansible-doc.1
man/man1/ansible-playbook.1
man/man1/ansible-pull.1
man/man1/ansible.1
man/man3/ansible.add_host.3
man/man3/ansible.apt.3
man/man3/ansible.apt_key.3
man/man3/ansible.apt_repository.3
man/man3/ansible.assemble.3
man/man3/ansible.async_status.3
man/man3/ansible.authorized_key.3
man/man3/ansible.bzr.3
man/man3/ansible.cloudformation.3
man/man3/ansible.command.3
man/man3/ansible.copy.3
man/man3/ansible.cron.3
man/man3/ansible.debug.3
man/man3/ansible.django_manage.3
man/man3/ansible.easy_install.3
man/man3/ansible.ec2.3
man/man3/ansible.ec2_facts.3
man/man3/ansible.ec2_vol.3
man/man3/ansible.facter.3
man/man3/ansible.fail.3
man/man3/ansible.fetch.3
man/man3/ansible.file.3
man/man3/ansible.fireball.3
man/man3/ansible.gem.3
man/man3/ansible.get_url.3
man/man3/ansible.git.3
man/man3/ansible.group.3
man/man3/ansible.group_by.3
man/man3/ansible.hg.3
man/man3/ansible.homebrew.3
man/man3/ansible.ini_file.3
man/man3/ansible.lineinfile.3
man/man3/ansible.lvg.3
man/man3/ansible.lvol.3
man/man3/ansible.macports.3
man/man3/ansible.mail.3
man/man3/ansible.mongodb_user.3
man/man3/ansible.mount.3
man/man3/ansible.mysql_db.3
man/man3/ansible.mysql_user.3
man/man3/ansible.nagios.3
man/man3/ansible.netscaler.3
man/man3/ansible.ohai.3
man/man3/ansible.openbsd_pkg.3
man/man3/ansible.opkg.3
man/man3/ansible.pacman.3
man/man3/ansible.pause.3
man/man3/ansible.ping.3
man/man3/ansible.pip.3
man/man3/ansible.pkgin.3
man/man3/ansible.postgresql_db.3
man/man3/ansible.postgresql_user.3
man/man3/ansible.rabbitmq_parameter.3
man/man3/ansible.rabbitmq_plugin.3
man/man3/ansible.rabbitmq_user.3
man/man3/ansible.rabbitmq_vhost.3
man/man3/ansible.raw.3
man/man3/ansible.rhn_channel.3
man/man3/ansible.s3.3
man/man3/ansible.script.3
man/man3/ansible.seboolean.3
man/man3/ansible.selinux.3
man/man3/ansible.service.3
man/man3/ansible.setup.3
man/man3/ansible.shell.3
man/man3/ansible.slurp.3
man/man3/ansible.subversion.3
man/man3/ansible.supervisorctl.3
man/man3/ansible.svr4pkg.3
man/man3/ansible.sysctl.3
man/man3/ansible.template.3
man/man3/ansible.uri.3
man/man3/ansible.user.3
man/man3/ansible.vagrant.3
man/man3/ansible.virt.3
man/man3/ansible.wait_for.3
man/man3/ansible.yum.3
man/man3/ansible.zfs.3
share/ansible/add_host
share/ansible/apt
share/ansible/apt_key
share/ansible/apt_repository
share/ansible/assemble
share/ansible/async_status
share/ansible/async_wrapper
share/ansible/authorized_key
share/ansible/bzr
share/ansible/cloudformation
share/ansible/command
share/ansible/copy
share/ansible/cron
share/ansible/debug
share/ansible/django_manage
share/ansible/easy_install
share/ansible/ec2
share/ansible/ec2_facts
share/ansible/ec2_vol
share/ansible/facter
share/ansible/fail
share/ansible/fetch
share/ansible/file
share/ansible/fireball
share/ansible/gem
share/ansible/get_url
share/ansible/git
share/ansible/group
share/ansible/group_by
share/ansible/hg
share/ansible/homebrew
share/ansible/ini_file
share/ansible/lineinfile
share/ansible/lvg
share/ansible/lvol
share/ansible/macports
share/ansible/mail
share/ansible/mongodb_user
share/ansible/mount
share/ansible/mysql_db
share/ansible/mysql_user
share/ansible/nagios
share/ansible/netscaler
share/ansible/ohai
share/ansible/openbsd_pkg
share/ansible/opkg
share/ansible/pacman
share/ansible/pause
share/ansible/ping
share/ansible/pip
share/ansible/pkgin
share/ansible/postgresql_db
share/ansible/postgresql_user
share/ansible/rabbitmq_parameter
share/ansible/rabbitmq_plugin
share/ansible/rabbitmq_user
share/ansible/rabbitmq_vhost
share/ansible/raw
share/ansible/rhn_channel
share/ansible/s3
share/ansible/script
share/ansible/seboolean
share/ansible/selinux
share/ansible/service
share/ansible/setup
share/ansible/shell
share/ansible/slurp
share/ansible/subversion
share/ansible/supervisorctl
share/ansible/svr4pkg
share/ansible/sysctl
share/ansible/template
share/ansible/uri
share/ansible/user
share/ansible/vagrant
share/ansible/virt
share/ansible/wait_for
share/ansible/yum
share/ansible/zfs
share/examples/ansible/ansible.cfg
share/examples/ansible/hosts
share/examples/ansible/playbooks/ansible_pull.yml
share/examples/ansible/playbooks/batch_size_control.yml
share/examples/ansible/playbooks/complex_args.yml
share/examples/ansible/playbooks/conditionals_part1.yml
share/examples/ansible/playbooks/conditionals_part2.yml
share/examples/ansible/playbooks/conditionals_part3.yml
share/examples/ansible/playbooks/custom_filters.yml
share/examples/ansible/playbooks/delegation.yml
share/examples/ansible/playbooks/environment.yml
share/examples/ansible/playbooks/eucalyptus-ec2.yml
share/examples/ansible/playbooks/file_secontext.yml
share/examples/ansible/playbooks/filter_plugins/custom_plugins.py
share/examples/ansible/playbooks/get_url.yml
share/examples/ansible/playbooks/group_by.yml
share/examples/ansible/playbooks/group_commands.yml
share/examples/ansible/playbooks/handlers/handlers.yml
share/examples/ansible/playbooks/intermediate_example.yml
share/examples/ansible/playbooks/intro_example.yml
share/examples/ansible/playbooks/loop_nested.yml
share/examples/ansible/playbooks/loop_plugins.yml
share/examples/ansible/playbooks/loop_with_items.yml
share/examples/ansible/playbooks/mysql.yml
share/examples/ansible/playbooks/nested_playbooks.yml
share/examples/ansible/playbooks/netscaler.yml
share/examples/ansible/playbooks/postgresql.yml
share/examples/ansible/playbooks/prompts.yml
share/examples/ansible/playbooks/rabbitmq.yml
share/examples/ansible/playbooks/register_logic.yml
share/examples/ansible/playbooks/selective_file_sources.yml
share/examples/ansible/playbooks/tags.yml
share/examples/ansible/playbooks/tasks/base.yml
share/examples/ansible/playbooks/templates/custom-filters.j2
share/examples/ansible/playbooks/templates/etc_cron.d_ansible-pull.j2
share/examples/ansible/playbooks/templates/etc_logrotate.d_ansible-pull.j2
share/examples/ansible/playbooks/templates/foo.j2
share/examples/ansible/playbooks/templates/hostvars.j2
share/examples/ansible/playbooks/user_commands.yml
share/examples/ansible/playbooks/vars/CentOS.yml
share/examples/ansible/playbooks/vars/defaults.yml
share/examples/ansible/playbooks/vars/external_vars.yml
share/examples/ansible/playbooks/zfs.yml
@pkgdir etc/ansible

17
sysutils/ansible/distinfo Normal file
View File

@@ -0,0 +1,17 @@
$NetBSD: distinfo,v 1.4 2013/04/13 17:51:57 riz Exp $
SHA1 (ansible-1.1.tar.gz) = fa1009e80b624945675bbaba690b895a1ff050fd
RMD160 (ansible-1.1.tar.gz) = 220dd91db3ab0d6df5dec456448e22d436077f3d
Size (ansible-1.1.tar.gz) = 302115 bytes
SHA1 (patch-docs_man_man1_ansible-playbook.1) = 33ce57bccb6cb29e978871a868bf26ca17d87660
SHA1 (patch-docs_man_man1_ansible.1) = 266a520f8f227686cc84b8a3e9b6fac8e20e1247
SHA1 (patch-examples_ansible.cfg) = 631236fadaadfd28d71b7bc7cce33e62691ee407
SHA1 (patch-lib_ansible_callbacks.py) = 607809cf64a676ef91a70b915e97ac87b8ddd31b
SHA1 (patch-lib_ansible_constants.py) = 51171c84680b18a2d1ff2401cc1fd08e009aa83c
SHA1 (patch-library_mysql_db) = 45e782d41c3e2bc9e462441205f894e7089d798a
SHA1 (patch-library_ping) = 6bb9b946df3a44ac938eee7e752bf2149936b8e6
SHA1 (patch-library_pkgin) = 4b57890efa9145c0b2b68c2c75c990618488d824
SHA1 (patch-library_raw) = 897aa5b8e5abadd23adc6de178cbec417c43e540
SHA1 (patch-library_setup) = 7489a5c905916cc1559db15b730a1a93cb782971
SHA1 (patch-library_slurp) = 54a021519554c3eb95daf9396c32d6ec559ddab8
SHA1 (patch-library_virt) = b01c7b2d7cd49ad7720d3a1430d7bba41673d2a6

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-docs_man_man1_ansible-playbook.1,v 1.2 2013/04/13 17:51:57 riz Exp $
--- docs/man/man1/ansible-playbook.1.orig 2013-04-13 08:48:00.000000000 -0700
+++ docs/man/man1/ansible-playbook.1 2013-04-13 08:50:25.000000000 -0700
@@ -44,7 +44,7 @@
The
\fIPATH\fR
to the inventory hosts file, which defaults to
-\fI/etc/ansible/hosts\fR\&.
+\fI@PKG_SYSCONFDIR@/ansible/hosts\fR\&.
.RE
.PP
\fB\-M\fR \fIDIRECTORY\fR, \fB\-\-module\-path=\fR\fIDIRECTORY\fR
@@ -52,7 +52,7 @@
The
\fIDIRECTORY\fR
to load modules from\&. The default is
-\fI/usr/share/ansible\fR\&.
+\fI@PREFIX@/share/ansible\fR\&.
.RE
.PP
\fB\-e\fR \fIVARS\fR, \fB\-\-extra\-vars=\fR\fIVARS\fR
@@ -142,11 +142,11 @@
ANSIBLE_LIBRARY \(em Override the default ansible module library path
.SH "FILES"
.sp
-/etc/ansible/hosts \(em Default inventory file
+@PKG_SYSCONFDIR@/ansible/hosts \(em Default inventory file
.sp
-/usr/share/ansible/ \(em Default module library
+@PREFIX@/share/ansible/ \(em Default module library
.sp
-/etc/ansible/ansible\&.cfg \(em Config file, used if present
+@PKG_SYSCONFDIR@/ansible/ansible\&.cfg \(em Config file, used if present
.sp
~/\&.ansible\&.cfg \(em User config file, overrides the default config if present
.SH "AUTHOR"

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-docs_man_man1_ansible.1,v 1.2 2013/04/13 17:51:57 riz Exp $
--- docs/man/man1/ansible.1.orig 2013-04-13 08:53:23.000000000 -0700
+++ docs/man/man1/ansible.1 2013-04-13 08:55:50.000000000 -0700
@@ -44,7 +44,7 @@
The
\fIPATH\fR
to the inventory hosts file, which defaults to
-\fI/etc/ansible/hosts\fR\&.
+\fI@PREFIX@/ansible/hosts\fR\&.
.RE
.PP
\fB\-f\fR \fINUM\fR, \fB\-\-forks=\fR\fINUM\fR
@@ -70,7 +70,7 @@
The
\fIDIRECTORY\fR
to load modules from\&. The default is
-\fI/usr/share/ansible\fR\&.
+\fI@PREFIX@/share/ansible\fR\&.
.RE
.PP
\fB\-a\fR \'\fIARGUMENTS\fR\', \fB\-\-args=\fR\'\fIARGUMENTS\fR\'
@@ -168,11 +168,11 @@
Ranges of hosts are also supported\&. For more information and additional options, see the documentation on http://ansible\&.github\&.com/\&.
.SH "FILES"
.sp
-/etc/ansible/hosts \(em Default inventory file
+@PREFIX@/ansible/hosts \(em Default inventory file
.sp
-/usr/share/ansible/ \(em Default module library
+@PREFIX@/share/ansible/ \(em Default module library
.sp
-/etc/ansible/ansible\&.cfg \(em Config file, used if present
+@PREFIX@/ansible/ansible\&.cfg \(em Config file, used if present
.sp
~/\&.ansible\&.cfg \(em User config file, overrides the default config if present
.SH "ENVIRONMENT"

View File

@@ -0,0 +1,43 @@
$NetBSD: patch-examples_ansible.cfg,v 1.1 2013/02/26 17:42:59 riz Exp $
--- examples/ansible.cfg.orig 2013-02-25 11:33:44.000000000 -0800
+++ examples/ansible.cfg 2013-02-25 11:36:25.000000000 -0800
@@ -1,16 +1,16 @@
# config file for ansible -- http://ansible.github.com
# nearly all parameters can be overridden in ansible-playbook or with command line flags
-# ansible will read ~/.ansible.cfg or /etc/ansible/ansible.cfg, whichever it finds first
+# ansible will read ~/.ansible.cfg or @PKG_SYSCONFDIR@/ansible/ansible.cfg, whichever it finds first
[defaults]
# location of inventory file, eliminates need to specify -i
-hostfile = /etc/ansible/hosts
+hostfile = @PKG_SYSCONFDIR@/ansible/hosts
# location of ansible library, eliminates need to specify --module-path
-library = /usr/share/ansible
+library = @PREFIX@/share/ansible
# default module name used in /usr/bin/ansible when -m is not specified
@@ -104,12 +104,12 @@
# additional plugin paths for non-core plugins
-action_plugins = /usr/share/ansible_plugins/action_plugins
-callback_plugins = /usr/share/ansible_plugins/callback_plugins
-connection_plugins = /usr/share/ansible_plugins/connection_plugins
-lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
-vars_plugins = /usr/share/ansible_plugins/vars_plugins
-filter_plugins = /usr/share/ansible_plugins/filter_plugins
+action_plugins = @PREFIX@/share/ansible_plugins/action_plugins
+callback_plugins = @PREFIX@/share/ansible_plugins/callback_plugins
+connection_plugins = @PREFIX@/share/ansible_plugins/connection_plugins
+lookup_plugins = @PREFIX@/share/ansible_plugins/lookup_plugins
+vars_plugins = @PREFIX@/share/ansible_plugins/vars_plugins
+filter_plugins = @PREFIX@/share/ansible_plugins/filter_plugins
[paramiko_connection]

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-lib_ansible_callbacks.py,v 1.2 2013/04/13 17:51:57 riz Exp $
--- lib/ansible/callbacks.py.orig 2013-03-30 16:29:28.000000000 -0700
+++ lib/ansible/callbacks.py 2013-04-13 09:05:36.000000000 -0700
@@ -30,9 +30,9 @@
cowsay = "/usr/bin/cowsay"
elif os.path.exists("/usr/games/cowsay"):
cowsay = "/usr/games/cowsay"
-elif os.path.exists("/usr/local/bin/cowsay"):
+elif os.path.exists("@LOCALBASE@/bin/cowsay"):
# BSD path for cowsay
- cowsay = "/usr/local/bin/cowsay"
+ cowsay = "@LOCALBASE@/bin/cowsay"
elif os.path.exists("/opt/local/bin/cowsay"):
# MacPorts path for cowsay
cowsay = "/opt/local/bin/cowsay"

View File

@@ -0,0 +1,48 @@
$NetBSD: patch-lib_ansible_constants.py,v 1.3 2013/04/13 17:51:57 riz Exp $
--- lib/ansible/constants.py.orig 2013-03-04 13:18:12.000000000 -0800
+++ lib/ansible/constants.py 2013-04-13 09:48:31.000000000 -0700
@@ -36,7 +36,7 @@
p = ConfigParser.ConfigParser()
path1 = os.path.expanduser(os.environ.get('ANSIBLE_CONFIG', "~/.ansible.cfg"))
path2 = os.getcwd() + "/ansible.cfg"
- path3 = "/etc/ansible/ansible.cfg"
+ path3 = "@PKG_SYSCONFDIR@/ansible/ansible.cfg"
if os.path.exists(path1):
p.read(path1)
@@ -64,13 +64,13 @@
if getattr(sys, "real_prefix", None):
DIST_MODULE_PATH = os.path.join(sys.prefix, 'share/ansible/')
else:
- DIST_MODULE_PATH = '/usr/share/ansible/'
+ DIST_MODULE_PATH = '@PREFIX@/share/ansible/'
# sections in config file
DEFAULTS='defaults'
# configurable things
-DEFAULT_HOST_LIST = shell_expand_path(get_config(p, DEFAULTS, 'hostfile', 'ANSIBLE_HOSTS', '/etc/ansible/hosts'))
+DEFAULT_HOST_LIST = shell_expand_path(get_config(p, DEFAULTS, 'hostfile', 'ANSIBLE_HOSTS', '@PKG_SYSCONFDIR@/ansible/hosts'))
DEFAULT_MODULE_PATH = shell_expand_path(get_config(p, DEFAULTS, 'library', 'ANSIBLE_LIBRARY', DIST_MODULE_PATH))
DEFAULT_REMOTE_TMP = shell_expand_path(get_config(p, DEFAULTS, 'remote_tmp', 'ANSIBLE_REMOTE_TEMP', '$HOME/.ansible/tmp'))
DEFAULT_MODULE_NAME = get_config(p, DEFAULTS, 'module_name', None, 'command')
@@ -96,12 +96,12 @@
DEFAULT_HASH_BEHAVIOUR = get_config(p, DEFAULTS, 'hash_behaviour', 'ANSIBLE_HASH_BEHAVIOUR', 'replace')
DEFAULT_JINJA2_EXTENSIONS = get_config(p, DEFAULTS, 'jinja2_extensions', 'ANSIBLE_JINJA2_EXTENSIONS', None)
-DEFAULT_ACTION_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'action_plugins', 'ANSIBLE_ACTION_PLUGINS', '/usr/share/ansible_plugins/action_plugins'))
-DEFAULT_CALLBACK_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'callback_plugins', 'ANSIBLE_CALLBACK_PLUGINS', '/usr/share/ansible_plugins/callback_plugins'))
-DEFAULT_CONNECTION_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'connection_plugins', 'ANSIBLE_CONNECTION_PLUGINS', '/usr/share/ansible_plugins/connection_plugins'))
-DEFAULT_LOOKUP_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'lookup_plugins', 'ANSIBLE_LOOKUP_PLUGINS', '/usr/share/ansible_plugins/lookup_plugins'))
-DEFAULT_VARS_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'vars_plugins', 'ANSIBLE_VARS_PLUGINS', '/usr/share/ansible_plugins/vars_plugins'))
-DEFAULT_FILTER_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'filter_plugins', 'ANSIBLE_FILTER_PLUGINS', '/usr/share/ansible_plugins/filter_plugins'))
+DEFAULT_ACTION_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'action_plugins', 'ANSIBLE_ACTION_PLUGINS', '@PREFIX@/share/ansible_plugins/action_plugins'))
+DEFAULT_CALLBACK_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'callback_plugins', 'ANSIBLE_CALLBACK_PLUGINS', '@PREFIX@/share/ansible_plugins/callback_plugins'))
+DEFAULT_CONNECTION_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'connection_plugins', 'ANSIBLE_CONNECTION_PLUGINS', '@PREFIX@/share/ansible_plugins/connection_plugins'))
+DEFAULT_LOOKUP_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'lookup_plugins', 'ANSIBLE_LOOKUP_PLUGINS', '@PREFIX@/share/ansible_plugins/lookup_plugins'))
+DEFAULT_VARS_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'vars_plugins', 'ANSIBLE_VARS_PLUGINS', '@PREFIX@/share/ansible_plugins/vars_plugins'))
+DEFAULT_FILTER_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'filter_plugins', 'ANSIBLE_FILTER_PLUGINS', '@PREFIX@/share/ansible_plugins/filter_plugins'))
# non-configurable things
DEFAULT_SUDO_PASS = None

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-library_mysql_db,v 1.2 2013/04/13 17:51:57 riz Exp $
--- library/mysql_db.orig 2013-03-30 16:29:28.000000000 -0700
+++ library/mysql_db 2013-04-13 09:13:23.000000000 -0700
@@ -109,13 +109,13 @@
return True
def db_dump(host, user, password, db_name, target):
- res = os.system("/usr/bin/mysqldump -q -h "+host+"-u "+user+ " -p"+password+" "
+ res = os.system("@LOCALBASE@/bin/mysqldump -q -h "+host+"-u "+user+ " -p"+password+" "
+db_name+" > "
+target)
return (res == 0)
def db_import(host, user, password, db_name, target):
- res = os.system("/usr/bin/mysql -h "+host+" -u "+user+ " -p"+password+" "
+ res = os.system("@LOCALBASE@/bin/mysql -h "+host+" -u "+user+ " -p"+password+" "
+db_name+" < "
+target)
return (res == 0)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-library_ping,v 1.1 2013/02/26 00:13:00 hubertf Exp $
--- library/ping.orig 2012-11-23 15:56:11.000000000 +0000
+++ library/ping
@@ -26,7 +26,7 @@ short_description: Try to connect to hos
description:
- A trivial test module, this module always returns C(pong) on successful
contact. It does not make sense in playbooks, but it is useful from
- C(/usr/bin/ansible)
+ C(@LOCALBASE@/bin/ansible)
options: {}
examples:
- code: ansible webservers -m ping

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-library_pkgin,v 1.2 2013/04/13 17:51:57 riz Exp $
--- library/pkgin.orig 2013-03-30 16:29:28.000000000 -0700
+++ library/pkgin 2013-04-13 09:36:29.000000000 -0700
@@ -118,7 +118,7 @@
state = dict(default="present", choices=["present","absent"]),
name = dict(aliases=["pkg"], required=True)))
- pkgin_path = module.get_bin_path('pkgin', True, ['/opt/local/bin'])
+ pkgin_path = module.get_bin_path('pkgin', True, ['@LOCALBASE@/bin'])
p = module.params

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-library_raw,v 1.1 2013/02/26 00:13:00 hubertf Exp $
--- library/raw.orig 2013-01-20 14:03:36.000000000 +0000
+++ library/raw
@@ -28,7 +28,7 @@ description:
- This module does not require python on the remote system, much like
the M(script) module.
examples:
- - description: Example from C(/usr/bin/ansible) to bootstrap a legacy python 2.4 host
+ - description: Example from C(@LOCALBASE@/bin/ansible) to bootstrap a legacy python 2.4 host
code: "action: raw yum -y install python-simplejson"
notes:
- If you want to execute a command securely and predictably, it may be

View File

@@ -0,0 +1,44 @@
$NetBSD: patch-library_setup,v 1.2 2013/04/13 17:51:57 riz Exp $
--- library/setup.orig 2013-04-02 17:33:54.000000000 -0700
+++ library/setup 2013-04-13 09:39:00.000000000 -0700
@@ -43,7 +43,7 @@
description:
- This module is automatically called by playbooks to gather useful
variables about remote hosts that can be used in playbooks. It can also be
- executed directly by C(/usr/bin/ansible) to check what variables are
+ executed directly by C(@LOCALBASE@/bin/ansible) to check what variables are
available to a host. Ansible provides many I(facts) about the system,
automatically.
notes:
@@ -111,7 +111,7 @@
{ 'path' : '/usr/bin/zypper', 'name' : 'zypper' },
{ 'path' : '/usr/bin/pacman', 'name' : 'pacman' },
{ 'path' : '/bin/opkg', 'name' : 'opkg' },
- { 'path' : '/opt/local/bin/pkgin', 'name' : 'pkgin' },
+ { 'path' : '@LOCALBASE@/bin/pkgin', 'name' : 'pkgin' },
{ 'path' : '/opt/local/bin/port', 'name' : 'macports' },
{ 'path' : '/sbin/apk', 'name' : 'apk' },
]
@@ -1531,8 +1531,8 @@
# if facter is installed, and we can use --json because
# ruby-json is ALSO installed, include facter data in the JSON
- if os.path.exists("/usr/bin/facter"):
- rc, out, err = module.run_command("/usr/bin/facter --json")
+ if os.path.exists("@LOCALBASE@/bin/facter"):
+ rc, out, err = module.run_command("@LOCALBASE@/bin/facter --json")
facter = True
try:
facter_ds = json.loads(out)
@@ -1546,8 +1546,8 @@
# because it contains a lot of nested stuff we can't use for
# templating w/o making a nicer key for it (TODO)
- if os.path.exists("/usr/bin/ohai"):
- rc, out, err = module.run_command("/usr/bin/ohai")
+ if os.path.exists("@LOCALBASE@/bin/ohai"):
+ rc, out, err = module.run_command("@LOCALBASE@/bin/ohai")
ohai = True
try:
ohai_ds = json.loads(out)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-library_slurp,v 1.1 2013/02/26 00:13:00 hubertf Exp $
--- library/slurp.orig 2012-11-23 15:56:11.000000000 +0000
+++ library/slurp
@@ -40,7 +40,7 @@ examples:
"content": "aGVsbG8gQW5zaWJsZSB3b3JsZAo=",
"encoding": "base64"
}
- description: "Example using C(/usr/bin/ansible)"
+ description: "Example using C(@LOCALBASE@/bin/ansible)"
notes:
- "See also: M(fetch)"
requirements: []

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-library_virt,v 1.2 2013/04/13 17:51:58 riz Exp $
--- library/virt.orig 2013-04-02 17:33:54.000000000 -0700
+++ library/virt 2013-04-13 09:41:16.000000000 -0700
@@ -48,9 +48,9 @@
- code: "virt: name=alpha state=running"
description: "Example from Ansible Playbooks"
- code: ansible host -m virt -a "name=alpha command=status"
- description: "Example guest management with C(/usr/bin/ansible)"
+ description: "Example guest management with C(@LOCALBASE@/bin/ansible)"
- code: ansible host -m virt -a "name=alpha command=get_xml"
- description: "Use C(/usr/bin/ansible) to get the xml of the guest machine alpha"
+ description: "Use C(@LOCALBASE@/bin/ansible) to get the xml of the guest machine alpha"
requirements: [ "libvirt" ]
author: Michael DeHaan, Seth Vidal
'''