diff --git a/nodepool/elements/nodepool-base/install.d/50-disable-metadata-cloudinit b/nodepool/elements/nodepool-base/install.d/50-disable-metadata-cloudinit new file mode 100755 index 0000000000..c2cb57c9f2 --- /dev/null +++ b/nodepool/elements/nodepool-base/install.d/50-disable-metadata-cloudinit @@ -0,0 +1,19 @@ +#!/bin/bash -xe +# Copyright (C) 2015 Hewlett-Packard Development Company, L.P. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. + +# Make all cloud-init data sources match rackspace- only attempt to look +# at ConfigDrive, not at metadata service +dd of=/etc/cloud/cloud.cfg.d/95_real_datasources.cfg < /etc/resolv.conf exit 0 EOF +# Make all cloud-init data sources match rackspace- only attempt to look +# at ConfigDrive, not at metadata service +sudo dd of=/etc/cloud/cloud.cfg.d/95_real_datasources.cfg <> /etc/unbound/unbound.conf" if [ -e /etc/init.d/unbound ] ; then sudo /etc/init.d/unbound restart