Revision 845b7ed1 src/Ganeti/Constants.hs

b/src/Ganeti/Constants.hs
2167 2167
                (drbdMinRate, VTypeInt),
2168 2168
                (lvStripes, VTypeInt),
2169 2169
                (rbdAccess, VTypeString),
2170
                (rbdPool, VTypeString)]
2170
                (rbdPool, VTypeString),
2171
                (glusterHost, VTypeString),
2172
                (glusterVolume, VTypeString),
2173
                (glusterPort, VTypeInt)
2174
               ]
2171 2175

  
2172 2176
diskDtParameters :: FrozenSet String
2173 2177
diskDtParameters = ConstantUtils.mkSet (Map.keys diskDtTypes)
......
3773 3777
            , (ldpAccess, PyValueEx diskKernelspace)
3774 3778
            ])
3775 3779
  , (DTSharedFile, Map.empty)
3776
  , (DTGluster, Map.empty)
3780
  , (DTGluster, Map.fromList
3781
                [ (rbdAccess, PyValueEx diskKernelspace)
3782
                , (glusterHost, PyValueEx glusterHostDefault)
3783
                , (glusterVolume, PyValueEx glusterVolumeDefault)
3784
                , (glusterPort, PyValueEx glusterPortDefault)
3785
                ])
3777 3786
  ]
3778 3787

  
3779 3788
diskDtDefaults :: Map DiskTemplate (Map String PyValueEx)
......
3806 3815
                   , (rbdAccess, PyValueEx diskKernelspace)
3807 3816
                   ])
3808 3817
  , (DTSharedFile, Map.empty)
3809
  , (DTGluster, Map.empty)
3818
  , (DTGluster, Map.fromList
3819
                [ (rbdAccess, PyValueEx diskKernelspace)
3820
                , (glusterHost, PyValueEx glusterHostDefault)
3821
                , (glusterVolume, PyValueEx glusterVolumeDefault)
3822
                , (glusterPort, PyValueEx glusterPortDefault)
3823
                ])
3810 3824
  ]
3811 3825

  
3812 3826
niccDefaults :: Map String PyValueEx
......
4592 4606

  
4593 4607
-- * Gluster settings
4594 4608

  
4595
-- | Where Ganeti should manage Gluster volume mountpoints
4596
glusterMountpoint :: String
4597
glusterMountpoint = "/var/run/ganeti/gluster"
4609
-- | Name of the Gluster host setting
4610
glusterHost :: String
4611
glusterHost = "host"
4612

  
4613
-- | Default value of the Gluster host setting
4614
glusterHostDefault :: String
4615
glusterHostDefault = "127.0.0.1"
4616

  
4617
-- | Name of the Gluster volume setting
4618
glusterVolume :: String
4619
glusterVolume = "volume"
4620

  
4621
-- | Default value of the Gluster volume setting
4622
glusterVolumeDefault :: String
4623
glusterVolumeDefault = "gv0"
4624

  
4625
-- | Name of the Gluster port setting
4626
glusterPort :: String
4627
glusterPort = "port"
4628

  
4629
-- | Default value of the Gluster port setting
4630
glusterPortDefault :: Int
4631
glusterPortDefault = 24007

Also available in: Unified diff