aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/config/vpp_exec_line.pp
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-09-20 07:50:44 -0400
committerFeng Pan <fpan@redhat.com>2017-09-21 14:36:15 -0400
commitb719cbb990b1c6f56eefb08170fe7d36eb6fbee1 (patch)
treecc74e998a65b2643b1d0135345d2019e6726eaf5 /manifests/config/vpp_exec_line.pp
parent19fa56176090ca9a1dbce1dff944d8946d15b20a (diff)
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 <fpan@redhat.com>
Diffstat (limited to 'manifests/config/vpp_exec_line.pp')
-rw-r--r--manifests/config/vpp_exec_line.pp20
1 files changed, 20 insertions, 0 deletions
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