Skip to content

Commit

Permalink
images: add aws and azure image descriptors
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
  • Loading branch information
Leandro Dorileo committed Oct 24, 2018
1 parent c34f410 commit 7bcd4c9
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 0 deletions.
39 changes: 39 additions & 0 deletions scripts/aws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#clear-linux-config

# switch between aliases if you want to install to an actuall block device
# i.e /dev/sda
block-devices: [
{name: "aws", file: "aws.img"}
]

targetMedia:
- name: ${aws}
size: "512M"
type: disk
children:
- name: ${aws}1
fstype: ext4
mountpoint: /
options: -b 4096 -O ^64bit
size: "512M"
type: part

bundles: [
openssh-server,
os-cloudguest-aws,
os-core,
os-core-update,
]

postArchive: false
postReboot: false
telemetry: false
legacyBios: true

keyboard: us
language: en_US.UTF-8
kernel: kernel-aws

post-install: [
{cmd: "scripts/disable-ssh-root.sh ${chrootDir}"}
]
40 changes: 40 additions & 0 deletions scripts/azure-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#clear-linux-config

# switch between aliases if you want to install to an actuall block device
# i.e /dev/sda
block-devices: [
{name: "azure-docker", file: "azure.img"}
]

targetMedia:
- name: ${azure-docker}
size: "20G"
type: disk
children:
- name: ${azure-docker}1
fstype: ext4
mountpoint: /
options: -O ^64bit
size: "20G"
type: part

bundles: [
cloud-native-basic,
editors,
network-basic,
openssh-server,
os-cloudguest-azure,
os-core,
os-core-update,
storage-utils,
sysadmin-basic,
]

postArchive: false
postReboot: false
telemetry: false
legacyBios: true

keyboard: us
language: en_US.UTF-8
kernel: kernel-hyperv
40 changes: 40 additions & 0 deletions scripts/azure-machine-learning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#clear-linux-config

# switch between aliases if you want to install to an actuall block device
# i.e /dev/sda
block-devices: [
{name: "bdevice", file: "azure.img"}
]

targetMedia:
- name: ${bdevice}
size: "20G"
type: disk
children:
- name: ${bdevice}1
fstype: ext4
mountpoint: /
options: -O ^64bit
size: "20G"
type: part

bundles: [
editors,
machine-learning-basic,
network-basic,
openssh-server,
os-cloudguest-azure,
os-core,
os-core-update,
storage-utils,
sysadmin-basic,
]

postArchive: false
postReboot: false
telemetry: false
legacyBios: true

keyboard: us
language: en_US.UTF-8
kernel: kernel-hyperv
39 changes: 39 additions & 0 deletions scripts/azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#clear-linux-config

# switch between aliases if you want to install to an actuall block device
# i.e /dev/sda
block-devices: [
{name: "azure", file: "azure.img"}
]

targetMedia:
- name: ${azure}
size: "20G"
type: disk
children:
- name: ${azure}1
fstype: ext4
mountpoint: /
options: -O ^64bit
size: "20G"
type: part

bundles: [
editors,
network-basic,
openssh-server,
os-cloudguest-azure,
os-core,
os-core-update,
storage-utils,
sysadmin-basic,
]

postArchive: false
postReboot: false
telemetry: false
legacyBios: true

keyboard: us
language: en_US.UTF-8
kernel: kernel-hyperv
5 changes: 5 additions & 0 deletions scripts/disable-ssh-root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

CHROOTPATH=$1
sudo mkdir -p ${CHROOTPATH}/etc/ssh/
sudo echo "PermitRootLogin no" >> ${CHROOTPATH}/etc/ssh/sshd_config

0 comments on commit 7bcd4c9

Please sign in to comment.