1. 30 Aug, 2013 1 commit
  2. 29 Aug, 2013 4 commits
    • Jose A. Lopes's avatar
      Setup constant generation infrastructure · 1b2adaa6
      Jose A. Lopes authored
      
      
      Setup a transitional Haskell to Python constant generation
      infrastructure.  This infrastructure is transitional and Python
      constants will not be migrated to Haskell all at once.  Instead, some
      constants will be incrementally pulled from Python and moved to
      Haskell.  This is a list of the relevant modules in this
      infrastructure:
      
      * Ganeti.HsConstants: contains the Haskell constants that are used
        both in Haskell (once re-exported through Ganeti.Constants) and
        generated in Python
      
      * Ganety.Hs2Py.ListConstants: contains the list of Haskell constants
        to be generated in Python; these constants are defined in the
        previous module and the list is automatically generated by the
        Makefile
      
      * hs2py-constants: Haskell program that outputs the actual constant
        definitions in Python; this task cannot be performed by 'hs2py' just
        yet because this programs depends on the 'Constants' module. But
        once all the constants have migrated to Haskell, then
        'hs2py-constants' and 'hs2py' can be merged.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      1b2adaa6
    • Jose A. Lopes's avatar
      Rename 'Constants.hs' to 'PyConstants.hs' · fec1fac1
      Jose A. Lopes authored
      
      
      Rename the generated 'Constants.hs' module, which contains the Haskell
      constants generated from Python, to 'PyConstants.hs' in order to
      eliminate duplicated constants in Haskell, a problem introduced by the
      Haskell to Python constant generation, and to circumvent a problem
      with import/export of Haskell modules.  Add a new module named
      'Constants.hs' which imports 'PyConstants.hs' and exports its names.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      fec1fac1
    • Jose A. Lopes's avatar
      Add Template Haskell code for constant generation · d34c79b6
      Jose A. Lopes authored
      
      
      Add Template Haskell functions that generate a list in Haskell
      containing all the constants to be generated in Python.  This list is
      an association list mapping the constant name to its Python value,
      which is stored as a string.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d34c79b6
    • Jose A. Lopes's avatar
      Move some 'PyValue' instances to a separate file · c4d68e39
      Jose A. Lopes authored
      
      
      Move some 'PyValue' instances to a separate file so they can be
      available to other modules which need these instances but do not want
      to depend on the constants module, which led to compilation
      constraints.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      c4d68e39
  3. 27 Aug, 2013 3 commits
  4. 22 Aug, 2013 2 commits
    • Klaus Aehlig's avatar
      Add configure option on whether to install symlinks · 9cf292af
      Klaus Aehlig authored
      
      
      As of Ganeti 2.10, all files are installed into a single, version
      specific, directory. In this way, several Ganeti versions can be
      installed in parallel. Appropriate symbolic links in the search path
      will be added by the Ganeti upgrade procedure. For the initial
      installation, however, links in the search path are needed. So make
      the installation of symbolic links a configure-time option, defaulting
      to the current behavior, that that installation is visible in the
      path.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
      9cf292af
    • Klaus Aehlig's avatar
      Move installation to a single Ganeti specific directory · 667e9959
      Klaus Aehlig authored
      
      
      As first step of implementing the new upgrade procedure (see design
      document), make Ganeti install all files into a single directory,
      $(prefix)/opt/Ganeti-$(VERSION). Symbolic links outside to this directory
      will be added (either at install time, or by a version specific install
      script at upgrade/downgrade time). This will make it possible to have
      multiple version of Ganeti installed at the same machine, with only one
      being active.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
      667e9959
  5. 21 Aug, 2013 1 commit
  6. 20 Aug, 2013 1 commit
  7. 14 Aug, 2013 1 commit
  8. 08 Aug, 2013 1 commit
  9. 07 Aug, 2013 7 commits
  10. 05 Aug, 2013 3 commits
  11. 01 Aug, 2013 2 commits
  12. 30 Jul, 2013 1 commit
  13. 29 Jul, 2013 1 commit
  14. 24 Jul, 2013 2 commits
  15. 23 Jul, 2013 2 commits
  16. 19 Jul, 2013 1 commit
  17. 17 Jul, 2013 6 commits
  18. 15 Jul, 2013 1 commit