Geoff Garside
64e2cb0007
Add swig to list of test_install cleanup items.
2013-02-12 20:21:05 +00:00
Geoff Garside
b23dd262a8
Add FreeBSD test_install cleanup rules.
...
To the `pkg autoremove` command will remove any packages from the system
which are not currently depended on by any other packages.
2013-02-12 19:27:11 +00:00
Geoff Garside
adc5030b36
Add FreeBSD detection to bootstrap.ext.os_data
2013-02-12 19:21:13 +00:00
Geoff Garside
f9b8ff818c
Store PACKAGESITE in BS_PACKAGESITE.
...
If the PACKAGESITE environment variable is set then we will use that
value, otherwise we calculate a sensible default and use that instead.
2013-02-12 19:10:38 +00:00
Geoff Garside
506518a561
Remove duped lines now $fname checks are gone.
2013-02-12 18:48:11 +00:00
Geoff Garside
2abe9fb03c
Remove redundant $fname tests when copying configs.
...
Testing for the sample file existence will protect against the lack of a
syndic.sample file.
2013-02-12 18:44:06 +00:00
Pedro Algarvio
f6080c0422
Allow tweaking colour support from an environment variable.
...
* Passing something like `BS_COLORS=0` disables colour support and is the same as passing `-N` to the script.
2013-02-12 18:35:31 +00:00
Geoff Garside
5545aa6cfd
Make {master,minion}.sample config copying safer.
...
We make sure they exist first :)
2013-02-12 18:33:07 +00:00
Geoff Garside
f7d14732a4
Copy {master,minion}.sample files if enabled.
2013-02-12 17:59:28 +00:00
Geoff Garside
01bd681a32
Use suggested form for DISTRO_NAME_L final sed.
2013-02-12 17:52:47 +00:00
Geoff Garside
e796bb2941
Allow PACKAGESITE to be overridden by env variable.
...
If the PACKAGESITE environment variable is not set then the normal
pkgbeta URL will be generated, if the variable is set then this will be
used in preference to the pkgbeta URL.
2013-02-12 00:21:35 +00:00
Geoff Garside
36d0260dcc
Fix DISTRO_NAME_L for FreeBSD.
...
I've tested this with Ubuntu as well as FreeBSD and the [[:space:]]
method appears to work successfully across both OS's.
2013-02-11 23:59:35 +00:00
Geoff Garside
f7559790ef
Protect from spamming /etc/rc.conf repeatedly.
...
The _post functions can be run multiple times. Make sure we don't write
the same string into /etc/rc.conf more than once.
2013-02-11 23:56:04 +00:00
Geoff Garside
451d86afb6
Add start daemons support for FreeBSD.
2013-02-11 23:15:37 +00:00
Geoff Garside
a6ca69b9b4
FreeBSD update salt package -> sysutils/py-salt.
...
The salt package was renamed to the py- prefix to match other python
based ports. When built the name will be given a shortname of py27-salt,
in order to avoid Python versioning issues in the future we use the full
portname "sysutils/py-salt" which should always find the appropriate
version.
2013-02-11 23:01:15 +00:00
Geoff Garside
0845b9dbcb
Add support for FreeBSD 9.1 as well as 9.0.
2013-02-11 23:01:15 +00:00
Pedro Algarvio
7792f4c8c0
Add an horizontal ruler in the readme.
2013-02-11 22:36:05 +00:00
Pedro Algarvio
67deb7dc83
Also include the daemons restart info in the script's documentation.
2013-02-11 22:35:49 +00:00
Pedro Algarvio
7adc8718c2
Update README.rst
to include the newly added start daemons function.
2013-02-11 22:28:00 +00:00
Pedro Algarvio
062fe28091
Define truth values to use within the script. Omit debug output while still allowing it to show up with the -D
flag.
2013-02-11 20:44:46 +00:00
Pedro Algarvio
2c90980644
Add minimal color support to the script.
2013-02-11 20:22:33 +00:00
Pedro Algarvio
ab00e5f439
Renamed echoerr
to echoerror
. Added echoinfo
and echodebug
.
...
Our "logging" messages now use all of the above "levels" and no longer require any prefix, just the actual message.
2013-02-11 19:17:21 +00:00
Pedro Algarvio
a2fbdbf329
Merge pull request #44 from s0undt3ch/issues/39
...
Added support for an additional function to start daemons
2013-02-10 04:27:35 -08:00
Pedro Algarvio
d916e2fe5a
Create a global cleanup commands dictionary by OS name.
2013-02-10 12:21:27 +00:00
Pedro Algarvio
ba0f655e79
Remove python as a language in .travis.yml
.
2013-02-10 12:20:55 +00:00
Pedro Algarvio
b3deaa9861
Stream stds
in the subclassed Popen's poll function.
2013-02-10 12:10:02 +00:00
Pedro Algarvio
4135213820
Some more NameError fixes and preexec_fn
was possibly what was causing Travis to fail.
2013-02-10 00:52:29 +00:00
Pedro Algarvio
1a26fd6210
Fix NameError
.
2013-02-10 00:36:29 +00:00
Pedro Algarvio
e0a0a23d06
Don't rename err buffer.
2013-02-10 00:30:45 +00:00
Pedro Algarvio
14a30f4d07
Subclass Popen to provided non blocking reads.
2013-02-09 20:56:07 +00:00
Pedro Algarvio
b23f3c3466
Add bogus echo to disabled functions.
2013-02-08 12:54:55 +00:00
Pedro Algarvio
0f93b28d2e
Added start daemons function support to SmartOS installations.
2013-02-08 12:43:01 +00:00
Pedro Algarvio
1b1727d8a3
Some work was done to add start daemons support to FreeBSD installs. Needs to be completed when handling #20 .
2013-02-08 12:38:00 +00:00
Pedro Algarvio
427ad264d6
Added start daemons function support to Arch installations.
2013-02-08 12:33:47 +00:00
Pedro Algarvio
821182df50
Added start daemons function support to Amazon Linux AMI installations.
2013-02-08 12:15:11 +00:00
Pedro Algarvio
e3c979347f
Added start daemons function support to RedHat installations.
2013-02-08 12:12:08 +00:00
Pedro Algarvio
47be06602d
Added start daemons function support to CentOS git installations.
2013-02-08 12:09:37 +00:00
Pedro Algarvio
e4de330af2
Added start daemons function support to CentOS stable installations.
2013-02-08 12:07:11 +00:00
Pedro Algarvio
f5db3710b8
Added start daemons function support to Fedora git installations.
2013-02-08 12:01:50 +00:00
Pedro Algarvio
ac281ec161
Added start daemons support to Debian git installations.
2013-02-08 11:59:06 +00:00
Pedro Algarvio
0cd2397fe9
Moved Ubuntu git installations to use the new start daemons function.
...
* This is only done in git installations because Ubuntu defines that any daemon should run right after installing.
2013-02-08 11:56:03 +00:00
Pedro Algarvio
00d4c44e28
Add the search/execution base for starting daemons in a separate, optional, function.
2013-02-08 11:39:27 +00:00
Pedro Algarvio
f6ba2ba197
Fix gathering data when running separate tests.
2013-02-08 11:30:32 +00:00
Pedro Algarvio
3122ae707d
Merge pull request #43 from s0undt3ch/features/errors-on-stderr
...
Output errors to `stderr` and not `stdout`.
2013-02-08 03:29:53 -08:00
Pedro Algarvio
7c19b81aac
Output errors to stderr
and not stdout
.
2013-02-07 20:48:50 +00:00
Pedro Algarvio
265539a18f
Merge pull request #41 from s0undt3ch/develop
...
Enhancements
2013-02-06 23:59:06 -08:00
Pedro Algarvio
254a289972
Remove the travis badge since it's not currently running the tests on travis, only bamboo.
2013-02-07 07:57:57 +00:00
Pedro Algarvio
4c3775522f
Remove previous shell based testing. Show versions report on install test cases.
2013-02-07 05:17:10 +00:00
Pedro Algarvio
46033b0dda
Add a readme for the tests.
2013-02-07 04:51:47 +00:00
Pedro Algarvio
c1325acb23
Finish renaming script. Bumped version to mark this event.
2013-02-07 01:44:38 +00:00