anamo 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anamo/node/thor.rb +13 -1
- data/lib/anamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8710fa69bba9fa27a00b89f0a4f15f2fb5f1dcc23d2b968bb11f6dbecc047501
|
4
|
+
data.tar.gz: d016007e6d6451f7bdd1457f3fe310f09a38b7d0f012e4bb9af19e89331641c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a060b354356c409f5e145377ad1f4c808b7a5600a27525f6193ca63c7481f27b0e90f42756c02d6b37c0fb2bee37a445efc745295cbce234c66824267aeb050
|
7
|
+
data.tar.gz: e8ebc708ea75d392b5ce268ad4547d1441d2ffb2beeaaae7d33af7054c38cad8af349983311110296bb17b8cf3ff66e0a1b70d148a81e3ad9916b7a1f66a3e5d
|
data/lib/anamo/node/thor.rb
CHANGED
@@ -48,12 +48,24 @@ module Anamo
|
|
48
48
|
ret['node']['os_name'] = Train.create('local').connection.os[:name]
|
49
49
|
ret['node']['os_family'] = Train.create('local').connection.os[:family]
|
50
50
|
ret['node']['os_release'] = Train.create('local').connection.os[:release]
|
51
|
+
|
52
|
+
# run a command on Linux/Unix/Mac
|
53
|
+
ret['node']['cpe'] conn.run_command('hostnamectl | grep "Static hostname: "').stdout
|
54
|
+
ret['node']['chassis'] conn.run_command('hostnamectl | grep "Chassis: "').stdout
|
55
|
+
ret['node']['machine_id'] conn.run_command('hostnamectl | grep "Machine ID: "').stdout
|
56
|
+
ret['node']['boot_id'] conn.run_command('hostnamectl | grep "Boot ID: "').stdout
|
57
|
+
ret['node']['virtualization'] conn.run_command('hostnamectl | grep "Virtualization: "').stdout
|
58
|
+
ret['node']['operating_system'] conn.run_command('hostnamectl | grep "Operating System: "').stdout
|
59
|
+
ret['node']['kernel'] conn.run_command('hostnamectl | grep "Kernel: "').stdout
|
60
|
+
ret['node']['architecture'] conn.run_command('hostnamectl | grep "Architecture: "').stdout
|
61
|
+
|
62
|
+
#Uname (General)
|
51
63
|
ret['node']['uname_sysname'] = Uname.sysname # => The operating system name. e.g. "SunOS"
|
52
64
|
ret['node']['uname_machine'] = Uname.machine # => The machine hardware type. e.g. "i686"
|
53
65
|
ret['node']['uname_version'] = Uname.version # => The operating system version. e.g. "5.8". Windows includes patch information.
|
54
66
|
ret['node']['uname_release'] = Uname.release # => The operating system release. e.g. "2.2.16-3"
|
55
67
|
|
56
|
-
#Solaris
|
68
|
+
#Uname (Solaris-Only)
|
57
69
|
#ret['node']['uname_architecture'] = Uname.architecture # => Returns the instruction set architecture. e.g. "sparc"
|
58
70
|
#ret['node']['uname_platform'] = Uname.platform # => The platform identifier. e.g. "SUNW,Sun-Blade-100"
|
59
71
|
#ret['node']['uname_isa_list'] = Uname.isa_list # => List of supported instr. sets, e.g. "amd64 pentium_pro+mmx pentium_pro"
|
data/lib/anamo/version.rb
CHANGED