aboutsummaryrefslogtreecommitdiff
path: root/test/integ-test/integ-test-configs
diff options
context:
space:
mode:
authorRaúl Benencia <raul@thousandeyes.com>2018-04-13 16:30:31 -0700
committerRaúl Benencia <raul@thousandeyes.com>2018-05-11 15:02:34 -0700
commit77c172b823b64ebface655681ab0749b9d2f7081 (patch)
tree09c13e626eb95ae1d33e76ed683172eab1ab6c96 /test/integ-test/integ-test-configs
First public commit
Diffstat (limited to 'test/integ-test/integ-test-configs')
-rw-r--r--test/integ-test/integ-test-configs/env_overrides/production/ipxe/coreos.ipxe.slc16
-rw-r--r--test/integ-test/integ-test-configs/env_overrides/staging/preseed/example.preseed.slc14
-rw-r--r--test/integ-test/integ-test-configs/ipxe/coreos.ipxe.slc16
-rw-r--r--test/integ-test/integ-test-configs/mappings.yaml39
-rw-r--r--test/integ-test/integ-test-configs/static/bootstrap.sh11
-rw-r--r--test/integ-test/integ-test-configs/static/rc.local-bootstrap4
6 files changed, 100 insertions, 0 deletions
diff --git a/test/integ-test/integ-test-configs/env_overrides/production/ipxe/coreos.ipxe.slc b/test/integ-test/integ-test-configs/env_overrides/production/ipxe/coreos.ipxe.slc
new file mode 100644
index 0000000..f60b478
--- /dev/null
+++ b/test/integ-test/integ-test-configs/env_overrides/production/ipxe/coreos.ipxe.slc
@@ -0,0 +1,16 @@
+{{define "coreos.ipxe" -}}
+#!ipxe
+
+set coreos-url http://stable.release.core-os.net/amd64-usr/{{.version}}
+
+echo This will currently autologin into tty1 on the console.
+echo From there you can su to root and install CoreOS to disk using:
+echo coreos-install -d /dev/sda -C stable
+echo You will probably need to chroot into /dev/sda9 to configure accounts.
+echo More info @ http://coreos.com/docs/running-coreos/bare-metal/installing-to-disk/
+
+kernel ${coreos-url}/coreos_production_pxe.vmlinuz cloud-config-url=http://{{.baseURL}}/configs/coreos-{{.cloudconfig}}.yaml?release=stable&hostname={{.hostname}} console=tty1 coreos.autologin=tty1
+initrd ${coreos-url}/coreos_production_pxe_image.cpio.gz
+
+boot
+{{end}}
diff --git a/test/integ-test/integ-test-configs/env_overrides/staging/preseed/example.preseed.slc b/test/integ-test/integ-test-configs/env_overrides/staging/preseed/example.preseed.slc
new file mode 100644
index 0000000..824bcdd
--- /dev/null
+++ b/test/integ-test/integ-test-configs/env_overrides/staging/preseed/example.preseed.slc
@@ -0,0 +1,14 @@
+{{define "example.preseed" -}}
+
+d-i partman-auto-raid/recipe string \
+ 1 4 0 ext3 /boot \
+ /dev/sda1#/dev/sdb1#/dev/sdc1#/dev/sdd1 \
+ . \
+ 10 4 0 lvm - \
+ /dev/sda5#/dev/sdb5#/dev/sdc5#/dev/sdd5 \
+ .
+
+d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
+d-i grub-installer/bootdev string /dev/sda /dev/sdb /dev/sdc /dev/sdd
+
+{{end}}
diff --git a/test/integ-test/integ-test-configs/ipxe/coreos.ipxe.slc b/test/integ-test/integ-test-configs/ipxe/coreos.ipxe.slc
new file mode 100644
index 0000000..7cb5156
--- /dev/null
+++ b/test/integ-test/integ-test-configs/ipxe/coreos.ipxe.slc
@@ -0,0 +1,16 @@
+{{define "coreos.ipxe" -}}
+#!ipxe
+
+set coreos-url http://stable.release.core-os.net/amd64-usr/{{.version}}
+
+echo This will currently autologin into tty1 on the console.
+echo From there you can su to root and install CoreOS to disk using:
+echo coreos-install -d /dev/sda -C stable
+echo You will probably need to chroot into /dev/sda9 to configure accounts.
+echo More info @ http://coreos.com/docs/running-coreos/bare-metal/installing-to-disk/
+
+kernel ${coreos-url}/coreos_production_pxe.vmlinuz cloud-config-url=http://{{.baseURL}}/configs/coreos-{{.cloudconfig}}.yaml?release=stable console=tty1 coreos.autologin=tty1
+initrd ${coreos-url}/coreos_production_pxe_image.cpio.gz
+
+boot
+{{end}}
diff --git a/test/integ-test/integ-test-configs/mappings.yaml b/test/integ-test/integ-test-configs/mappings.yaml
new file mode 100644
index 0000000..534b72f
--- /dev/null
+++ b/test/integ-test/integ-test-configs/mappings.yaml
@@ -0,0 +1,39 @@
+networkMaps:
+ - network: 20.20.20.20/24
+ script:
+ name: ubuntu-minimal.ipxe
+ params:
+ hostname: placeholder
+
+hostnameMaps:
+ - hostname: '(etcd|k8s)\d-m\d'
+ script:
+ name: coreos.ipxe
+ params:
+ version: 1122.3.0
+ cloudconfig: virtual
+ - hostname: '(etcd|k8s)\d-m\d'
+ script:
+ name: coreos.ipxe
+ params:
+ version: 1122.3.0
+ cloudconfig: virtual
+ - hostname: 'k8s1-4'
+ script:
+ name: coreos.ipxe
+ environment: staging
+ params:
+ version: 1298.6.0
+ cloudconfig: baremetal
+ - hostname: 'k8s1-\d'
+ script:
+ name: coreos.ipxe
+ params:
+ version: 1122.3.0
+ cloudconfig: baremetal
+ - hostname: 'k8s1-\d'
+ script:
+ name: coreos.ipxe
+ params:
+ version: 1122.3.0
+ cloudconfig: baremetal
diff --git a/test/integ-test/integ-test-configs/static/bootstrap.sh b/test/integ-test/integ-test-configs/static/bootstrap.sh
new file mode 100644
index 0000000..847ae99
--- /dev/null
+++ b/test/integ-test/integ-test-configs/static/bootstrap.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+export DEBIAN_FRONTEND=noninteractive
+
+echo Example boostrap configuration
+apt-get install hello
+
+echo '#!/bin/sh
+exit 0' > /etc/rc.local
+
+# Don't want to run this accidentally.
+chmod 0 /usr/local/sbin/bootstrap
diff --git a/test/integ-test/integ-test-configs/static/rc.local-bootstrap b/test/integ-test/integ-test-configs/static/rc.local-bootstrap
new file mode 100644
index 0000000..084ccc2
--- /dev/null
+++ b/test/integ-test/integ-test-configs/static/rc.local-bootstrap
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/usr/local/sbin/bootstrap > /var/log/bootstrap.log 2>&1 &
+exit 0
nihil fit ex nihilo