Commit Graph

97 Commits

Author SHA1 Message Date
tom 085b2a2b10 remove `set -e` on explorers (they should be able to fail gracefully) 2018-10-04 17:38:39 +02:00
tom a46da35bbc fix SC2148 (missing shebang) and make executable 2018-10-04 17:38:38 +02:00
tom 134c84607f fix another SC2166 (test `[ .. -a.. ]` replaced by `[ .. ] && ]`) 2018-10-04 12:28:59 +02:00
Darko Poljak 44acfcdd12 Fix SC2002 2018-10-03 14:12:07 +02:00
Darko Poljak 5ed95ce93b Fix SC2005 2018-10-02 20:22:44 +02:00
Adam Dej c2f8c7abb3 Add explorer for info in /etc/os-release 2018-09-07 11:38:49 +02:00
kamila b695e82bec FreeBSD improvements (#651) 2018-03-26 08:53:31 +02:00
uqam-fob 3b6a471119 explorer/memory: Support OpenBSD (#602)
Adds support to detect the amount of memory available on OpenBSD
systems.
2017-11-15 07:31:17 +01:00
kamila da8f6efafc fix explorer/os for devuan ascii (#588) 2017-10-20 18:16:06 +02:00
Sven Wick ed55d01b35 Update machine_type (#564)
detect kvm on proxmox
2017-09-01 20:56:48 +02:00
Darko Poljak c6d00019a8 Merge pull request #556 from uqam-fob/explorer-init-pgrep
explorer/init/Linux: use pgrep instead of ps
2017-08-25 11:31:42 +02:00
Philippe Grégoire ebe0c0d66d
make sure we continue on errors 2017-08-20 11:12:30 -04:00
Philippe Grégoire 5646a66f6c
explorer/init/Linux: replace ps by pgrep
BusyBox's version of ps does not support the -o option.
On Linux systems, use pgrep -P0 -l to get the name of
pid 1.
2017-08-20 11:06:07 -04:00
Philippe Grégoire 2b9bf3de24
replace grep+sed by awk 2017-08-19 18:19:17 -04:00
Philippe Grégoire e88e9c357f
fix formatting 2017-08-19 16:49:19 -04:00
Philippe Grégoire 69c6de9f9c
explorer/os: get ID from /etc/os-release
/etc/os-release was introduced by systemd[1] and is now
more and more common; even on systems without systemd (e.g. lede).
In addition to detecting the OS based on specific attributes,
this file provides the ID marker to describe the OS.

This commit adds support for OS detection via /etc/os-release.
According to [2], it is already lowercase.

[1] http://0pointer.de/blog/projects/os-release
[2] https://www.freedesktop.org/software/systemd/man/os-release.html
2017-08-19 16:41:50 -04:00
kamila 21a29ab5aa add __go_get, __golang_from_vendor 2017-05-04 17:46:20 +02:00
Darko Poljak cca6693b2e Merge install feature from 4.0-pre-not-stable. 2016-10-13 21:16:59 +02:00
Daniel Heule bee5593570 use /etc/os-release instead of /etc/SuSE-release 2016-10-04 11:29:48 +02:00
dmitrybogatov 1875bce52e Add support for guixsd into os explorer 2016-09-02 21:33:11 +02:00
Stu Zhao a6643f0d7f Explore machine type for virtualbox guest 2016-07-06 18:39:27 -04:00
Stephan Leemburg 9300eda3c6 Add scientific 2016-06-22 13:32:51 +02:00
Stephan Leemburg 98160624a0 Add openvz/lxc discovery 2016-06-22 13:21:10 +02:00
smwltr 1882040a25 Adding suuport for OS Devuan 2016-04-12 12:18:47 +09:00
Daniel Heule f7de217129 modified the unknown case to empty... 2016-03-25 16:39:48 +01:00
Daniel Heule 9c6d7dbd89 modified the unknown case ... 2016-03-24 11:29:13 +01:00
Daniel Heule 2c49e04c98 Updated the exlorer for more systems
changed the ps syntax, so it should work on freebsd to
  added a case so it could easy implemented for other os to
2016-03-24 11:22:09 +01:00
Daniel Heule 14f3ee403a fix fo __start_on_boot for ALL systemd distros 2016-03-23 16:34:57 +01:00
Stephan Leemburg b03a4f2829 Added Mitel as a redhat derived OS 2016-02-23 12:57:21 +01:00
Stephan Leemburg 37fec8b3b5 Added Mitel as a redhat derived OS 2016-02-23 11:54:08 +01:00
Nico Schottelius 494b6cbbf9 Merge branch 'master' into 4.0-pre-not-stable 2014-12-11 17:13:52 +01:00
Manuel Hutter 981f8068d2 code diet on "memory" 2014-06-21 14:24:10 +02:00
Manuel Hutter e727824964 `cat` and pipe diet 2014-06-18 10:19:21 +02:00
Manuel Hutter c36fba4b99 Fixed global explorers on OSX 2014-06-17 19:04:22 +02:00
Nico Schottelius 5f9eef3bbb Merge branches 'preos' and 'install_integration' into 4.0-pre-not-stable 2014-06-13 13:34:42 +02:00
Daniel Heule 3710557c62 bugfix the list of interfaces 2014-04-29 12:57:46 +02:00
Nico Schottelius 84159d18e0 Merge branch 'master' into 4.0-pre-not-stable 2014-03-31 22:16:30 +02:00
Daniel Heule 7b6102750e as requested, replace space with _ 2014-03-26 11:57:15 +01:00
Daniel Heule e8f5d4c340 some new explorers wich are handy if you must tune for example sap or
oracle to the systemtype, cpu cores and/or physical memory
2014-02-13 15:38:35 +01:00
Nico Schottelius 2388188fbb Merge branches 'preos' and 'install_integration' into 4.0-pre-not-stable 2014-01-20 14:28:49 +01:00
Nico Schottelius 8d5357107b use uname -n in hostname explorer
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2014-01-20 14:07:31 +01:00
Nico Schottelius cd6abf379a allow hostname -f to fail and return empty output
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2014-01-20 13:52:49 +01:00
Nico Schottelius e463f84333 add changelog for 4.x cdist series
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2014-01-20 10:04:42 +01:00
Arkaitz Jimenez 4a89e64115 Make global explorers available to initial manifest and fix hostname explorer 2013-04-01 00:48:57 +02:00
Eivind Uggedal 1b25ef33b9 Slackware os and os_version explorer support. 2013-01-28 08:30:54 -05:00
contradict f41b029ade Eliminiate excess output from machine explorer
command -v emits a string to stdout, silence this since we are only
interested in the return code.
2013-01-12 19:35:09 -08:00
Nico Schottelius 63573a9797 make package_data work
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-29 22:50:27 +01:00