Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
401ce5eb
Commit
401ce5eb
authored
Apr 17, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #156 from tbielawa/packaging
Packaging fixes
parents
ff1b2006
e9e84177
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
77 additions
and
45 deletions
+77
-45
Makefile
+21
-12
VERSION
+2
-0
ansible.spec
+19
-16
docs/man/.gitignore
+1
-0
docs/man/man1/ansible-playbook.1
+12
-3
docs/man/man1/ansible-playbook.1.asciidoc.in
+1
-1
docs/man/man1/ansible.1
+14
-5
docs/man/man1/ansible.1.asciidoc.in
+1
-1
hacking/README
+0
-3
hacking/env-setup
+5
-2
library/virt
+1
-2
No files found.
Makefile
View file @
401ce5eb
#!/usr/bin/make
NAME
=
"ansible"
# This doesn't evaluate until it's called. The -D argument is the
# directory of the target file ($@), kinda like `dirname`.
ASCII2MAN
=
a2x
-D
$
(
dir
$@
)
-d
manpage
-f
manpage
$<
ASCII2HTMLMAN
=
a2x
-D
docs/html/man/
-d
manpage
-f
xhtml
# Space separated list of all the manpages we want to end up with.
MANPAGES
:=
docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1
SITELIB
=
$(
shell
python
-c
"from distutils.sysconfig import get_python_lib; print get_python_lib(
)
"
)
VERSION
:=
$(
shell
cat
VERSION
)
# These are for building the RPM.
RPMVERSION
:=
$(
shell
awk
'/Version/{print $$2; exit}'
< ansible.spec | cut
-d
"%"
-f1
)
RPMRELEASE
:=
$(
shell
awk
'/Release/{print $$2; exit}'
< ansible.spec | cut
-d
"%"
-f1
)
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)
"
RPMDIST
=
$(
shell
rpm
--eval
'%dist'
)
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
all
:
clean python
tests
:
PYTHONPATH
=
./lib nosetests
-v
# To force a rebuild of the docs run 'touch VERSION && make docs'
docs
:
$(MANPAGES)
%.1
:
%.1.asciidoc
$(ASCII2MAN)
# Regenerate %.1.asciidoc if %.1.asciidoc.in has been modified more
# recently than %.1.asciidoc.
%.1.asciidoc
:
%.1.asciidoc.in
sed
"s/%VERSION%/
$(VERSION)
/"
$<
>
$@
%.5
:
%.5.asciidoc
# Regenerate %.1 if %.1.asciidoc or VERSION has been modified more
# recently than %.1. (Implicitly runs the %.1.asciidoc recipe)
%.1
:
%.1.asciidoc VERSION
$(ASCII2MAN)
loc
:
...
...
@@ -36,19 +47,20 @@ pyflakes:
clean
:
@
echo
"Cleaning up distutils stuff"
-
rm
-rf
build
-
rm
-rf
dist
rm
-rf
build
rm
-rf
dist
@
echo
"Cleaning up byte compiled python stuff"
find
.
-regex
".*
\.
py[co]
$$
"
-delete
find
.
-
type
f
-
regex
".*
\.
py[co]
$$
"
-delete
@
echo
"Cleaning up editor backup files"
find
.
-type
f
\(
-name
"*~"
-or
-name
"#*"
\)
-delete
find
.
-type
f
\(
-name
"*.swp"
\)
-delete
@
echo
"Cleaning up asciidoc to man transformations and results"
find ./docs/man
-type
f
-name
"*.xml"
-delete
find ./docs/man
-type
f
-name
"*.asciidoc"
-delete
@
echo
"Cleaning up output from test runs"
-
rm
-rf
test
/test_data
rm
-rf
test
/test_data
@
echo
"Cleaning up RPM building stuff"
-
rm
-rf
MANIFEST rpm-build
rm
-rf
MANIFEST rpm-build
python
:
python setup.py build
...
...
@@ -90,6 +102,3 @@ rpm: rpmcommon
@
echo
"Ansible RPM is built:"
@
echo
" rpm-build/noarch/
$(RPMNVR)
.noarch.rpm"
@
echo
"#############################################"
.PHONEY
:
docs manual clean pep8
vpath
%.asciidoc
docs/man/man1
VERSION
0 → 100644
View file @
401ce5eb
0.0.2
\ No newline at end of file
ansible.spec
View file @
401ce5eb
%if 0%{?rhel} <= 5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%endif
Name: ansible
Release: 1%{?dist}
Summary: Minimal SSH command and control
Version: 0.0.2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Group: Development/Libraries
License: GPLv3
Prefix: %{_prefix}
Source0: https://github.com/downloads/ansible/ansible/%{name}-%{version}.tar.gz
Url: http://ansible.github.com
BuildArch: noarch
BuildRequires: asciidoc
BuildRequires: python-devel
BuildRequires: python2-devel
Requires: python-paramiko
Requires: python-jinja2
%description
Ansible is a extra-simple tool/API for doing 'parallel remote things' over SSH
executing commands, running "modules", or executing larger 'playbooks' that
can serve as a configuration management or deployment system.
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.
%prep
%setup -q
-n %{name}-%{version}
%setup -q
%build
python
setup.py build
%{__python}
setup.py build
%install
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%{__python} setup.py install -O1 --root=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/ansible/
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
...
...
@@ -43,14 +47,13 @@ cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
rm -rf $RPM_BUILD_ROOT
%files
%doc README.md PKG-INFO
%defattr(-,root,root)
%{_mandir}/man1/*.gz
%{python_sitelib}/*
%{python_sitelib}/ansible*
%{_bindir}/ansible*
%{_datadir}/ansible/*
%config(noreplace) /etc/ansible/hosts
%config(noreplace) %{_sysconfdir}/ansible/
%{_datadir}/ansible
%config(noreplace) %{_sysconfdir}/ansible
%doc README.md PKG-INFO
%doc %{_mandir}/man1/ansible*
%changelog
...
...
docs/man/.gitignore
View file @
401ce5eb
*.xml
*.asciidoc
docs/man/man1/ansible-playbook.1
View file @
401ce5eb
'\" t
.\" Title: ansible-playbook
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.7
5.2
<http://docbook.sf.net/>
.\" Date: 04/1
6
/2012
.\" Generator: DocBook XSL Stylesheets v1.7
6.1
<http://docbook.sf.net/>
.\" Date: 04/1
7
/2012
.\" Manual: System administration commands
.\" Source: Ansible 0.0.2
.\" Language: English
.\"
.TH "ANSIBLE\-PLAYBOOK" "1" "04/16/2012" "Ansible 0\&.0\&.2" "System administration commands"
.TH "ANSIBLE\-PLAYBOOK" "1" "04/17/2012" "Ansible 0\&.0\&.2" "System administration commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
...
...
docs/man/man1/ansible-playbook.1.asciidoc
→
docs/man/man1/ansible-playbook.1.asciidoc
.in
View file @
401ce5eb
...
...
@@ -2,7 +2,7 @@ ansible-playbook(1)
===================
:doctype:manpage
:man source: Ansible
:man version:
0.0.2
:man version:
%VERSION%
:man manual: System administration commands
NAME
...
...
docs/man/man1/ansible.1
View file @
401ce5eb
'\" t
.\" Title: ansible
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.7
5.2
<http://docbook.sf.net/>
.\" Date: 04/1
6
/2012
.\" Generator: DocBook XSL Stylesheets v1.7
6.1
<http://docbook.sf.net/>
.\" Date: 04/1
7
/2012
.\" Manual: System administration commands
.\" Source: Ansible 0.0.2
.\" Language: English
.\"
.TH "ANSIBLE" "1" "04/16/2012" "Ansible 0\&.0\&.2" "System administration commands"
.TH "ANSIBLE" "1" "04/17/2012" "Ansible 0\&.0\&.2" "System administration commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
...
...
@@ -25,7 +34,7 @@ ansible \- run a command somewhere else
ansible <host\-pattern> [\-f forks] [\-m module_name] [\-a args]
.SH "DESCRIPTION"
.sp
\fBAnsible\fR is an extra\-simple tool/framework/API for doing \
'remote things\'
over SSH\&.
\fBAnsible\fR is an extra\-simple tool/framework/API for doing \
*(Aqremote things\*(Aq
over SSH\&.
.SH "ARGUMENTS"
.PP
\fBhost\-pattern\fR
...
...
@@ -63,7 +72,7 @@ to load modules from\&. The default is
\fI/usr/share/ansible\fR\&.
.RE
.PP
\fB\-a\fR \
'\fIARGUMENTS\fR\', \fB\-\-args=\fR\'\fIARGUMENTS\fR\'
\fB\-a\fR \
*(Aq\fIARGUMENTS\fR\*(Aq, \fB\-\-args=\fR\*(Aq\fIARGUMENTS\fR\*(Aq
.RS 4
The
\fIARGUMENTS\fR
...
...
docs/man/man1/ansible.1.asciidoc
→
docs/man/man1/ansible.1.asciidoc
.in
View file @
401ce5eb
...
...
@@ -2,7 +2,7 @@ ansible(1)
=========
:doctype:manpage
:man source: Ansible
:man version:
0.0.2
:man version:
%VERSION%
:man manual: System administration commands
NAME
...
...
hacking/README
View file @
401ce5eb
...
...
@@ -6,6 +6,3 @@ To use it from the root of a checkout:
$ . ./hacking/env-setup
Note the space between the '.' and the './'
Man pages will not load until you run 'make docs' from the root of the
checkout.
hacking/env-setup
View file @
401ce5eb
...
...
@@ -4,14 +4,17 @@
PREFIX_PYTHONPATH
=
"
$PWD
/lib"
PREFIX_PATH
=
"
$PWD
/bin"
PREFIX_MANPATH
=
"
$PWD
/docs/man"
export
PYTHONPATH
=
$PREFIX_PYTHONPATH
:
$PYTHONPATH
export
PATH
=
$PREFIX_PATH
:
$PATH
export
ANSIBLE_LIBRARY
=
"
$PWD
/library"
export
MANPATH
=
$PREFIX_MANPATH
:
$MANPATH
echo
"PATH=
$PATH
"
echo
"PYTHONPATH=
$PYTHONPATH
"
echo
"ANSIBLE_LIBRARY=
$ANSIBLE_LIBRARY
"
echo
"MANPATH=
$MANPATH
"
echo
"
r
eminder: specify your host file with -i"
echo
"
d
one."
echo
"
R
eminder: specify your host file with -i"
echo
"
D
one."
library/virt
View file @
401ce5eb
...
...
@@ -10,8 +10,7 @@ This software may be freely redistributed under the terms of the GNU
general public license.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
VIRT_FAILED
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment