summaryrefslogtreecommitdiff
path: root/templates-cfg/system
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-10-26 16:58:08 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-10-26 16:58:08 -0700
commitde8b643eb1ff7c056f4e5e9c920387ed2d2d2a11 (patch)
tree333c2e0b2f020ed6469c3076d43050de08cfcb4a /templates-cfg/system
downloadvyatta-config-mgmt-de8b643eb1ff7c056f4e5e9c920387ed2d2d2a11.tar.gz
vyatta-config-mgmt-de8b643eb1ff7c056f4e5e9c920387ed2d2d2a11.zip
Create vyatta-config-mgmt repo.debian/0.1
Diffstat (limited to 'templates-cfg/system')
-rw-r--r--templates-cfg/system/config-mgmt/commit-revisions/node.def12
-rw-r--r--templates-cfg/system/config-mgmt/commit-uri/node.def24
-rw-r--r--templates-cfg/system/config-mgmt/node.def1
3 files changed, 37 insertions, 0 deletions
diff --git a/templates-cfg/system/config-mgmt/commit-revisions/node.def b/templates-cfg/system/config-mgmt/commit-revisions/node.def
new file mode 100644
index 0000000..e5da66a
--- /dev/null
+++ b/templates-cfg/system/config-mgmt/commit-revisions/node.def
@@ -0,0 +1,12 @@
+type: u32
+priority: 400
+help: Commit revisions
+
+update: sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl \
+ --action=update-revs \
+ --revs="$VAR(@)"
+
+val_help: u32:0-65535 ; Number of config backups to keep
+
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 65535 ; \
+ "Commit revisions must be in range 0 to 65535"
diff --git a/templates-cfg/system/config-mgmt/commit-uri/node.def b/templates-cfg/system/config-mgmt/commit-uri/node.def
new file mode 100644
index 0000000..7b483f9
--- /dev/null
+++ b/templates-cfg/system/config-mgmt/commit-uri/node.def
@@ -0,0 +1,24 @@
+multi:
+priority: 400
+type: txt
+help: Commit URI
+
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-config-mgmt.pl \
+ --action=valid-uri \
+ --uri=\"$VAR(@)\" "; "Invalid URI"
+
+create: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \
+ [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
+ sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=add-uri
+ fi;
+
+delete: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \
+ [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
+ sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=del-uri
+ fi;
+
+val_help: <uri> ; Uniform Resource Identifier
+comp_help:
+ "scp://<user>:<passwd>@<host>/<dir>"
+ "ftp://<user>:<passwd>@<host>/<dir>"
+ "tftp://<host>/<dir>" \ No newline at end of file
diff --git a/templates-cfg/system/config-mgmt/node.def b/templates-cfg/system/config-mgmt/node.def
new file mode 100644
index 0000000..e260c27
--- /dev/null
+++ b/templates-cfg/system/config-mgmt/node.def
@@ -0,0 +1 @@
+help: Configuration management settings