dev-lxc 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/dev-lxc/cli.rb +2 -2
- data/lib/dev-lxc/version.rb +1 -1
- data/lib/dev-lxc.rb +3 -5
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b76fd4b70c2ad8472e6cf9c4f92f09afc28297d5
         | 
| 4 | 
            +
              data.tar.gz: a26b7bf22f0c9c86b80727d3fffb8cf58648ce0f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e1e4d7e9997d8f5e964eb4df43f7cdf435d04eb5ffcdafa38b8ceb939947c88b83f177f2edb655bfe57e8011acc7056e79b4c0ac1dfee61a877af18a0bdb09cd
         | 
| 7 | 
            +
              data.tar.gz: d05f48b1df881b2b21e422bfb8fd433a1f01e9e52e995bb611c188455905097842d77cdd834c8bbdea49b2248b86106030ff522355ce6838bc451770da272da0
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -494,7 +494,7 @@ dev-lxc init | |
| 494 494 |  | 
| 495 495 | 
             
            ```
         | 
| 496 496 | 
             
            ## platform_image can be one of the following:
         | 
| 497 | 
            -
            ## p-centos-5, p-centos-6, p-centos-7, p-ubuntu-1204, p-ubuntu-1404 or p-ubuntu- | 
| 497 | 
            +
            ## p-centos-5, p-centos-6, p-centos-7, p-ubuntu-1204, p-ubuntu-1404 or p-ubuntu-1604
         | 
| 498 498 | 
             
            platform_image: p-ubuntu-1404
         | 
| 499 499 |  | 
| 500 500 | 
             
            ## platform_image_options can be set to provide additional arguments to the LXC create command
         | 
    
        data/lib/dev-lxc/cli.rb
    CHANGED
    
    | @@ -84,7 +84,7 @@ module DevLXC::CLI | |
| 84 84 | 
             
                option :options, :aliases => "-o", :desc => "Specify additional options for the lxc create"
         | 
| 85 85 | 
             
                def create(platform_image_name=nil)
         | 
| 86 86 | 
             
                  start_time = Time.now
         | 
| 87 | 
            -
                  platform_image_names = %w(p-ubuntu-1204 p-ubuntu-1404 p-ubuntu- | 
| 87 | 
            +
                  platform_image_names = %w(p-ubuntu-1204 p-ubuntu-1404 p-ubuntu-1604 p-centos-5 p-centos-6 p-centos-7)
         | 
| 88 88 | 
             
                  if platform_image_name.nil? || ! platform_image_names.include?(platform_image_name)
         | 
| 89 89 | 
             
                    platform_image_names_with_index = platform_image_names.map.with_index{ |a, i| [i+1, *a]}
         | 
| 90 90 | 
             
                    print_table platform_image_names_with_index
         | 
| @@ -178,7 +178,7 @@ module DevLXC::CLI | |
| 178 178 | 
             
                option :adhoc, :type => :boolean, :desc => "Adhoc Servers"
         | 
| 179 179 | 
             
                def init(unique_string=nil)
         | 
| 180 180 | 
             
                  header = %Q(## platform_image can be one of the following:
         | 
| 181 | 
            -
            ## p-centos-5, p-centos-6, p-centos-7, p-ubuntu-1204, p-ubuntu-1404 or p-ubuntu- | 
| 181 | 
            +
            ## p-centos-5, p-centos-6, p-centos-7, p-ubuntu-1204, p-ubuntu-1404 or p-ubuntu-1604
         | 
| 182 182 | 
             
            platform_image: p-ubuntu-1404
         | 
| 183 183 |  | 
| 184 184 | 
             
            ## platform_image_options can be set to provide additional arguments to the LXC create command
         | 
    
        data/lib/dev-lxc/version.rb
    CHANGED
    
    
    
        data/lib/dev-lxc.rb
    CHANGED
    
    | @@ -21,8 +21,8 @@ module DevLXC | |
| 21 21 | 
             
                  options = ["-d", "ubuntu", "-r", "precise", "-a", "amd64"]
         | 
| 22 22 | 
             
                when "p-ubuntu-1404"
         | 
| 23 23 | 
             
                  options = ["-d", "ubuntu", "-r", "trusty", "-a", "amd64"]
         | 
| 24 | 
            -
                when "p-ubuntu- | 
| 25 | 
            -
                  options = ["-d", "ubuntu", "-r", " | 
| 24 | 
            +
                when "p-ubuntu-1604"
         | 
| 25 | 
            +
                  options = ["-d", "ubuntu", "-r", "xenial", "-a", "amd64"]
         | 
| 26 26 | 
             
                when "p-centos-5"
         | 
| 27 27 | 
             
                  template = "centos"
         | 
| 28 28 | 
             
                  options = ["-R", "5"]
         | 
| @@ -69,10 +69,8 @@ module DevLXC | |
| 69 69 | 
             
                  platform_image.run_command("apt-get install -y standard^ server^ vim-nox emacs23-nox tree openssh-server")
         | 
| 70 70 | 
             
                  IO.write("#{platform_image.config_item('lxc.rootfs')}/etc/rc.local", "#!/usr/bin/env bash\n\n/usr/sbin/dpkg-reconfigure openssh-server\n")
         | 
| 71 71 | 
             
                  FileUtils.chmod(0755, "#{platform_image.config_item('lxc.rootfs')}/etc/rc.local")
         | 
| 72 | 
            -
                when "p-ubuntu- | 
| 72 | 
            +
                when "p-ubuntu-1604"
         | 
| 73 73 | 
             
                  platform_image.run_command("apt-get update")
         | 
| 74 | 
            -
                  # install policykit-1 first Ref: https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1447654/
         | 
| 75 | 
            -
                  platform_image.run_command("apt-get install -y policykit-1")
         | 
| 76 74 | 
             
                  platform_image.run_command("apt-get install -y standard^ server^ vim-nox emacs24-nox tree openssh-server")
         | 
| 77 75 | 
             
                  IO.write("#{platform_image.config_item('lxc.rootfs')}/etc/rc.local", "#!/usr/bin/env bash\n\n/usr/sbin/dpkg-reconfigure openssh-server\n")
         | 
| 78 76 | 
             
                  FileUtils.chmod(0755, "#{platform_image.config_item('lxc.rootfs')}/etc/rc.local")
         |