Skip to content

Commit

Permalink
handling bionic #116
Browse files Browse the repository at this point in the history
  • Loading branch information
akarasulu committed Apr 23, 2020
1 parent 23c9c40 commit 9ad386b
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions bionic/Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Base Box `nat-xenial`
Base Box `bionic`
======================

This box builds a NAT'd Ubuntu Xenial RH or Peer based on configuration settings.
This box builds an Ubuntu Bionic RH or Peer based on configuration settings.

Unless stated otherwise all machine architectures are amd64.

4 changes: 2 additions & 2 deletions bionic/hyperv/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ SubutaiConfig.print
Vagrant.require_version '>= 2.0.1'

Vagrant.configure('2') do |config|
config.vm.box = 'subutai/xenial'
config.vm.box = 'subutai/bionic'
url = SubutaiConfig.url_of_cdn
owner = 'subutai'
artifact_name = 'vagrant-subutai-xenial-hyperv.box'
artifact_name = 'vagrant-subutai-bionic-hyperv.box'
config.vm.box_url = url + '/raw/download?id=' + SubutaiConfig.get_latest_id_artifact(owner, artifact_name)
config.ssh.username = 'subutai'

Expand Down
4 changes: 2 additions & 2 deletions bionic/hyperv/post-processor.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"output": "vagrant-subutai-{{user `vm_name`}}-hyperv-{{user `version`}}.box",
"vagrantfile_template": ".\\xenial\\hyperv\\Vagrantfile"
}
"vagrantfile_template": ".\\bionic\\hyperv\\Vagrantfile"
}
2 changes: 1 addition & 1 deletion bionic/hyperv/provisioner.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"echo Adding needed packages ...",
"DEBIAN_FRONTEND=noninteractive apt-get -q -y install net-tools inotify-tools",
"DEBIAN_FRONTEND=noninteractive apt-get -q -y install linux-cloud-tools-$(uname -r)",
"DEBIAN_FRONTEND=noninteractive apt-get -q -y install linux-virtual-lts-xenial linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial",
"DEBIAN_FRONTEND=noninteractive apt-get -q -y install linux-virtual-lts-bionic linux-tools-virtual-lts-bionic linux-cloud-tools-virtual-lts-bionic",
"echo \"{{user `ssh_username`}} ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers.d/{{user `ssh_username`}}",
"chmod 440 /etc/sudoers.d/{{user `ssh_username`}}",
"mkdir -pm 700 /home/{{user `ssh_username`}}/.ssh",
Expand Down
12 changes: 6 additions & 6 deletions bionic/hyperv/template.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"builders": [
import ".\\xenial\\hyperv\\builder.jsonnet",
import ".\\bionic\\hyperv\\builder.jsonnet",
],
"post-processors": [
[
Expand All @@ -11,7 +11,7 @@
"hyperv-iso"
],
"override": {
"hyperv": import ".\\xenial\\hyperv\\post-processor.jsonnet"
"hyperv": import ".\\bionic\\hyperv\\post-processor.jsonnet"
},
"type": "vagrant"
}
Expand All @@ -20,15 +20,15 @@
"provisioners": [
{
type: "file",
source: ".\\http\\xenial.sources.list",
source: ".\\http\\bionic.sources.list",
destination: "/tmp/sources.list"
},
{
"override": {
"hyperv-iso": import ".\\xenial\\hyperv\\provisioner.jsonnet",
"hyperv-iso": import ".\\bionic\\hyperv\\provisioner.jsonnet",
},
"type": "shell"
},
],
"variables": import ".\\xenial\\variables.jsonnet"
}
"variables": import ".\\bionic\\variables.jsonnet"
}
6 changes: 3 additions & 3 deletions bionic/libvirt/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Vagrant.require_version '>= 2.0.1'

Vagrant.configure('2') do |config|

config.vm.box = 'subutai/xenial'
config.vm.box = 'subutai/bionic'
url = SubutaiConfig.url_of_cdn
owner = 'subutai'
artifact_name = 'vagrant-subutai-xenial-libvirt.box'
artifact_name = 'vagrant-subutai-bionic-libvirt.box'
config.vm.box_url = url + '/raw/download?id=' + SubutaiConfig.get_latest_id_artifact(owner, artifact_name)
config.ssh.username = 'subutai'

Expand Down Expand Up @@ -160,4 +160,4 @@ Vagrant.configure('2') do |config|
path: 'https://raw.githubusercontent.com/subutai-io/packer/master/provisioning/en/logrotate.sh'

config.vm.provision :cleanup
end
end
2 changes: 1 addition & 1 deletion bionic/libvirt/post-processor.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"output": "vagrant-subutai-{{user `vm_name`}}-libvirt-{{user `version`}}.box",
"vagrantfile_template": "{{user `base_dir`}}/xenial/libvirt/branch/Vagrantfile",
"vagrantfile_template": "{{user `base_dir`}}/bionic/libvirt/branch/Vagrantfile",
}
4 changes: 2 additions & 2 deletions bionic/parallels/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Vagrant.require_version '>= 2.0.1'

