mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 19:19:49 +00:00
tests/integration: Add option config_from_host
This commit is contained in:
@@ -43,6 +43,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -48,6 +48,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -51,6 +51,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -28,6 +28,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -43,6 +43,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -43,6 +43,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -71,6 +71,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -70,6 +70,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -42,6 +42,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -42,6 +42,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -50,6 +50,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -42,6 +42,7 @@ system:
|
|||||||
rootfs: /
|
rootfs: /
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -44,6 +44,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -71,6 +71,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -36,9 +36,9 @@ testRepo() {
|
|||||||
testConfig() {
|
testConfig() {
|
||||||
mkdir $tmpdir/testrootfs
|
mkdir $tmpdir/testrootfs
|
||||||
|
|
||||||
mkdir $tmpdir/config.protect.d
|
mkdir $tmpdir/testrootfs/etc/luet/config.protect.d -p
|
||||||
|
|
||||||
cat <<EOF > $tmpdir/config.protect.d/conf1.yml
|
cat <<EOF > $tmpdir/testrootfs/etc/luet/config.protect.d/conf1.yml
|
||||||
name: "protect1"
|
name: "protect1"
|
||||||
dirs:
|
dirs:
|
||||||
- /etc/
|
- /etc/
|
||||||
@@ -52,7 +52,8 @@ system:
|
|||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
config_protect_confdir:
|
config_protect_confdir:
|
||||||
- $tmpdir/config.protect.d
|
- /etc/luet/config.protect.d
|
||||||
|
config_from_host: false
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -54,6 +54,7 @@ system:
|
|||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
config_protect_confdir:
|
config_protect_confdir:
|
||||||
- $tmpdir/config.protect.d
|
- $tmpdir/config.protect.d
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -61,6 +61,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -42,6 +42,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -42,6 +42,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
@@ -52,6 +52,7 @@ system:
|
|||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
config_protect_skip: true
|
config_protect_skip: true
|
||||||
|
config_from_host: true
|
||||||
config_protect_confdir:
|
config_protect_confdir:
|
||||||
- $tmpdir/config.protect.d
|
- $tmpdir/config.protect.d
|
||||||
repositories:
|
repositories:
|
||||||
|
@@ -43,6 +43,7 @@ system:
|
|||||||
rootfs: $tmpdir/testrootfs
|
rootfs: $tmpdir/testrootfs
|
||||||
database_path: "/"
|
database_path: "/"
|
||||||
database_engine: "boltdb"
|
database_engine: "boltdb"
|
||||||
|
config_from_host: true
|
||||||
repositories:
|
repositories:
|
||||||
- name: "main"
|
- name: "main"
|
||||||
type: "disk"
|
type: "disk"
|
||||||
|
Reference in New Issue
Block a user