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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1a4805d460555cf0c64c63c32b6ba18be490b42
4
- data.tar.gz: 51aee814b7dab8bb786ac95fc3def208845d873e
3
+ metadata.gz: b76fd4b70c2ad8472e6cf9c4f92f09afc28297d5
4
+ data.tar.gz: a26b7bf22f0c9c86b80727d3fffb8cf58648ce0f
5
5
  SHA512:
6
- metadata.gz: 4c83ee825bd77d2fff383af3f2bc7f32df9467a6c6941678f17dea8c140f372b5671baf1cb9a5b956bd32c209dc8851e593f5145e78b9c4f34f13b052b559c29
7
- data.tar.gz: 20208edfcc2cd3b4278f64e62772ae9fbbd9043fc93f453a0d9e716edb825ec1a56d772fea7c88f703e54c3da687d5d71bb5437f67c961ba72ca75dcc5d73cbe
6
+ metadata.gz: e1e4d7e9997d8f5e964eb4df43f7cdf435d04eb5ffcdafa38b8ceb939947c88b83f177f2edb655bfe57e8011acc7056e79b4c0ac1dfee61a877af18a0bdb09cd
7
+ data.tar.gz: d05f48b1df881b2b21e422bfb8fd433a1f01e9e52e995bb611c188455905097842d77cdd834c8bbdea49b2248b86106030ff522355ce6838bc451770da272da0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # dev-lxc Change Log
2
2
 
3
+ ## 1.7.0 (2016-05-04)
4
+
5
+ * Replace p-ubuntu-1504 with p-ubuntu-1604
6
+
3
7
  ## 1.6.3 (2016-05-04)
4
8
 
5
9
  * Put adhoc servers at the end of the servers list
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-1504
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-1504 p-centos-5 p-centos-6 p-centos-7)
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-1504
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
@@ -1,3 +1,3 @@
1
1
  module DevLXC
2
- VERSION = "1.6.3"
2
+ VERSION = "1.7.0"
3
3
  end
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-1504"
25
- options = ["-d", "ubuntu", "-r", "vivid", "-a", "amd64"]
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-1504"
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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev-lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremiah Snapp