Vagrant.configure('2') do |config|

config.vm.box = 'subutai/xenial'
config.vm.box = 'subutai/bionic'
config.ssh.username = 'subutai'

config.vm.base_mac = SubutaiConfig.get(:_BASE_MAC)
Expand Down Expand Up @@ -117,4 +117,4 @@ Vagrant.configure('2') do |config|
path: 'https://raw.githubusercontent.com/subutai-io/packer/master/provisioning/en/logrotate.sh'

config.vm.provision :cleanup
end
end
2 changes: 1 addition & 1 deletion bionic/parallels/post-processor.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"output": "vagrant-subutai-{{user `vm_name`}}-parallels-{{user `version`}}.box",
"vagrantfile_template": "{{user `base_dir`}}/xenial/parallels/branch/Vagrantfile",
"vagrantfile_template": "{{user `base_dir`}}/bionic/parallels/branch/Vagrantfile",
}
2 changes: 1 addition & 1 deletion bionic/template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"provisioners": [
{
type: "file",
source: "http/xenial.sources.list",
source: "http/bionic.sources.list",
destination: "/tmp/sources.list"
},
{
Expand Down
10 changes: 5 additions & 5 deletions bionic/variables.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"hostname": "subutai",
"iso_checksum": "10fcd20619dce11fe094e960c85ba4a9",
"iso_checksum_type": "md5",
"iso_name": "ubuntu-16.04.3-server-amd64.iso",
"iso_url": "http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-server-amd64.iso",
"iso_name": "ubuntu-18.04.4-live-server-amd64.iso",
"iso_url": "http://releases.ubuntu.com/bionic/ubuntu-18.04.4-live-server-amd64.iso",
"keep_registered": "false",
"locale": "en_US.UTF8",
"memory": "4096",
"null_host": "192.168.81.129",
"preseed": "xenial.cfg",
"preseed_virtio": "virtio/xenial.cfg",
"preseed": "bionic.cfg",
"preseed_virtio": "virtio/bionic.cfg",
"proxy_on": "{{env `PROXY_ON`}}",
"skip_export": "false",
"ssh_username": "subutai",
"ssh_password": "ubuntai",
"version": "7.0.1",
"virtualbox_guest_os_type": "Ubuntu_64",
"vm_name": "xenial"
"vm_name": "bionic"
}
6 changes: 3 additions & 3 deletions bionic/virtualbox/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ SubutaiConfig.print
Vagrant.require_version '>= 2.0.1'

Vagrant.configure('2') do |config|
config.vm.box = 'subutai/xenial'
config.vm.box = 'subutai/bionic'
url = SubutaiConfig.url_of_cdn
owner = 'subutai'
artifact_name = 'vagrant-subutai-xenial-virtualbox.box'
artifact_name = 'vagrant-subutai-bionic-virtualbox.box'
config.vm.box_url = url + '/raw/download?id=' + SubutaiConfig.get_latest_id_artifact(owner,artifact_name)
config.ssh.username = 'subutai'

Expand Down Expand Up @@ -147,4 +147,4 @@ Vagrant.configure('2') do |config|
path: 'https://raw.githubusercontent.com/subutai-io/packer/master/provisioning/en/logrotate.sh'

config.vm.provision :cleanup
end
end
4 changes: 2 additions & 2 deletions bionic/virtualbox/post-processor.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"output": "vagrant-subutai-{{user `vm_name`}}-virtualbox-{{user `version`}}.box",
"vagrantfile_template": "{{user `base_dir`}}/xenial/virtualbox/branch/Vagrantfile",
"vagrantfile_template": "{{user `base_dir`}}/bionic/virtualbox/branch/Vagrantfile",
"include": [
]
}
}
6 changes: 3 additions & 3 deletions bionic/vmware/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Vagrant.require_version '>= 2.0.1'

Vagrant.configure('2') do |config|

config.vm.box = 'subutai/xenial'
config.vm.box = 'subutai/bionic'
url = SubutaiConfig.url_of_cdn
owner = 'subutai'
artifact_name = 'vagrant-subutai-xenial-vmware.box'
artifact_name = 'vagrant-subutai-bionic-vmware.box'
config.vm.box_url = url + '/raw/download?id=' + SubutaiConfig.get_latest_id_artifact(owner, artifact_name)
config.ssh.username = 'subutai'

Expand Down Expand Up @@ -147,4 +147,4 @@ Vagrant.configure('2') do |config|
path: 'https://raw.githubusercontent.com/subutai-io/packer/master/provisioning/en/logrotate.sh'

config.vm.provision :cleanup
end
end
2 changes: 1 addition & 1 deletion bionic/vmware/post-processor.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"output": "vagrant-subutai-{{user `vm_name`}}-vmware-{{user `version`}}.box",
"vagrantfile_template": "{{user `base_dir`}}/xenial/vmware/branch/Vagrantfile",
"vagrantfile_template": "{{user `base_dir`}}/bionic/vmware/branch/Vagrantfile",
}

0 comments on commit 9ad386b

Please sign in to comment.