system/ansible: Updated for version 1.2.1.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Alex Diaconu 2013-07-18 15:08:08 -05:00 committed by Erik Hanson
parent 88acaa6be7
commit 5235ca2587
5 changed files with 12 additions and 14 deletions

View file

@ -1,12 +1,12 @@
Ansible (a ssh based config management framework)
Ansible (a ssh-based config management framework)
A radically simple, model-driven orchestration solution that automates
configuration, software deployment, and other IT needs.
It comes as an easy-to-use and powerful alternative to infrastructure
management tools such as CFEngine, Chef, Puppet, and SaltStack.
management tools such as CFEngine, Chef, Puppet and SaltStack.
*Note* that as the source tarball is hosted by github (nodeload), its filename
*NOTE* that as the source tarball is hosted by github (nodeload), its filename
will vary depending on the download method. The filename may be "release1.2"
when downloaded via wget/curl or it may be "ansible-ansible-v1.2-*.tar.gz"
when downloaded via a browser. Any other form will not be accounted for, as

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ansible
VERSION=${VERSION:-1.2}
VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@ -68,7 +68,7 @@ rm -rf $PRGNAM-$VERSION
# browser -> ansible-ansible-v{tag}-{n}-g{sha}.tar.gz
# -- refer to https://github.com/blog/651-annotated-downloads
SOURCEFILE=$(find "$CWD" -type f \( -name "release$VERSION" -o \
-name "$PKGNAM-$PKGNAM-v$VERSION-*" \) -print | head -1)
-name "$PRGNAM-$PRGNAM-v$VERSION-*" \) -print | head -1)
mkdir $PRGNAM-$VERSION
# The container directory (ansible-ansible-v{tag}...) must be stripped
tar xvf "$SOURCEFILE" -C $PRGNAM-$VERSION --strip 1
@ -98,18 +98,17 @@ find $PKG/usr/man -iname '.git*' -delete
# Remove redundant executable perms granted to some modules
find $PKG/usr/share/ansible -type f -perm /111 -exec chmod -x {} \;
# Fix plugin paths in example config file
# Fix plugin paths and also remove the duplicated 'library' and 'hostfile' settings
orig_path="/usr/share/ansible_plugins"
site_packages="$(python2 -c 'from distutils.sysconfig import get_python_lib; print get_python_lib();')/ansible"
plug_pat='(action|filter|connection|lookup)'
sed -i -r \
-e "s:$orig_path/${plug_pat}_plugins:$site_packages/runner/\1_plugins:" \
-e "s:$orig_path/callback_plugins:$site_packages/callback_plugins:" \
-e "s:$orig_path/vars_plugins:$site_packages/inventory/vars_plugins:" \
-e "7,12d" \
examples/ansible.cfg
# Populate config dir (/etc/ansible)
mkdir -p $PKG/etc/ansible
cp -a examples/ansible.cfg $PKG/etc/ansible/ansible.cfg.new
cp -a examples/hosts $PKG/etc/ansible/hosts.new

View file

@ -1,8 +1,8 @@
PRGNAM="ansible"
VERSION="1.2"
VERSION="1.2.1"
HOMEPAGE="http://ansible.cc"
DOWNLOAD="http://github.com/ansible/ansible/tarball/release1.2"
MD5SUM="91ca6ddc295ed8aa19959273062edaf7"
DOWNLOAD="http://github.com/ansible/ansible/tarball/release1.2.1"
MD5SUM="74c3e4770418d592dcd465b54e725872"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="paramiko PyYAML Jinja2"

View file

@ -13,4 +13,3 @@ config() {
config etc/ansible/ansible.cfg.new
config etc/ansible/hosts.new

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
ansible: Ansible (a ssh based config management framework)
ansible: Ansible (a ssh-based config management framework)
ansible:
ansible: A radically simple, model-driven orchestration solution that
ansible: automates configuration, software deployment, and other IT needs.