4e6bda04c4
1.1 "Mean Street" -- 4/2/2013 Core Features * added --check option for "dry run" mode * added --diff option to show how templates or copied files change, or might change * --list-tasks for the playbook will list the tasks without running them * able to set the environment by setting "environment:" as a dictionary on any task (go proxy support!) * added ansible_ssh_user and ansible_ssh_pass for per-host/group username and password * jinja2 extensions can now be loaded from the config file * support for complex arguments to modules (within reason) * can specify ansible_connection=X to define the connection type in inventory variables * a new chroot connection type * module common code now has basic type checking (and casting) capability * module common now supports a 'no_log' attribute to mark a field as not to be syslogged * inventory can now point to a directory containing multiple scripts/hosts files, if using this, put group_vars/host_vars directories inside this directory * added configurable crypt scheme for 'vars_prompt' * password generating lookup plugin -- $PASSWORD(path/to/save/data/in) * added --step option to ansible-playbook, works just like Linux interactive startup! Modules Added: * bzr (bazaar version control) * cloudformation * django-manage * gem (ruby gems) * homebrew * lvg (logical volume groups) * lvol (LVM logical volumes) * macports * mongodb_user * netscaler * okg * openbsd_pkg * rabbit_mq_plugin * rabbit_mq_user * rabbit_mq_vhost * rabbit_mq_parameter * rhn_channel * s3 -- allows putting file contents in buckets for sharing over s3 * uri module -- can get/put/post/etc * vagrant -- launching VMs with vagrant, this is different from existing vagrant plugin * zfs
44 lines
2 KiB
Text
44 lines
2 KiB
Text
$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)
|