Class: Specinfra::Command::Linux::Base::Inventory
- Inherits:
-
Object
- Object
- Specinfra::Command::Linux::Base::Inventory
- Defined in:
- lib/pullmatic/resource/user_group.rb,
lib/pullmatic/resource/filesystem.rb,
lib/pullmatic/resource/interface.rb,
lib/pullmatic/resource/network.rb,
lib/pullmatic/resource/etc.rb,
lib/pullmatic/resource/os.rb
Direct Known Subclasses
Class Method Summary collapse
- .get_default_gateway ⇒ Object
- .get_filesystem ⇒ Object
- .get_groups ⇒ Object
- .get_hosts ⇒ Object
- .get_ip ⇒ Object
- .get_iptables_filter ⇒ Object
- .get_iptables_nat ⇒ Object
- .get_resolv ⇒ Object
- .get_selinux ⇒ Object
- .get_services ⇒ Object
- .get_sshd_config ⇒ Object
- .get_timezone ⇒ Object
- .get_uname ⇒ Object
- .get_users ⇒ Object
Class Method Details
.get_default_gateway ⇒ Object
23 24 25 |
# File 'lib/pullmatic/resource/interface.rb', line 23 def get_default_gateway '/sbin/ip route' end |
.get_filesystem ⇒ Object
21 22 23 |
# File 'lib/pullmatic/resource/filesystem.rb', line 21 def get_filesystem 'df -T' end |
.get_groups ⇒ Object
24 25 26 |
# File 'lib/pullmatic/resource/user_group.rb', line 24 def get_groups '/bin/cat /etc/group' end |
.get_hosts ⇒ Object
21 22 23 |
# File 'lib/pullmatic/resource/network.rb', line 21 def get_hosts '/bin/cat /etc/hosts' end |
.get_ip ⇒ Object
19 20 21 |
# File 'lib/pullmatic/resource/interface.rb', line 19 def get_ip '/sbin/ip addr' end |
.get_iptables_filter ⇒ Object
29 30 31 |
# File 'lib/pullmatic/resource/network.rb', line 29 def get_iptables_filter '/sbin/iptables -L' end |
.get_iptables_nat ⇒ Object
33 34 35 |
# File 'lib/pullmatic/resource/network.rb', line 33 def get_iptables_nat '/sbin/iptables -t nat -L' end |
.get_resolv ⇒ Object
25 26 27 |
# File 'lib/pullmatic/resource/network.rb', line 25 def get_resolv '/bin/cat /etc/resolv.conf' end |
.get_selinux ⇒ Object
23 24 25 |
# File 'lib/pullmatic/resource/os.rb', line 23 def get_selinux Specinfra.backend.command.get(:check_selinux_has_mode, "enabled") end |
.get_services ⇒ Object
24 25 26 |
# File 'lib/pullmatic/resource/etc.rb', line 24 def get_services '/usr/sbin/service --status-all' end |
.get_sshd_config ⇒ Object
20 21 22 |
# File 'lib/pullmatic/resource/etc.rb', line 20 def get_sshd_config '/bin/cat /etc/ssh/sshd_config' end |
.get_timezone ⇒ Object
27 28 29 |
# File 'lib/pullmatic/resource/os.rb', line 27 def get_timezone '/bin/cat /etc/sysconfig/clock' end |
.get_uname ⇒ Object
31 32 33 |
# File 'lib/pullmatic/resource/os.rb', line 31 def get_uname 'uname -a' end |
.get_users ⇒ Object
20 21 22 |
# File 'lib/pullmatic/resource/user_group.rb', line 20 def get_users '/bin/cat /etc/passwd' end |