BIG-IP Virtual Edition and Cloud-Init Version 13.0
Table of Contents Table of Contents About Cloud-Init and BIG-IP VE...5 About Cloud-Init and BIG-IP VE...5 Hypervisors with Cloud-Init support in BIG-IP VE...5 Cloud-Init data sources supported in BIG-IP VE...5 Cloud-Init modules supported in BIG-IP VE...6 Determine if Cloud-Init was installed on BIG-IP VE... 6 Disable Cloud-Init on BIG-IP VE... 6 Legal Notices... 9 Legal notices...9 3
Table of Contents 4
About Cloud-Init and BIG-IP VE About Cloud-Init and BIG-IP VE Cloud-Init is automatically installed when you deploy BIG-IP VE. You can use Cloud-Init to initiate bash scripts (including tmsh commands) to perform tasks, like creating a virtual server or pool. In your scripts, you can also call a cloud provider's metadata service to get attributes you might need when running commands. For example, you can query the service to return the hostname, which you can then use to populate values in BIG-IP VE. Here is sample bash script for calling the AWS EC2 metadata service to return the hostname:!/bin/bash hostname=$(curl http://169.254.169.254/latest/meta-data/hostname) echo $hostname Important: If you expect your Cloud-Init script to take a long time to execute (10 seconds or more), you should fork to a new process, so that BIG-IP VE can finish deploying and SSH can be available. F5 provides AWS Cloud Formation Templates (CFTs), which include scripts that are run by Cloud-Init. These scripts query the metadata service to populate specific values in the CFT. For more information about CFTs provided by F5, go to https://github.com/f5networks. Hypervisors with Cloud-Init support in BIG-IP VE Cloud-Init version 0.7.2 is automatically installed when you use BIG-IP VE on the following hypervisors. Amazon Web Services EC2 VMware ESXi Microsoft Hyper-V Citrix XenServer Linux KVM Linux Xen Project Note: This version of BIG-IP VE does not support Cloud-Init in Microsoft Azure. Cloud-Init data sources supported in BIG-IP VE The following data sources are supported in this version of BIG-IP VE. The EC2 data source is supported in AWS and OpenStack. Config Drive V2 is supported in OpenStack and all non-cloud hypervisors.
About Cloud-Init and BIG-IP VE Cloud-Init modules supported in BIG-IP VE The following Cloud-Init modules are supported on all hypervisors and clouds in this version of BIG-IP VE. Final Message Scripts Per Boot Runcmd Scripts Per Instance Scripts Per Once Scripts User Write Files Determine if Cloud-Init was installed on BIG-IP VE Cloud-Init is installed on BIG-IP VE by scripts that run at boot time. If you are having trouble with Cloud-Init, you might want to confirm that it was properly installed. 1. Use SSH to connect to your BIG-IP VE instance. 2. At the bash prompt, change the directory. cd /var/log 3. Determine the name of the latest boot log file by showing the contents of the directory. dir 4. Use vi to open the latest boot log file, which might be named something like boot.log, boot.log. 1, or boot.log.2. vi boot.log 5. When the file opens, search for the word cloud. /cloud 6. Go to the next instance of cloud until you find cloud-init. /n 7. There should be four entries in the log. Find the most recent entries that contain cloud-init. localhost notice 10virtual-platform.sysinit: Enabled service cloud-init-local localhost notice 10virtual-platform.sysinit: Enabled service cloud-init localhost notice 10virtual-platform.sysinit: Enabled service cloud-config localhost notice 10virtual-platform.sysinit: Enabled service cloud-final These entries indicate that Cloud-Init was installed when BIG-IP VE booted. Disable Cloud-Init on BIG-IP VE Cloud-Init is installed on BIG-IP VE by scripts that run at boot time. To speed boot time, you may want to stop Cloud-Init from automatically installing. 1. Use SSH to connect to your BIG-IP VE instance. 2. Ensure you are at the tmshprompt. 3. Run this command to disable the Cloud-Init database setting. modify sys db service.cloudinit value disable 6
BIG-IP Virtual Edition and Cloud-Init 4. Run this command to reboot BIG-IP VE immediately. reboot When BIG-IP VE restarts, Cloud-Init is no longer running. If you decide to re-enable Cloud-Init later, run this command and reboot: modify sys db service.cloudinit value enable. 7
About Cloud-Init and BIG-IP VE 8
Legal Notices Legal notices Publication Date This document was published on September 29, 2017. Publication Number MAN-0646-00 Copyright Copyright 2017, F5 Networks, Inc. All rights reserved. F5 Networks, Inc. (F5) believes the information it furnishes to be accurate and reliable. However, F5 assumes no responsibility for the use of this information, nor any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent, copyright, or other intellectual property right of F5 except as specifically described by applicable user licenses. F5 reserves the right to change specifications at any time without notice. Trademarks For a current list of F5 trademarks and service marks, see http://www.f5.com/about/guidelines-policies/ trademarks. All other product and company names herein may be trademarks of their respective owners. Patents This product may be protected by one or more patents indicated at: https://f5.com/about-us/policies/ patents. Export Regulation Notice This product may include cryptographic software. Under the Export Administration Act, the United States government may consider it a criminal offense to export this product from the United States.
Legal Notices 10
Index Index C Cloud-Init disabling 6 Cloud-Init data sources 5 Cloud-Init in BIG-IP VE 5 Cloud-Init status checking for installation 6 determining 6 Cloud-Init supported hypervisors 5 Cloud-Init supported modules 6 11
Index 12