diff --git a/templates/110_filesys-cores.yaml.tt2 b/templates/110_filesys-cores.yaml.tt2 index ac1c655..f3edd7e 100644 --- a/templates/110_filesys-cores.yaml.tt2 +++ b/templates/110_filesys-cores.yaml.tt2 @@ -8,7 +8,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /var/lib/systemd/coredump: exists: true diff --git a/templates/130_filesys-ngcp.yaml.tt2 b/templates/130_filesys-ngcp.yaml.tt2 index f650596..e0ca691 100644 --- a/templates/130_filesys-ngcp.yaml.tt2 +++ b/templates/130_filesys-ngcp.yaml.tt2 @@ -6,7 +6,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/config.yml: exists: true @@ -14,7 +18,11 @@ file: owner: root group: _ngcp-admin filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/constants.yml: exists: true @@ -22,7 +30,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/maintenance.yml: exists: true @@ -30,7 +42,11 @@ file: owner: root group: _ngcp-admin filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/network.yml: exists: true @@ -38,7 +54,11 @@ file: owner: root group: _ngcp-admin filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/.git: exists: true @@ -46,7 +66,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/cfg_schema.db: exists: true @@ -54,7 +78,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/.ngcpcfg_perms: exists: true @@ -62,7 +90,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/ngcpcfg.cfg: exists: false @@ -73,7 +105,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/ssl: exists: false @@ -84,7 +120,11 @@ file: owner: root group: ssl-cert filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp_version: exists: true @@ -92,7 +132,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/sipwise_ngcp_version: exists: true @@ -100,7 +144,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/: exists: true @@ -108,7 +156,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/conf.d: exists: true @@ -116,7 +168,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/debian-start: exists: true @@ -124,7 +180,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/debian.cnf: exists: true @@ -132,7 +192,11 @@ file: owner: root group: mysql filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/grants.yml: exists: true @@ -140,7 +204,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc: exists: true @@ -148,7 +216,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/mariadb.cnf: exists: true @@ -156,7 +228,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: +{{else}} contains: +{{end}} - '/^\[mysql\]$/' - '/^\[mysqld\]$/' - '/^\[mysqldump\]$/' @@ -167,7 +243,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc/my.myisamchk.cnf: exists: true @@ -175,7 +255,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc/my.mysql.cnf: exists: true @@ -183,7 +267,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc/my.safe_mysqld.cnf: exists: true @@ -191,7 +279,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc/my.mysqldump.cnf: exists: true @@ -199,7 +291,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/my.cnf: exists: true @@ -208,7 +304,11 @@ file: group: root linked-to: /etc/alternatives/my.cnf filetype: symlink +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/sipwise.cnf: exists: false @@ -220,8 +320,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] - +{{end}} /etc/alternatives/my.cnf: exists: true @@ -230,7 +333,11 @@ file: group: root linked-to: /etc/mysql/mariadb.cnf filetype: symlink +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /ngcp-data/backup: exists: true diff --git a/templates/131_filesys-ngcp-pro.yaml.tt2 b/templates/131_filesys-ngcp-pro.yaml.tt2 index a83fbd3..2591305 100644 --- a/templates/131_filesys-ngcp-pro.yaml.tt2 +++ b/templates/131_filesys-ngcp-pro.yaml.tt2 @@ -31,7 +31,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/shared-files/ssh: exists: true @@ -39,7 +43,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/shared-files/sshd: exists: true @@ -47,7 +55,11 @@ file: owner: root group: root filetype: directory +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/ngcp-config/systems.cfg: exists: false @@ -133,7 +145,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/inc/my.mysqld2.cnf: exists: true @@ -141,7 +157,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} /etc/mysql/conf.d/my2.cnf: exists: true @@ -149,7 +169,11 @@ file: owner: root group: mysql filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} [% IF general.ngcp_type == 'sppro' -%] size: 0 [% END -%] @@ -160,7 +184,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} [% IF general.ngcp_type == 'sppro' -%] size: 0 [% END -%] @@ -171,7 +199,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} [% IF general.ngcp_type == 'sppro' -%] size: 0 [% END -%] @@ -182,7 +214,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: [] +{{else}} contains: [] +{{end}} [% IF general.ngcp_type == 'sppro' -%] size: 0 [% END -%] diff --git a/templates/830_network-interfaces-legacy.yaml.tt2 b/templates/830_network-interfaces-legacy.yaml.tt2 index 823d17f..f7df19e 100644 --- a/templates/830_network-interfaces-legacy.yaml.tt2 +++ b/templates/830_network-interfaces-legacy.yaml.tt2 @@ -6,7 +6,11 @@ file: owner: root group: root filetype: file +{{if ge .Env.DEBIAN_RELEASE "13"}} + contents: ['!/^GRUB_CMDLINE_LINUX_DEFAULT=".*net.ifnames=0.*"/'] +{{else}} contains: ['!/^GRUB_CMDLINE_LINUX_DEFAULT=".*net.ifnames=0.*"/'] +{{end}} command: