summaryrefslogtreecommitdiff
path: root/templates-cfg/system/config-management
diff options
context:
space:
mode:
Diffstat (limited to 'templates-cfg/system/config-management')
-rw-r--r--templates-cfg/system/config-management/commit-revisions/node.def17
-rw-r--r--templates-cfg/system/config-management/node.def1
-rw-r--r--templates-cfg/system/config-management/remote-archive/commit-uri/node.def24
-rw-r--r--templates-cfg/system/config-management/remote-archive/node.def1
4 files changed, 43 insertions, 0 deletions
diff --git a/templates-cfg/system/config-management/commit-revisions/node.def b/templates-cfg/system/config-management/commit-revisions/node.def
new file mode 100644
index 0000000..854bb1e
--- /dev/null
+++ b/templates-cfg/system/config-management/commit-revisions/node.def
@@ -0,0 +1,17 @@
+type: u32
+priority: 400
+help: Commit revisions
+
+update: sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl \
+ --action=update-revs \
+ --revs="$VAR(@)"
+
+delete: sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl \
+ --action=update-revs \
+ --revs="0"
+
+
+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-management/node.def b/templates-cfg/system/config-management/node.def
new file mode 100644
index 0000000..e260c27
--- /dev/null
+++ b/templates-cfg/system/config-management/node.def
@@ -0,0 +1 @@
+help: Configuration management settings
diff --git a/templates-cfg/system/config-management/remote-archive/commit-uri/node.def b/templates-cfg/system/config-management/remote-archive/commit-uri/node.def
new file mode 100644
index 0000000..7b483f9
--- /dev/null
+++ b/templates-cfg/system/config-management/remote-archive/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-management/remote-archive/node.def b/templates-cfg/system/config-management/remote-archive/node.def
new file mode 100644
index 0000000..073ba7a
--- /dev/null
+++ b/templates-cfg/system/config-management/remote-archive/node.def
@@ -0,0 +1 @@
+help: Remote archival settings \ No newline at end of file