Git Product home page Git Product logo

facter-facts's Introduction

Various facts to use within Facter and Puppet will be stored here.

facter-facts's People

Contributors

benedikt-wegmann avatar bobmaerten avatar dvanders avatar envek avatar kwilczynski avatar lwilke avatar nerzhul avatar traylenator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

facter-facts's Issues

Add VG and LV information on mounts

The details provided by the fact under mounts yields the /dev/mapper/- for the device details.

I happened to come across an issue where I needed to dynamically create a new filesystem across SUSE, RH, and CentOS where the VGs names vary drastically (system,rootvg,vgroot,centos) for the / partition.

Using the mountpoints fact, I extracted the / vg with
Facter.value(:mountpoints)['/']['device'].split(' ')[0].split('/')[3].split('-')[0]
and the LV with
Facter.value(:mountpoints)['/']['device'].split(' ')[0].split('/')[3].split('-')[1]

Would it make any sense to do this within the mountpoints to provide that detail for LVM operations using mountpoints?

Where should the .rb files be copied to?

I'd like to implement some of your facts but I'm unsure as to where they should go. Is there a way to implement these w/o having to 'facter -p' (for custom facts)?

partitions.rb does not report partitions on linux raid devices

E.g. no /dev/md1 reported:

facter -p | grep partitions

partitions => {"sda1"=>{"size"=>"1951744", "label"=>"sysresccd:0", "filesystem"=>"linux_raid_member"}, "sda2"=>{"size"=>"1463193600", "label"=>"vmhost12:1", "filesystem"=>"linux_raid_member"}, "sdb1"=>{"size"=>"1951744", "label"=>"sysresccd:0", "filesystem"=>"linux_raid_member"}, "sdb2"=>{"size"=>"1463193600", "label"=>"vmhost12:1", "filesystem"=>"linux_raid_member"}, "sdc1"=>{"size"=>"1951744", "label"=>"sysresccd:0", "filesystem"=>"linux_raid_member"}, "sdc2"=>{"size"=>"1463193600", "label"=>"vmhost12:1", "filesystem"=>"linux_raid_member"}, "sdd1"=>{"size"=>"1951744", "label"=>"sysresccd:0", "filesystem"=>"linux_raid_member"}, "sdd2"=>{"size"=>"1463193600", "label"=>"vmhost12:1", "filesystem"=>"linux_raid_member"}}

But there is a /dev/md1 with partitions:

parted /dev/md1 print

Model: Linux Software RAID Array (md)
Disk /dev/md1: 2247GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1573kB 24.0GB 24.0GB primary linux-swap(v1)
2 24.0GB 54.0GB 30.0GB primary lvm
3 54.0GB 2247GB 2193GB primary lvm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.