1. 21 Jul, 2011 6 commits
    • Lucas Carvalho's avatar
      Simplified the code... · 4211c7c6
      Lucas Carvalho authored
      To avoid the explosion of "if" structure, it is better replace it using
      a "for" structure.
      
      The behavior of the code still the same.
      4211c7c6
    • Lucas Carvalho's avatar
      New option on slapos configuration file: upload-authentication-file. · 25c34da5
      Lucas Carvalho authored
      According to the previous commit:
        - 017a02ef
      
      We just need to make sure that the new option is gonna be propagated to
      Software class. Indeed, in the buildout command line as well.
      25c34da5
    • Lucas Carvalho's avatar
      Added a new parameter in Software init method. · 017a02ef
      Lucas Carvalho authored
      The new parameter is:
        - upload_authentication_file: the content must be the path of
          SSL key which must be used to make the user authentication in the
          Networkcache HTTP server.
      
      It must be propagated to buildout command line, of course.
      017a02ef
    • Lucas Carvalho's avatar
      The default value of this parameter must be None. · 81312bb9
      Lucas Carvalho authored
      The default value was ' ' because it was always being propagating to the
      buildout command line. But since the commit
      d8dca883, it does not happen anymore.
      
      This option is only propagated to buildout command line if it is not
      None.
      81312bb9
    • Lucas Carvalho's avatar
      Now it is possible to define the section networkcache into slapos.cfg. · 3d9a97d6
      Lucas Carvalho authored
      Inside of slapos.cfg you can define the section called networkcache,
      which should contain all the required configuration to upload files
      to shacache and shadir.
      
      Options:
        - upload-cache-url: url to upload content to shacache
        - upload-dir-url: url to upload content to shacache
        - signature-private-key-file: private key file used to sign the
          information which may be sent to shadir
      
      Note: the option signature-private-key-file, may also be used as
      parameter of slapgrid command.
         (i.e. --signature_private_key_file=/path/to/private.pem)
      
      And of course, following the previous commit, we need to propagate these
      parameters to Software class.
      3d9a97d6
    • Lucas Carvalho's avatar
      Added new parameters to Software init method. · d8dca883
      Lucas Carvalho authored
      Added upload_cache_url and upload_dir_url:
       - upload_cache_url: the value must be the url of shacache used to
         upload
         content.
       - upload_dir_url: the value must be the url of shadir used to upload
         the
         information about the content.
      
      Also, the signature_private_key_file is not required to instanciate a
      Software object, then it can be None by default.
      
      All these parameters listed above should only be used in the buildout
      command line, if they are not None. And it should be defined under
      networkcache-section.
      d8dca883
  2. 19 Jul, 2011 3 commits
  3. 18 Jul, 2011 1 commit
  4. 15 Jul, 2011 11 commits
  5. 13 Jul, 2011 2 commits
  6. 12 Jul, 2011 8 commits
  7. 11 Jul, 2011 5 commits
  8. 08 Jul, 2011 4 commits