Accepting request 263653 from home:bmanojlovic:ansible
- updated package to latest release ## 1.8.1 "You Really Got Me" * Various bug fixes in postgresql and mysql modules. * Fixed a bug related to lookup plugins used within roles not finding files based on the relative paths to the roles files/ directory. * Fixed a bug related to vars specified in plays being templated too early, resulting in incorrect variable interpolation. * Fixed a bug related to git submodules in bare repos. * fact caching support, pluggable, initially supports Redis (DOCS pending) * 'serial' size in a rolling update can be specified as a percentage * added new Jinja2 filters, 'min' and 'max' that take lists * new 'ansible_version' variable available contains a dictionary of version info * For ec2 dynamic inventory, ec2.ini can has various new configuration options * 'ansible vault view filename.yml' opens filename.yml decrypted in a pager. * no_log parameter now surpressess data from callbacks/output as well as syslog * ansible-galaxy install -f requirements.yml allows advanced options and installs from non-galaxy SCM sources and tarballs. * command_warnings feature will warn about when usage of the shell/command module can be simplified to use core modules - this can be enabled in ansible.cfg * new omit value can be used to leave off a parameter when not set, like so module_name: a=1 b={{ c | default(omit) }}, would not pass value for b (not even an empty value) if c was not set. * developers: 'baby JSON' in module responses, originally intended for writing modules in bash, is removed as a feature to simplify logic, script module remains available for running bash scripts. * async jobs started in "fire & forget" mode can now be checked on at a later time. * added ability to subcategorize modules for docs.ansible.com * added ability for shipped modules to have aliases with symlinks * added ability to deprecate older modules by starting with "_" and including "deprecated: message why" in module docs + New Modules: OBS-URL: https://build.opensuse.org/request/show/263653 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=33
This commit is contained in:
parent
4b5e88d141
commit
612c706a89
1365
CHANGELOG.md
1365
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c688bac4c3cebe98844a01ac1399114aec81a25f5bdcb2142b5c3b61dc92b4e7
|
||||
size 514616
|
3
ansible-1.8.1.tar.gz
Normal file
3
ansible-1.8.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b08129cb4fe20dfc33403cc7245ea2c95999fdb9922fed7f06d4ba51ba8528b1
|
||||
size 12517530
|
@ -1,5 +1,4 @@
|
||||
addFilter("non-executable-script.*/usr/share/ansible/.*");
|
||||
addFilter("non-executable-script.*/usr/.*/ansible/utils/module_docs.py");
|
||||
addFilter("non-executable-script.*/usr/.*/ansible/runner/action_plugins/synchronize.py");
|
||||
# A Python HTTP client library ...
|
||||
addFilter("explicit-lib-dependency python-httplib2");
|
||||
# Modules are scripts by definition but are executed from ansible not directly
|
||||
addFilter("non-executable-script.*/usr/lib/python.*/site-packages/ansible/modules/.*");
|
||||
# same as utils and runner script
|
||||
addFilter("non-executable-script.*/usr/lib/python.*/site-packages/ansible/(runner|utils)/.*.py");
|
||||
|
128
ansible.changes
128
ansible.changes
@ -1,6 +1,104 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 27 11:17:53 UTC 2014 - boris@steki.net
|
||||
|
||||
- updated package to latest release ## 1.8.1 "You Really Got Me"
|
||||
* Various bug fixes in postgresql and mysql modules.
|
||||
* Fixed a bug related to lookup plugins used within roles not
|
||||
finding files based on the relative paths to the roles files/ directory.
|
||||
* Fixed a bug related to vars specified in plays being templated too early,
|
||||
resulting in incorrect variable interpolation.
|
||||
* Fixed a bug related to git submodules in bare repos.
|
||||
* fact caching support, pluggable, initially supports Redis (DOCS pending)
|
||||
* 'serial' size in a rolling update can be specified as a percentage
|
||||
* added new Jinja2 filters, 'min' and 'max' that take lists
|
||||
* new 'ansible_version' variable available contains a dictionary of version info
|
||||
* For ec2 dynamic inventory, ec2.ini can has various new configuration options
|
||||
* 'ansible vault view filename.yml' opens filename.yml decrypted in a pager.
|
||||
* no_log parameter now surpressess data from callbacks/output as well as syslog
|
||||
* ansible-galaxy install -f requirements.yml allows advanced options and installs
|
||||
from non-galaxy SCM sources and tarballs.
|
||||
* command_warnings feature will warn about when usage of the shell/command module
|
||||
can be simplified to use core modules - this can be enabled in ansible.cfg
|
||||
* new omit value can be used to leave off a parameter when not set, like so
|
||||
module_name: a=1 b={{ c | default(omit) }}, would not pass value for b (not even
|
||||
an empty value) if c was not set.
|
||||
* developers: 'baby JSON' in module responses, originally intended for writing modules
|
||||
in bash, is removed as a feature to simplify logic, script module remains available
|
||||
for running bash scripts.
|
||||
* async jobs started in "fire & forget" mode can now be checked on at a later time.
|
||||
* added ability to subcategorize modules for docs.ansible.com
|
||||
* added ability for shipped modules to have aliases with symlinks
|
||||
* added ability to deprecate older modules by starting with "_" and
|
||||
including "deprecated: message why" in module docs
|
||||
|
||||
+ New Modules:
|
||||
* cloud: rax_cdb - manages Rackspace Cloud Database instances
|
||||
* cloud: rax_cdb_database - manages Rackspace Cloud Databases
|
||||
* cloud: rax_cdb_user - manages Rackspace Cloud Database users
|
||||
* monitoring: zabbix_maintaince - handles outage windows with Zabbix
|
||||
* monitoring: bigpanda - support for bigpanda
|
||||
* net_infrastructure: a10_server - manages server objects on A10 devices
|
||||
* net_infrastructure: a10_service_group - manages service group objects on A10 devices
|
||||
* net_infrastructure: a10_virtual_server - manages virtual server objects on A10 devices
|
||||
* system: getent - read getent databases
|
||||
|
||||
+ Some other notable changes:
|
||||
* added the ability to set "instance filters" in the ec2.ini to limit results
|
||||
from the inventory plugin.
|
||||
* upgrades for various variable precedence items and parsing related items
|
||||
* added a new "follow" parameter to the file and copy modules, which allows
|
||||
actions to be taken on the target of a symlink rather than the symlink itself.
|
||||
* if a module should ever traceback, it will return a standard error, catchable
|
||||
by ignore_errors, versus an 'unreachable'
|
||||
* ec2_lc: added support for multiple new parameters like kernel_id, ramdisk_id and ebs_optimized.
|
||||
* ec2_elb_lb: added support for the connection_draining_timeout and cross_az_load_balancing options.
|
||||
* support for symbolic representations (ie. u+rw) for file permission modes (file/copy/template modules etc.).
|
||||
* docker: Added support for specifying the net type of the container.
|
||||
* docker: support for specifying read-only volumes.
|
||||
* docker: support for specifying the API version to use for the remote connection.
|
||||
* openstack modules: various improvements
|
||||
* irc: ssl support for the notification module
|
||||
* npm: fix flags passed to package installation
|
||||
* windows: improved error handling
|
||||
* setup: additional facts on System Z
|
||||
* apt_repository: certificate validation can be disabled if requested
|
||||
* pagerduty module: misc improvements
|
||||
* ec2_lc: public_ip boolean configurable in launch configurations
|
||||
* ec2_asg: fixes related to proper termination of an autoscaling group
|
||||
* win_setup: total memory fact correction
|
||||
* ec2_vol: ability to list existing volumes
|
||||
* ec2: can set optimized flag
|
||||
* various parser improvements
|
||||
* produce a friendly error message if the SSH key is too permissive
|
||||
* ec2_ami_search: support for SSD and IOPS provisioned EBS images
|
||||
* can set ansible_sudo_exe as an inventory variable which allows specifying
|
||||
a different sudo (or equivalent) command
|
||||
* git module: Submodule handling has changed. Previously if you used the
|
||||
"recursive" parameter to handle submodules, ansible would track the
|
||||
submodule upstream's head revision. This has been changed to checkout the
|
||||
version of the submodule specified in the superproject's git repository.
|
||||
This is inline with what git submodule update does. If you want the old
|
||||
behaviour use the new module parameter track_submodules=yes
|
||||
* Checksumming of transferred files has been made more portable and now uses
|
||||
the sha1 algorithm instead of md5 to be compatible with FIPS-140.
|
||||
+ As a small side effect, the fetch module no longer returns a useful value
|
||||
in remote_md5. If you need a replacement, switch to using remote_checksum
|
||||
which returns the sha1sum of the remote file.
|
||||
* ansible-doc CLI tool contains various improvements for working with different terminals
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 29 10:14:10 UTC 2014 - boris@steki.net
|
||||
|
||||
- updated package to build on Centos and Rhel
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 10 12:55:35 UTC 2014 - boris@steki.net
|
||||
|
||||
- add python-pywinrm to requirements to enable windows hosts automation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 27 09:16:52 UTC 2014 - kgronlund@suse.com
|
||||
|
||||
- update to 1.7.2:
|
||||
- Fixes a bug in accelerate mode which caused a traceback when trying to use that connection method.
|
||||
- Fixes a bug in vault where the password file option was not being used correctly internally.
|
||||
@ -52,8 +150,34 @@ Sun Aug 17 15:21:38 UTC 2014 - lars@linux-schulserver.de
|
||||
+ Vault password files can now be executable, to support scripts
|
||||
that fetch the vault password.
|
||||
+ Fixes an issue with the copy module when copying a directory that
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 15 15:25:04 UTC 2014 - boris@steki.net
|
||||
|
||||
- updated to upstream version 1.7.1
|
||||
* Security fix to disallow specifying 'args:' as a string,
|
||||
which could allow the insertion of extra module parameters through variables.
|
||||
* Performance enhancements related to previous security fixes,
|
||||
which could cause slowness when modules returned very large JSON results.
|
||||
This specifically impacted the unarchive module frequently, which returns
|
||||
the details of all unarchived files in the result.
|
||||
* Docker module bug fixes:
|
||||
+ Fixed support for specifying rw/ro bind modes for volumes
|
||||
+ Fixed support for allowing the tag in the image parameter
|
||||
* Major new features:
|
||||
+ Windows support (alpha) using native PowerShell remoting
|
||||
+ Tasks can now specify `run_once: true`, meaning they will
|
||||
be executed exactly once. This can be combined with delegate_to
|
||||
to trigger actions you want done just the one time versus for
|
||||
every host in inventory.
|
||||
* Inventory speed improvements for very large inventories.
|
||||
* Vault password files can now be executable, to support
|
||||
scripts that fetch the vault password.
|
||||
|
||||
* Fixes an issue with the copy module when copying a directory that
|
||||
fails when changing file attributes and the target file already exists
|
||||
+ Improved unicode handling when splitting args
|
||||
|
||||
+ Further improvements to module parameter parsing to address
|
||||
additional regressions caused by security fixes
|
||||
+ Corrects a regression in the way shell and command parameters
|
||||
@ -69,6 +193,8 @@ Sun Aug 17 15:21:38 UTC 2014 - lars@linux-schulserver.de
|
||||
prevent duplicate params from superseding previous params (CVE-2014-4967)
|
||||
- adapt specfile requirements for RedHat and Fedora
|
||||
|
||||
- fixed zypper and zypper_repository modules to support SLE 10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 10 12:53:16 UTC 2014 - lars@linux-schulserver.de
|
||||
|
||||
|
174
ansible.spec
174
ansible.spec
@ -3,6 +3,7 @@
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright 2013 by Lars Vogdt
|
||||
# Copyright 2014 by Boris Manojlovic
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,130 +19,101 @@
|
||||
|
||||
|
||||
Name: ansible
|
||||
Version: 1.7.2
|
||||
Version: 1.8.1
|
||||
Release: 0
|
||||
Summary: SSH-based configuration management, deployment, and orchestration engine
|
||||
License: GPL-3.0+
|
||||
Group: System/Management
|
||||
Url: http://www.ansible.com/
|
||||
# http://releases.ansible.com/ansible/ansible-%%{version}.tar.gz
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: %{name}-rpmlintrc
|
||||
# https://raw.github.com/ansible/ansible/release%%{version}/CHANGELOG.md
|
||||
Source2: CHANGELOG.md
|
||||
Requires: sshpass
|
||||
#
|
||||
# (open)SUSE
|
||||
#
|
||||
Summary: Radically simple IT automation
|
||||
License: GPL-3.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://ansible.com/
|
||||
Source: https://pypi.python.org/packages/source/a/ansible/ansible-%{version}.tar.gz
|
||||
Source99: ansible-rpmlintrc
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: xz
|
||||
BuildRequires: python-paramiko
|
||||
Requires: python-paramiko
|
||||
BuildRequires: python-Jinja2
|
||||
Requires: python-Jinja2
|
||||
BuildRequires: python-PyYAML
|
||||
Requires: python-PyYAML
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-setuptools
|
||||
BuildRequires: python-pycrypto >= 2.6
|
||||
Requires: python-pycrypto >= 2.6
|
||||
Recommends: python-dopy
|
||||
Recommends: python-pywinrm
|
||||
Recommends: askpass
|
||||
%endif
|
||||
|
||||
# RHEL == 6
|
||||
%if 0%{?rhel} == 6
|
||||
Requires: python-crypto2.6
|
||||
%endif
|
||||
# RHEL > 5
|
||||
%if 0%{?rhel} && 0%{?rhel} > 5
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-devel
|
||||
Requires: PyYAML
|
||||
Requires: python-httplib2
|
||||
Requires: python-jinja2
|
||||
Requires: python-keyczar
|
||||
Requires: python-setuptools
|
||||
%if 0%{?suse_version} > 01020
|
||||
BuildRequires: fdupes
|
||||
Recommends: python-paramiko
|
||||
%else
|
||||
Requires: python-paramiko
|
||||
Requires: python-setuptools
|
||||
%endif
|
||||
%if 0%{?suse_version} <= 1110
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
#
|
||||
# RHEL
|
||||
#
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%if 0%{?rhel} == 5
|
||||
%define __python /usr/bin/python26
|
||||
%endif
|
||||
BuildRequires: python26-devel
|
||||
BuildRequires: python26-setuptools
|
||||
Requires: python26-PyYAML
|
||||
Requires: python26-httplib2
|
||||
Requires: python26-httplib2
|
||||
Requires: python26-jinja2
|
||||
Requires: python26-keyczar
|
||||
Requires: python26-paramiko
|
||||
Requires: python26-setuptools
|
||||
%endif
|
||||
%if 0%{?rhel} > 5 || 0%{?rhel_version} > 505
|
||||
BuildRequires: python26-devel
|
||||
BuildRequires: python26-setuptools
|
||||
Requires: python26-PyYAML
|
||||
Requires: python26-httplib2
|
||||
Requires: python26-httplib2
|
||||
Requires: python26-jinja2
|
||||
Requires: python26-keyczar
|
||||
Requires: python26-paramiko
|
||||
Requires: python26-setuptools
|
||||
%endif
|
||||
%if 0%{?rhel} == 6
|
||||
Requires: python-crypto2.6
|
||||
%endif
|
||||
#
|
||||
# Fedora
|
||||
#
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Requires: PyYAML
|
||||
Requires: python-httplib2
|
||||
Requires: python-httplib2
|
||||
Requires: python-jinja2
|
||||
Requires: python-keyczar
|
||||
Requires: python-paramiko
|
||||
Requires: python-setuptools
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
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.
|
||||
Ansible is a radically simple IT automation system. It handles
|
||||
configuration-management, application deployment, cloud provisioning, ad-hoc
|
||||
task-execution, and multinode orchestration - including trivializing things
|
||||
like zero downtime rolling updates with load balancers.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
install -m644 %{SOURCE2} .
|
||||
%setup -q -n ansible-%{version}
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install -O1 --prefix=%{_prefix} --root=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/ansible/
|
||||
cp examples/hosts %{buildroot}%{_sysconfdir}/ansible/
|
||||
cp examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
cp -v docs/man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
||||
mkdir -p %{buildroot}%{_datadir}/ansible
|
||||
cp -vr library/* %{buildroot}%{_datadir}/ansible/
|
||||
%if 0%{?suse_version} > 01020
|
||||
%fdupes %{buildroot}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
for manfile in man1/ansible.1 man1/ansible-doc.1 \
|
||||
man1/ansible-galaxy.1 man1/ansible-playbook.1 \
|
||||
man1/ansible-pull.1 man1/ansible-vault.1
|
||||
do
|
||||
install -Dm 0644 docs/man/${manfile} %{buildroot}%{_mandir}/${manfile}
|
||||
done
|
||||
# Default configuration not really required by default.
|
||||
install -Dm 0644 examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/ansible.cfg.example
|
||||
install -Dm 0644 examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/ansible.cfg
|
||||
install -Dm 0644 examples/hosts %{buildroot}%{_sysconfdir}/ansible/hosts.example
|
||||
install -Dm 0644 examples/hosts %{buildroot}%{_sysconfdir}/ansible/hosts
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/ansible*
|
||||
%{_bindir}/ansible*
|
||||
%dir %{_datadir}/ansible
|
||||
%dir %{_datadir}/ansible/*
|
||||
%{_datadir}/ansible/*/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}
|
||||
%doc README.md PKG-INFO COPYING CHANGELOG.md
|
||||
%doc %{_mandir}/man1/ansible*
|
||||
%doc examples/playbooks
|
||||
%doc COPYING README.md
|
||||
%{_bindir}/ansible
|
||||
%{_bindir}/ansible-playbook
|
||||
%{_bindir}/ansible-pull
|
||||
%{_bindir}/ansible-doc
|
||||
%{_bindir}/ansible-galaxy
|
||||
%{_bindir}/ansible-vault
|
||||
%{python_sitelib}/*
|
||||
%{_mandir}/man1/ansible.1*
|
||||
%{_mandir}/man1/ansible-doc.1*
|
||||
%{_mandir}/man1/ansible-galaxy.1*
|
||||
%{_mandir}/man1/ansible-playbook.1*
|
||||
%{_mandir}/man1/ansible-pull.1*
|
||||
%{_mandir}/man1/ansible-vault.1*
|
||||
%dir %{_sysconfdir}/ansible
|
||||
%config(noreplace) %{_sysconfdir}/ansible/ansible.cfg
|
||||
%config %{_sysconfdir}/ansible/ansible.cfg.example
|
||||
%config(noreplace) %{_sysconfdir}/ansible/hosts
|
||||
%config %{_sysconfdir}/ansible/hosts.example
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user