Revision 33ee4861

b/lib/constants.py
1496 1496
QEMUIMG_PATH = _constants.QEMUIMG_PATH
1497 1497

  
1498 1498
HTOOLS = _constants.HTOOLS
1499
# The hail iallocator
1500
IALLOC_HAIL = "hail"
1501

  
1502
# Fake opcodes for functions that have hooks attached to them via
1503
# backend.RunLocalHooks
1504
FAKE_OP_MASTER_TURNUP = "OP_CLUSTER_IP_TURNUP"
1505
FAKE_OP_MASTER_TURNDOWN = "OP_CLUSTER_IP_TURNDOWN"
1506

  
1507
# SSH key types
1508
SSHK_RSA = "rsa"
1509
SSHK_DSA = "dsa"
1510
SSHK_ALL = compat.UniqueFrozenset([SSHK_RSA, SSHK_DSA])
1511

  
1512
# SSH authorized key types
1513
SSHAK_RSA = "ssh-rsa"
1514
SSHAK_DSS = "ssh-dss"
1515
SSHAK_ALL = compat.UniqueFrozenset([SSHAK_RSA, SSHAK_DSS])
1516

  
1517
# SSH setup
1518
SSHS_CLUSTER_NAME = "cluster_name"
1519
SSHS_SSH_HOST_KEY = "ssh_host_key"
1520
SSHS_SSH_ROOT_KEY = "ssh_root_key"
1521
SSHS_NODE_DAEMON_CERTIFICATE = "node_daemon_certificate"
1522

  
1523
#: Key files for SSH daemon
1499
IALLOC_HAIL = _constants.IALLOC_HAIL
1500

  
1501
FAKE_OP_MASTER_TURNUP = _constants.FAKE_OP_MASTER_TURNUP
1502
FAKE_OP_MASTER_TURNDOWN = _constants.FAKE_OP_MASTER_TURNDOWN
1503

  
1504
SSHK_RSA = _constants.SSHK_RSA
1505
SSHK_DSA = _constants.SSHK_DSA
1506
SSHK_ALL = _constants.SSHK_ALL
1507

  
1508
SSHAK_RSA = _constants.SSHAK_RSA
1509
SSHAK_DSS = _constants.SSHAK_DSS
1510
SSHAK_ALL = _constants.SSHAK_ALL
1511

  
1512
SSHS_CLUSTER_NAME = _constants.SSHS_CLUSTER_NAME
1513
SSHS_SSH_HOST_KEY = _constants.SSHS_SSH_HOST_KEY
1514
SSHS_SSH_ROOT_KEY = _constants.SSHS_SSH_ROOT_KEY
1515
SSHS_NODE_DAEMON_CERTIFICATE = _constants.SSHS_NODE_DAEMON_CERTIFICATE
1516

  
1524 1517
SSH_DAEMON_KEYFILES = {
1525 1518
  SSHK_RSA: (pathutils.SSH_HOST_RSA_PRIV, pathutils.SSH_HOST_RSA_PUB),
1526 1519
  SSHK_DSA: (pathutils.SSH_HOST_DSA_PRIV, pathutils.SSH_HOST_DSA_PUB),
b/src/Ganeti/HsConstants.hs
3670 3670
htools :: Bool
3671 3671
htools = AutoConf.htools
3672 3672

  
3673
-- | The hail iallocator
3674
iallocHail :: String
3675
iallocHail = "hail"
3676

  
3677
-- * Fake opcodes for functions that have hooks attached to them via
3678
-- backend.RunLocalHooks
3679

  
3680
fakeOpMasterTurndown :: String
3681
fakeOpMasterTurndown = "OP_CLUSTER_IP_TURNDOWN"
3682

  
3683
fakeOpMasterTurnup :: String
3684
fakeOpMasterTurnup = "OP_CLUSTER_IP_TURNUP"
3685

  
3686
-- * SSH key types
3687

  
3688
sshkDsa :: String
3689
sshkDsa = "dsa"
3690

  
3691
sshkRsa :: String
3692
sshkRsa = "rsa"
3693

  
3694
sshkAll :: FrozenSet String
3695
sshkAll = ConstantUtils.mkSet [sshkRsa, sshkDsa]
3696

  
3697
-- * SSH authorized key types
3698

  
3699
sshakDss :: String
3700
sshakDss = "ssh-dss"
3701

  
3702
sshakRsa :: String
3703
sshakRsa = "ssh-rsa"
3704

  
3705
sshakAll :: FrozenSet String
3706
sshakAll = ConstantUtils.mkSet [sshakDss, sshakRsa]
3707

  
3708
-- * SSH setup
3709

  
3710
sshsClusterName :: String
3711
sshsClusterName = "cluster_name"
3712

  
3713
sshsSshHostKey :: String
3714
sshsSshHostKey = "ssh_host_key"
3715

  
3716
sshsSshRootKey :: String
3717
sshsSshRootKey = "ssh_root_key"
3718

  
3719
sshsNodeDaemonCertificate :: String
3720
sshsNodeDaemonCertificate = "node_daemon_certificate"
3721

  
3673 3722
-- * Key files for SSH daemon
3674 3723

  
3675 3724
sshHostDsaPriv :: String

Also available in: Unified diff