1. 12 Apr, 2016 1 commit
    • Scott Moser's avatar
      chef: straighten out validation_cert and validation_key · 7122f7d6
      Scott Moser authored
      Now, validation_key is always a path to a file, as it is in 
      chef's client.rb syntax.
      
      validation_cert is always the *content* of that file that should
      be written.  However, if validation_cert is the string "system",
      then we do not write that value, but rather assume the file exists.
      
      LP: #1568940
      7122f7d6
  2. 05 Nov, 2015 1 commit
  3. 04 Nov, 2015 1 commit
  4. 02 Nov, 2015 2 commits
  5. 23 Jan, 2015 1 commit
  6. 11 Oct, 2014 2 commits
    • Joshua Harlow's avatar
      More adjustments · d87e89d9
      Joshua Harlow authored
      - Use the generated_by() utility function to
        give the ruby template a better header comment
      - Set special parameters after selecting the basic
        chef parameters.
      d87e89d9
    • Joshua Harlow's avatar
      Increase the robustness of the chef module · 3cb8ecc2
      Joshua Harlow authored
      Add the following adjustments to the chef template and module
      
      - Make it so that the chef directories can be provided (defaults
        to the existing directories)
      - Make the params much more configurable, and if a parameter is
        provided in the chef configuration it will override existing template
        parameters.
      - Make the template skip lines if the values are None in the configuration
        so that template lines can be removed if/when this is desirable.
      - Allow the firstboot json path to be configurable (defaults to the
        existing location).
      - Adds a basic set of tests to ensure that good things are happening.
      3cb8ecc2
  7. 21 Aug, 2014 1 commit
    • Scott Moser's avatar
      fix rendering resolv.conf if no 'options' are provided · 589f7409
      Scott Moser authored
      this makes some changes to the cc_resolv_conf to make its
      generate_resolv_conf method more easily callable (for future test).
      
      Also sets it up so that 'options' is always defined when the template
      is rendered.
      
      LP: #1328953
      589f7409
  8. 18 Aug, 2014 1 commit
  9. 05 Mar, 2014 1 commit
  10. 25 Jun, 2013 1 commit
  11. 21 Feb, 2013 1 commit
  12. 17 Jan, 2013 1 commit
    • Craig Tracey's avatar
      Adding a resolv.conf configuration module (LP: #1100434) · 01f2979b
      Craig Tracey authored
      Managing resolv.conf can be quite handy when running in an environment
      where you would like to control DNS resolution, despite being provided
      DNS server information by DHCP. This module will allow one to define the
      structure of their resolv.conf and write it PER_ONCE.
      
      Right now this makes the most sense on RedHat, and therefore, has defined
      'distros' as such.
      01f2979b
  13. 15 Jan, 2013 1 commit
    • ctracey's avatar
      Fix broken cc_update_etc_hosts (LP: #1100036) · 93bf045c
      ctracey authored
      Right now, all distros but ubuntu will fail to manage /etc/hosts. This
      is due to the fact that the templates are named:
      - hosts.ubuntu.tmpl
      - hosts.redhat.tmpl
      
      The config handler is specifically looking for a template with the
      given distro name.
      
      This change addresses this issue and is contingent upon support of
      'osfamilies' as implemented in LP: #1100029
      (lp:~craigtracey/cloud-init/osfamilies)
      93bf045c
  14. 22 Aug, 2012 1 commit
    • Scott Moser's avatar
      rework package mirror selection · d713d7bc
      Scott Moser authored
      There are several changes here.
       * Datasource now has a 'availability_zone' getter.
       * get_package_mirror_info
         * Datasource convenience 'get_package_mirror_info' that calls
           the configured distro, and passes it the availability-zone
         * distro has a get_package_mirror_info method
         * get_package_mirror_info returns a dict that of name:mirror
           this is to facilitate use of 'security' and 'primary' archive.
         * this supports searching based on templates.  Any template
           that references undefined values is skipped.  These templates
           can contain 'availability_zone' (LP: #1037727)
         * distro's mirrors can be arch specific (LP: #1028501)
       * rename_apt_lists supports the "mirror_info" rather than single mirror
       * generate_sources_list supports mirror_info, and as a result, the
         ubuntu mirrors reference '$security' rather than security (LP: #1006963)
       * remove the DataSourceEc2 specific mirror selection, but instead
         rely on the above filtering, and the fact that 'ec2_region' is only
         defined if the availability_zone looks like a ec2 az.
      d713d7bc
  15. 09 Jul, 2012 2 commits
  16. 22 Jun, 2012 1 commit
  17. 19 Jun, 2012 1 commit
  18. 16 Jun, 2012 3 commits
  19. 10 Sep, 2011 1 commit
  20. 20 Jul, 2011 1 commit
  21. 21 Apr, 2011 1 commit
  22. 10 Mar, 2011 1 commit
  23. 17 Feb, 2011 1 commit
  24. 31 Aug, 2010 1 commit
  25. 19 Aug, 2010 1 commit
  26. 14 Dec, 2009 1 commit
    • Scott Moser's avatar
      sync karmic and trunk · 7bc6bbe8
      Scott Moser authored
      This commit merges 
      lp:~soren/ec2-init/0.5 at rev 67
      and lp:ubuntu/lucid at 0.4.999-0ubuntu8
      7bc6bbe8
  27. 11 Aug, 2009 1 commit
  28. 06 Apr, 2009 2 commits
    • Chuck Short's avatar
      * ec2-set-hostname.py: · 6dddf16c
      Chuck Short authored
        - Use template for /etc/hosts creation.
        - Dont use public_hostname in /etc/hosts. (LP: #352745)
      * debian/control:
        - Add python-cheetah as a depends.
      * templates/sources.list.tmpl: 
        - Update template.
      * debian/init:
        - Run the ec2-user-data script last so that the users
          get a stable system  before running the user scripts.
      6dddf16c
    • Chuck Short's avatar
      * ec2-set-apt-sources.py: · 406eb2f8
      Chuck Short authored
        - Use a template to generate the sources.list and generate it based on the lsb_release. 
      406eb2f8