Pedro Algarvio
316059f478
FreeBSD does not have /proc/cpuinfo
use sysctl
in FreeBSD.
2012-11-28 01:21:44 +00:00
Pedro Algarvio
f5407f7dad
String comparison, trap fixes and some comments.
...
* String comparison uses a single `=` not two.
* FreeBSD's `sh` does not know the `ERR` signal we're trapping, trap `INT`, `QUIT`, `KILL` instead.
2012-11-28 01:17:47 +00:00
Pedro Algarvio
464d92141d
Fix logging named pipe creation on FreeBSD.
...
* Moved the exit trap function higher in order to catch the errors from creating the pipe and clean up.
* Only kill tee's pid if it's actually running.
2012-11-28 01:02:25 +00:00
Pedro Algarvio
3f30a6a379
Correctly detect RedHat distros. Make sure we have syntax correct distro name to search for in functions.
2012-11-27 19:08:20 +00:00
Pedro Algarvio
5acf8fa180
Only copy init' or
upstart` files if they exist.
2012-11-26 02:01:14 +00:00
Pedro Algarvio
eaceada783
Merge branch 'develop' of github.com:saltstack/salty-vagrant into develop
2012-11-26 01:51:18 +00:00
Pedro Algarvio
552f8c69fc
Ubuntu's upstart file changed path.
2012-11-26 01:50:54 +00:00
Alec Koumjian
cae8a3f748
adding debian_stable for wheezy
2012-11-11 10:12:12 -08:00
Alec Koumjian
d4945b3c2f
fixing config file prompt
2012-10-31 19:10:54 -07:00
Pedro Algarvio
9dd462d00d
Fix git install for Ubuntu 10.04.4
2012-10-31 17:06:02 +00:00
Pedro Algarvio
1076cfaf8b
On ubuntu install git-core.
2012-10-27 07:37:16 +01:00
Pedro Algarvio
d4b2170f52
Fix regular Fedora install and also add git install for it.
...
* We now have a common function which clones salt's source and check's out the specified revision.
* We now also exit if one of the functions fails, previously we would just keep going.
2012-10-27 07:31:14 +01:00
Pedro Algarvio
a856f5a573
Take care of whitespace when parsing versions.
...
Installing from git on Ubuntu without installing from package first.
2012-10-27 04:51:54 +01:00
Pedro Algarvio
b919d276ac
Include a version parsing function which ignores revisions.
2012-10-24 01:32:48 +01:00
Alec Koumjian
ce7c286452
Merge pull request #28 from s0undt3ch/develop
...
Add CentOS git install support.
2012-10-23 14:03:19 -07:00
Pedro Algarvio
5d37d059e2
Don't ignore the CPU for FreeBSD installs, and the functions are for FreeBSD 9. FreeBSD installs are still untested.
2012-10-23 08:09:12 +01:00
Pedro Algarvio
cffc725e08
Properly kill any sub-shells started while running the script. Fixes hanging in CentOS bootstrap.
2012-10-23 04:16:03 +01:00
ffa
ca278f2a11
remove revision number from distribution version
...
Remove the distribution version revision number becuase it
* is not a large enough change to effect installs
* needs the "." separator, which is currently removed, in the version number to
be distinguished
* is not currently implemented for Sun and BSD installs
2012-10-21 23:06:03 -07:00
ffa
066daea949
add debian git install
2012-10-21 22:54:07 -07:00
Pedro Algarvio
24d3543248
Add CentOS git install support.
2012-10-22 03:39:33 +01:00
Pedro Algarvio
f31025464c
One more copy/paste bug.
2012-10-22 02:01:01 +01:00
Pedro Algarvio
7f57964217
Fix copy/paste bug that prevented the post functions to be searched correctly.
2012-10-22 01:51:59 +01:00
Pedro Algarvio
ae0dc73ef8
Don't ignore CPU information for CentOS.
2012-10-21 16:05:29 +01:00
Pedro Algarvio
808944c0c7
Grab CPU information.
2012-10-21 16:04:57 +01:00
Alec Koumjian
0a755a5331
Updated docs and preliminary arch/freebsd support [untested]
2012-10-19 21:16:00 -07:00
Alec Koumjian
f2b4b679cd
Adding initial daily support and upping minor version
2012-10-19 11:08:37 -07:00
Pedro Algarvio
dd518979da
Comment typo.
2012-10-19 13:12:22 +01:00
Pedro Algarvio
075149ca1d
Improve option handling.
...
* Add support to specify the git branch or revision that should be checked out.
* We now `shift` arguments as they are used. Once we've handled them all, if there are still arguments remaining, fail.
* Minor `echo` changes.
2012-10-19 12:22:59 +01:00
Pedro Algarvio
88ed42f3db
Don't ignore /etc/lsb-release
if it exists.
2012-10-19 12:07:14 +01:00
Pedro Algarvio
b261a816bb
Remove left behind option argument.
2012-10-19 11:24:05 +01:00
Pedro Algarvio
132fbc6213
Fix some bugs.
...
Provide some convenience variables, version without dots and lowercased distro name which is used while searching for install functions.
2012-10-18 23:54:58 +01:00
Pedro Algarvio
ef699f7e38
Minor typos.
2012-10-18 22:30:20 +01:00
Pedro Algarvio
2c0ccad7ab
Some indentation correction.
2012-10-18 22:27:38 +01:00
Pedro Algarvio
6c3a8ac62d
Remove the temporary directory code.
2012-10-18 22:25:21 +01:00
Pedro Algarvio
b3a9a90634
We no longer depend on shtool.
...
System detection is now working on Linux, SunOS, and [Open|Net|Free]BSD.
2012-10-18 22:18:07 +01:00
Pedro Algarvio
9ff1c608e5
Simplified the bootstrap script.
...
This function searching is now "compatible" with at least debian, ubuntu, centos and arch `sh` implementation. Tested!
2012-10-18 17:28:00 +01:00
Pedro Algarvio
9887b234a3
Remove color support.
...
It will be cumbersome if even possible to handle colors on shell output and no colors on logfile, and doin' this using the simplest and most portable `sh` way.
2012-10-18 11:41:35 +01:00
Pedro Algarvio
8b67922da0
Add Alec to authors, Salt Stack to organization and bugs address.
2012-10-17 16:28:43 +01:00
Pedro Algarvio
5775b0156e
Add -e
to echo calls and fix some if
checks failing on CentOS. Add CentOS 6.3 support.
2012-10-17 16:07:33 +01:00
Pedro Algarvio
1150c69735
Bootstrap script reworked.
...
* Dropped the log function, instead we pipe stderr and stdout to both the console and the logfile.
* We now make use of 2 scripts from shtool which are involved in system detection, downloaded at runtime.
* In order to support a distribution there are some functions which need to be added to this script, all explained on the source.
2012-10-17 14:02:09 +01:00
Pedro Algarvio
7f46c38289
Lucid's add-apt-repository
does not support -y
2012-10-13 12:08:06 +01:00
Ben Hosmer
762ac622df
Adding rudimentary support for RHEL/CentOS 6 bootstrap
2012-09-26 08:09:27 -04:00
Angus Peart
d6a7d29e1f
Initial multi-os support, see saltstack/salty-vagrant/#1
...
A sh bootstrapping script is copied to the target VM and used to determine the correct method of installing the Salt binaries.
Any operating system supported by Salt with a sh shell can be added to the bootstrapping script.
2012-09-06 23:17:02 +10:00