Skip to content
Browse files

refactored the directory structure. Updated README.

  • Loading branch information...
1 parent 4cd0e83 commit 0399ec866355b8e50e82394784cc445cf88e9084 @ryancnelson committed Jul 19, 2014
View
18 README.md
@@ -1,4 +1,20 @@
sdc-postsetup
=============
-sdc-postsetup
+check this out from git, then extract/rsync the directory tree to
+(aka, to /mnt/usbkey/scripts/... )
+... WITH THE USB-KEY mounted.
+
+Note that /mnt/usbkey/scripts/post-install.sh gets executed at the end of
+the headnode setup process. Make sure you set your path, or use explicit
+pathnames for things you'd like to setup.
+
+Files included here:
+/mnt/usbkey/scripts/post-install.sh
+/mnt/usbkey/scripts/post-setup-chores/
+/mnt/usbkey/scripts/post-setup-chores/add_external_nic
+/mnt/usbkey/scripts/post-setup-chores/create_cloudapi
+/mnt/usbkey/scripts/post-setup-chores/make_headnode_provisionable
+/mnt/usbkey/scripts/post-setup-chores/sdc-create-instance
+
+
View
27 mnt/usbkey/scripts/post-install.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -x
+export PATH=$PATH:/opt/smartdc/bin
+# Copyright 2011 Joyent, Inc. All rights reserved.
+
+# This is an example post-install script.
+# Post-install scripts are not formally suported features
+# and are not intended to be used for anything other than
+# test purposes.
+
+
+set -o errexit
+set -o pipefail
+
+
+/mnt/usbkey/scripts/post-setup-chores/create_cloudapi
+
+/mnt/usbkey/scripts/post-setup-chores/add_external_nic $(vmadm lookup alias=adminui0)
+
+### /mnt/usbkey/scripts/post-setup-chores/add_external_nic $(vmadm lookup alias=cloudapi0)
+
+/mnt/usbkey/scripts/post-setup-chores/add_external_nic $(vmadm lookup alias=imgapi0)
+
+/mnt/usbkey/scripts/post-setup-chores/make_headnode_provisionable
+
+curl -si http://ryan.net/coal_ping?coal_setup_complete > /dev/null
+
+exit 0;
View
0 add_external_nic → ...cripts/post-setup-chores/add_external_nic
File renamed without changes.
View
0 create_cloudapi → ...scripts/post-setup-chores/create_cloudapi
File renamed without changes.
View
2 make_headnode_provisionable → ...-setup-chores/make_headnode_provisionable 100644 → 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/bash -x
+#!/usr/bin/bash -ax
function hack_dapi_for_headnode_provisioning {
View
0 sdc-create-instance → ...pts/post-setup-chores/sdc-create-instance 100644 → 100755
File renamed without changes.

0 comments on commit 0399ec8

Please sign in to comment.
Something went wrong with that request. Please try again.