From b719cbb990b1c6f56eefb08170fe7d36eb6fbee1 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Wed, 20 Sep 2017 07:50:44 -0400 Subject: Add startup exec commands support This patch adds support for configuring VPP startup exec commands. The commands specified will be appeneded to the exec file specified if the file already exists. JIRA: PUP-6 Change-Id: Ief8097041473573bfdb9c8460b99e14723eaa36d Signed-off-by: Feng Pan --- manifests/config/vpp_exec_line.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 manifests/config/vpp_exec_line.pp (limited to 'manifests/config/vpp_exec_line.pp') diff --git a/manifests/config/vpp_exec_line.pp b/manifests/config/vpp_exec_line.pp new file mode 100644 index 0000000..5c64487 --- /dev/null +++ b/manifests/config/vpp_exec_line.pp @@ -0,0 +1,20 @@ +# == Define: fdio::config::vpp_exec_line +# +# Defined type to configure VPP startup exec line +# +# === Parameters: +# [*path*] +# (required) Path of VPP exec file path +# +# [*line*] +# (required) VPP exec command +# +define fdio::config::vpp_exec_line ( + $path, + $line = $title, +) { + file_line { "${line}": + path => $path, + line => $line + } +} \ No newline at end of file -- cgit 1.2.3-korg