Code for the Infrastructure Via Code Experimental Learning Project at https://www.wildtechgarden.ca/projects/experimental-learning/infrastructure-via-code/
This project is archived and may be out-of-date or contain no longer accurate information
Source code of scripts described in Tokens for OVH v1.
You would obviously need to modify the ovh.conf
in the directory containing the script to contain usable credentials.
Source code of scripts described in First Steps With the OpenStack SDK.
You would obviously need to modify the clouds.yaml
in the directory containing to script to contain correct data for the required parameters.
Also, for X-005 you will need to replace the basic-instance.ini
configuration with details that work for your environment. Finally, you would need to adjust userdata-basic-instance.yaml
with the userdata suitable for your instances (or modify the config to use multiple userdata files, if you could use the same userdata for all).
Source code of scripts described in Completing Bare Bones OpenStack SDK. As usual you would need to update configuration and userdata to suit your environment.
For X-002
you will notice that the config as written will only create one of the three defined instances, and the other two will fail be skipped due to detected errors. This is an intentional quick test of the new code's error handling.
Source code of scripts described in Adding Trivial Templating. There is the usual note about updating configuration to and userdata to suit your environment.
Source code of scripts, configs, and files described in Continuing OpenStack SDK With Templating. There is the usual note about updating configuration to and userdata to suit your environment. For X-002
and beyond, you will also need to update the additional files to suit your situation. (The additional files are applied verbatim, except compressed and encoded).
This is the initial copy from Set-005 of source code, configs, and files described in Completing OpenStackSDK with Templating final script. Since that project has been halted (see that page for the reasons), this has not been taken beyond some minor modifications.
Hopefully you found the referenced website and these files useful.