Permalink
Browse files

bug 463113: ssh batch mode - OPSI packages for ssh config/known hosts…

…. r=nthomas, patch=catlee
  • Loading branch information...
1 parent ba35fc0 commit f11ce72742eea26530d9a9c2fbb287bc1091fbb6 @mozbhearsum mozbhearsum committed Sep 26, 2010
View
2 regenerate-package
@@ -15,7 +15,7 @@ if [ ! -d $dir ]; then
exit 1;
fi
-filename=$(opsi-makeproductfile $dir | egrep '^Package file' | \
+filename=$(opsi-makeproductfile -h $dir | egrep '^Package file' | \
awk '{print $4}' | sed -e s/\'//g)
filename=$(basename $filename)
mv $filename $packagedir/
View
5 ssh-config-staging/CLIENT_DATA/config
@@ -0,0 +1,5 @@
+BatchMode yes
+IdentityFile "/c/Documents and Settings/cltbld/.ssh/id_dsa"
+Host hgpvt.mozilla.org
+IdentityFile "/c/Documents and Settings/cltbld/.ssh/ffxbld_dsa"
+User stage-ffxbld
View
1 ssh-config-staging/CLIENT_DATA/known_hosts
@@ -0,0 +1 @@
+../../ssh-config/CLIENT_DATA/known_hosts
View
1 ssh-config-staging/CLIENT_DATA/ssh-config.ins
@@ -0,0 +1 @@
+../../ssh-config/CLIENT_DATA/ssh-config.ins
View
26 ssh-config-staging/OPSI/control
@@ -0,0 +1,26 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: ssh-config-staging
+; name is a longer, more descript name.
+name: SSH Configuration for staging machines
+description: SSH Configuration for staging machines
+advice:
+; You should put the version number of the application here.
+; If this package isn't for installing an application it doesn't really matter.
+version: 1.0
+priority: 0
+licenseRequired: False
+productClasses:
+; Change this to something more sensible.
+setupScript: ssh-config.ins
+; These are rarely used.
+uninstallScript:
+updateScript:
+alwaysScript:
+onceScript:
View
9 ssh-config-staging/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for template
+# This script executes after unpacking files from that archive and registering the product at the server.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory which contains the installed client data
+#
View
9 ssh-config-staging/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for template
+# This script executes before that package will be unpacked from its archive file.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory where client data will be installed
+#
View
6 ssh-config/CLIENT_DATA/config
@@ -0,0 +1,6 @@
+BatchMode yes
+IdentityFile "/c/Documents and Settings/cltbld/.ssh/id_dsa"
+Host hgpvt.mozilla.org
+IdentityFile "/c/Documents and Settings/cltbld/.ssh/ffxbld_dsa"
+User ffxbld
+
View
11 ssh-config/CLIENT_DATA/known_hosts
@@ -0,0 +1,11 @@
+cvs.mozilla.org,10.2.74.107 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA1MjozwUIC30Mca8x3gcCPKOVtqZzku/qtwHAJVkwmXpXaSGuShhS38VMisOXHwbQrI+vFzV+emqiWb7YBiobAE48HCi4OgO0XdNNeLkGXHuc1g1LkD5wkRzqBEwRUQHcMdbdFi2UWWO514v1whweUi6FCxTyrBCCDVEtronV7bc=
+stage.mozilla.org,10.2.74.116 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA6JfgGmF83VqGJQNJUta7xCP4ZN6z9OITNMfk9E6lYcJmpDWn4JFxQdTj7BwzADwFtYP3jdkZZbYILhZ9OvTKyX1vlmuom9ukKZSdRtv+GwzI1dYNvYca5sC7LWmf/2UiUpwoWC42Ljuwru9mV4xQ2XkiLulDU6TK8wtjTfUp5T0=
+stage-old.mozilla.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA6JfgGmF83VqGJQNJUta7xCP4ZN6z9OITNMfk9E6lYcJmpDWn4JFxQdTj7BwzADwFtYP3jdkZZbYILhZ9OvTKyX1vlmuom9ukKZSdRtv+GwzI1dYNvYca5sC7LWmf/2UiUpwoWC42Ljuwru9mV4xQ2XkiLulDU6TK8wtjTfUp5T0=
+stage-new.mozilla.org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JLaYRbXWRPHfPICTvDHMc=
+hg.mozilla.org,10.2.74.66 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwslcgjfVcGrvJ2UrhChj7QXJRFuOHUt9pMCl1xXnP3ZPiRT7YSIYTNIvuiv3ZtOjIQrtJNEGgpk0qQRsfNxfkYw0EMfmBkOX4VGHjPjaFp7Rh9/SJDKI4jsF+FR2bF7FRHreKxNM7oLYe+MaVFlIP0JLaYRbXWRPHfPICTvDHMc=
+staging-stage.build.mozilla.org,10.2.71.82 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEArnlZFJE7sYdqW40hlTe0UCLZnSOpsFu4m9K8qNHEe8BzlCdzTmCjTt87NNVYafht08VmxYPru/usfp6Vl/Bqefm4/kGOA9gvbI7Poy4eVT8UiM6PO7D+Y/WeFgfE/4XQnBs1Mf56N5TgQg0mgoMoNLMjGF/zzsQ1x/2LShOV26k=
+hgpvt.mozilla.org,63.245.209.141 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwslcgjfVcGrvJ2UrhChj7QXJRFuOHUt9pMCl1xXnP3ZPiRT7YSIYTNIvuiv3ZtOjIQrtJNEGgpk0qQRsfNxfkYw0EMfmBkOX4VGHjPjaFp7Rh9/SJDKI4jsF+FR2bF7FRHreKxNM7oLYe+MaVFlIP0JLaYRbXWRPHfPICTvDHMc=
+build.mozilla.org,10.2.74.128 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAqypyDVhommeNS4BH/iSk+PKGuq0pna39/xzaomq43NMoVhv+k/XNUDuwKZLc9R7mQ91VSeqOkFPziupfDliQRb7pLBMQN3hR412yUlzh7RghySnNZc1OnwYKtJ0I+Ysf4tTtxo1tcUouacnGWHHbCjpVfCgdtJeo3T/KtQjrhMk=
View
14 ssh-config/CLIENT_DATA/ssh-config.ins
@@ -0,0 +1,14 @@
+[Initial]
+Message=SSH Configuration
+StayOnTop=false
+
+[Aktionen]
+DefVar $HOME$
+DefVar $SSH_DIR$
+Set $HOME$ = "C:\\documents and settings\\cltbld"
+Set $SSH_DIR$ = $HOME$ + "\\.ssh"
+DosInAnIcon_copy_files
+
+[DosInAnIcon_copy_files]
+copy /Y %SCRIPTPATH%\config "$SSH_DIR$"
+copy /Y %SCRIPTPATH%\known_hosts "$SSH_DIR$"
View
26 ssh-config/OPSI/control
@@ -0,0 +1,26 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: ssh-config
+; name is a longer, more descript name.
+name: SSH Configuration
+description: SSH Configuration
+advice:
+; You should put the version number of the application here.
+; If this package isn't for installing an application it doesn't really matter.
+version: 1.0
+priority: 0
+licenseRequired: False
+productClasses:
+; Change this to something more sensible.
+setupScript: ssh-config.ins
+; These are rarely used.
+uninstallScript:
+updateScript:
+alwaysScript:
+onceScript:
View
9 ssh-config/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for template
+# This script executes after unpacking files from that archive and registering the product at the server.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory which contains the installed client data
+#
View
9 ssh-config/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for template
+# This script executes before that package will be unpacked from its archive file.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory where client data will be installed
+#

0 comments on commit f11ce72

Please sign in to comment.