how to deploy this cookbook
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 30 Apr 2009 22:16:09 +0000 (22:16 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 30 Apr 2009 22:16:09 +0000 (22:16 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@5 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/deploy-cookbook/0.install-subversion [new file with mode: 0644]
recepies/deploy-cookbook/1.generate-root-ssh-key [new file with mode: 0644]
recepies/deploy-cookbook/2 [new symlink]
recepies/deploy-cookbook/2.append [new file with mode: 0644]
recepies/deploy-cookbook/3.copy-root-identity [new file with mode: 0644]
recepies/deploy-cookbook/4.checkout [new file with mode: 0644]

diff --git a/recepies/deploy-cookbook/0.install-subversion b/recepies/deploy-cookbook/0.install-subversion
new file mode 100644 (file)
index 0000000..0f55991
--- /dev/null
@@ -0,0 +1 @@
+root@opl:~# apt-get install -y subversion
diff --git a/recepies/deploy-cookbook/1.generate-root-ssh-key b/recepies/deploy-cookbook/1.generate-root-ssh-key
new file mode 100644 (file)
index 0000000..8e9ed45
--- /dev/null
@@ -0,0 +1,3 @@
+
+root@opl:~# test -f /root/.ssh/id_rsa || ssh-keygen -N ''
+
diff --git a/recepies/deploy-cookbook/2 b/recepies/deploy-cookbook/2
new file mode 120000 (symlink)
index 0000000..d1cfdbb
--- /dev/null
@@ -0,0 +1 @@
+/root/.ssh/config
\ No newline at end of file
diff --git a/recepies/deploy-cookbook/2.append b/recepies/deploy-cookbook/2.append
new file mode 100644 (file)
index 0000000..b9ee3a2
--- /dev/null
@@ -0,0 +1,4 @@
+Host llin
+       Hostname 10.60.0.81
+       User dpavlin
+       Port 22013
diff --git a/recepies/deploy-cookbook/3.copy-root-identity b/recepies/deploy-cookbook/3.copy-root-identity
new file mode 100644 (file)
index 0000000..760c1d2
--- /dev/null
@@ -0,0 +1 @@
+root@opl:~# ssh-copy-id -i /root/.ssh/id_rsa llin
diff --git a/recepies/deploy-cookbook/4.checkout b/recepies/deploy-cookbook/4.checkout
new file mode 100644 (file)
index 0000000..72231a7
--- /dev/null
@@ -0,0 +1,4 @@
+root@opl:~# cd /srv/
+
+root@opl:/srv# svn co svn+ssh://llin/home/dpavlin/private/svn/sysadmin-cookbook/
+