Using LVM, Foreman, multiple LVs and VGs in host group

asked 2016-04-05 12:00:54 -0600

virtblackbelt gravatar image

Using puppet-lvm in Foreman (Satellite 6), I can get the following to work without issue in either an individual node or in a hostgroup definition:

vgdata:   physical_volumes:
  - /dev/sdb   logical_volumes:
    lvs01:
      size: 39.99G
      mountpath: /s01

If I create multiple LVs or VGs on an individual node, it works OK. For example:

vgapp:
            physical_volumes:
            - /dev/sdb
            logical_volumes:
              lvs01:
                size: 30G
                mountpath: /s01
              lvr01:
                size: 49.99G
                mountpath: /r01
              lva01:
                size: 50G
                mountpath: /a01
          vgdata:
            physical_volumes:
            - /dev/sdc
            logical_volumes:
              lvd01:
                size: 199.99G
                mountpath: /d01

However, if I try to cut and paste this to a hostgroup, I get an error about an invalid hash. Is this a bug with the version of Foreman (really, Satellite 6) I'm using?

edit retag flag offensive close merge delete