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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf9f1e4e9a224b8d21dc1a308505807dedf13cbace8228c62ad600af2c8d4c81
4
- data.tar.gz: e4bbdfb3ed8b5e964c25ce7f068ea72abea96160a1deb3419d5dc1c4a665c1e5
3
+ metadata.gz: 8710fa69bba9fa27a00b89f0a4f15f2fb5f1dcc23d2b968bb11f6dbecc047501
4
+ data.tar.gz: d016007e6d6451f7bdd1457f3fe310f09a38b7d0f012e4bb9af19e89331641c5
5
5
  SHA512:
6
- metadata.gz: beea20f667489122e2806b8500f2ded9ea08559b5e0fb54713717c42f371c65a3ad83bb1fa1a9b4ad5f6a10bc0c15585ac922a76cf1d7674a5f46adc239211a8
7
- data.tar.gz: cdd816ed6ecc1ca14803fa9210ac17b288e13c7c4039d608b5dc522ecd0085d4118ad68f621034c8cc3d35dcf81661e45e7e4f925312d430859ed4df11219222
6
+ metadata.gz: 2a060b354356c409f5e145377ad1f4c808b7a5600a27525f6193ca63c7481f27b0e90f42756c02d6b37c0fb2bee37a445efc745295cbce234c66824267aeb050
7
+ data.tar.gz: e8ebc708ea75d392b5ce268ad4547d1441d2ffb2beeaaae7d33af7054c38cad8af349983311110296bb17b8cf3ff66e0a1b70d148a81e3ad9916b7a1f66a3e5d
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module Anamo
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anamo, Inc.