forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spec file installs default example hosts files Spec file marks the contents of /etc/ansible as %config(noreplace) Example hosts file now with instructional comments
- Loading branch information
Showing
4 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include README.md AUTHORS.md ansible.spec | ||
include examples/hosts | ||
recursive-include docs * | ||
include Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ make docs | |
%install | ||
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
mkdir -p $RPM_BUILD_ROOT/etc/ansible/ | ||
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/ | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
@@ -45,7 +46,8 @@ rm -rf $RPM_BUILD_ROOT | |
%{python_sitelib}/* | ||
%{_bindir}/ansible* | ||
%{_datadir}/ansible/* | ||
%{_sysconfdir}/ansible/ | ||
%config(noreplace) %{_sysconfdir}/ansible/ | ||
|
||
|
||
%changelog | ||
* Sat Mar 10 2012 <[email protected]> - 0.0.1-1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This is the default ansible 'hosts' file. | ||
# | ||
# It should live in /etc/ansible/hosts | ||
# | ||
# - Comments begin with the '#' character | ||
# - Blank lines are ignored | ||
# - Groups of hosts are delimited by [header] elements | ||
# - You can enter hostnames or ip addresses | ||
# - A hostname/ip can be a member of multiple groups | ||
# | ||
# Ex 1: Ungrouped hosts, specify before any group headers. | ||
green.bikeshed.org | ||
blue.bikeshed.org | ||
red.bikeshed.org | ||
bikeshed.org | ||
bastion.secure.bikeshed.org | ||
192.168.100.1 | ||
192.168.100.10 | ||
|
||
# Ex 2: A collection of hosts belonging to the 'webservers' group | ||
[webservers] | ||
www01.bikeshed.org | ||
www02.bikeshed.org | ||
wheel.colors.com | ||
192.168.1.100 | ||
192.168.1.110 | ||
# Your personal website also runs a webserver: | ||
myserver.com | ||
|
||
# Ex 3: A collection of database servers in the 'dbservers' group | ||
[dbservers] | ||
db01.intranet.mydomain.net | ||
10.25.1.56 | ||
db02.intranet.mydomain.net | ||
10.25.1.57 | ||
# Perhaps you serve a db off your personal server too: | ||
myserver.com |