Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update make_headnode_provisionable

  • Loading branch information...
commit 37c4ed277f530e6953ca7c39ff21d4af74b5484c 1 parent 9d846e9
@ryancnelson authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 make_headnode_provisionable
View
4 make_headnode_provisionable
@@ -1,3 +1,4 @@
+#!/usr/bin/bash -ax
function hack_dapi_for_headnode_provisioning {
@@ -6,6 +7,7 @@ function hack_dapi_for_headnode_provisioning {
# TODO: don't change if already done
echo "# Hack DAPI to allow headnode provisioning"
local config_path=/zones/$cnapi_zone/root/opt/smartdc/cnapi/sapi_manifests/cnapi/template
+grep hard-filter-headnode $config_path || exit
sed -e "
s:hard-filter-headnode:identity:g;
@@ -16,3 +18,5 @@ function hack_dapi_for_headnode_provisioning {
mv $config_path.new $config_path
svcadm -z $cnapi_zone restart config-agent
}
+
+hack_dapi_for_headnode_provisioning
Please sign in to comment.
Something went wrong with that request. Please try again.