Add aarch64 configuration
Add a valid aarch64 sources configuration file, and update the template to deploy the file on a per-architecture basis. Ensure we install the HWE kernel for arm64 servers Change-Id: If345e704540ea10828060d26e930a61ce68ed178
This commit is contained in:
parent
231acc0e54
commit
97e74314f5
35
modules/openstack_project/files/sources.list.xenial.aarch64
Normal file
35
modules/openstack_project/files/sources.list.xenial.aarch64
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
|
||||||
|
# newer versions of the distribution.
|
||||||
|
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted multiverse
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted multiverse
|
||||||
|
|
||||||
|
## Major bug fix updates produced after the final release of the
|
||||||
|
## distribution.
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted multiverse
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted multiverse
|
||||||
|
|
||||||
|
## Uncomment the following two lines to add software from the 'universe'
|
||||||
|
## repository.
|
||||||
|
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
|
||||||
|
## team. Also, please note that software in universe WILL NOT receive any
|
||||||
|
## review or updates from the Ubuntu security team.
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial universe
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial universe
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
|
||||||
|
|
||||||
|
## N.B. software from this repository may not have been tested as
|
||||||
|
## extensively as that contained in the main release, although it includes
|
||||||
|
## newer versions of some applications which may provide useful features.
|
||||||
|
## Also, please note that software in backports WILL NOT receive any review
|
||||||
|
## or updates from the Ubuntu security team.
|
||||||
|
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
|
||||||
|
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
|
||||||
|
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted multiverse
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted multiverse
|
||||||
|
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe
|
||||||
|
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe
|
||||||
|
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse
|
||||||
|
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse
|
@ -103,7 +103,7 @@ class openstack_project::server (
|
|||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0444',
|
mode => '0444',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
source => "puppet:///modules/openstack_project/sources.list.${::lsbdistcodename}",
|
source => "puppet:///modules/openstack_project/sources.list.${::lsbdistcodename}.${::architecture}",
|
||||||
}
|
}
|
||||||
exec { 'update-apt':
|
exec { 'update-apt':
|
||||||
command => 'apt-get update',
|
command => 'apt-get update',
|
||||||
@ -340,4 +340,13 @@ class openstack_project::server (
|
|||||||
ensure => file,
|
ensure => file,
|
||||||
require => File['/etc/cloud'],
|
require => File['/etc/cloud'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($::lsbdistcodename == 'xenial' and $::architecture == 'aarch64') {
|
||||||
|
# Make sure we install the HWE kernel for arm64; it's 4.13 v 4.3
|
||||||
|
# and works much better on linaro cloud
|
||||||
|
package { 'linux-generic-hwe-16.04':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user