Skip to content
Snippets Groups Projects
Commit 6ae9508a authored by Byron Biggs's avatar Byron Biggs
Browse files

Added terraform folder

parent bc3df82b
No related branches found
No related tags found
No related merge requests found
Showing
with 1752 additions and 0 deletions
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/terraform-provider-openstack/openstack" {
version = "1.35.0"
constraints = "~> 1.35.0"
hashes = [
"h1:5GEIQG5o1oZLqnEFYj2U8uukeQ0/Yj5FFl6tkTloF8E=",
"zh:04cf8800c83289a28619ac9925bc03e0ccd624f0ed68284f8bd473cf48f05ef0",
"zh:15fc2e1ea6f87d11e15aad075f3bfb7013eb63f31637f1ee317c94686c9650ec",
"zh:1b6625ce80e6d8f192c984dcf6ba7ab303e4fdab6fa5a0a5651a8a01521aa879",
"zh:4eb60013433f45fa3ef3fca314f68202e40ea3a12b0a5ccf75d8708002bbd8cd",
"zh:505a7b22c813874090ceaee1a3e7f29961d0fe5a854d90f313aec5aa4900f44a",
"zh:7be239b7e5672bd8fc3f3744bfe58dff73f8317ede349228a92dbd92b291a832",
"zh:97b21c64da2700a69b5a3d30e514d76b52fc1089a45a0e02611aadb071b6fcc1",
"zh:b45be0621b08f16236893a5bcc0e7fa1552176b299f6dbafa806f8b0ba5e4096",
"zh:cd3b4387766ab33fbf504b22e73196d5984bc647f5c8ac9483ad604cf5cd2ceb",
"zh:e3b69afe0cab18521ee11e283f783e76c02d248de40f7a25d54576f2b1643003",
"zh:f43d52db66544065040b40db6334a1dfe6c9084d87104af1b1d133f90bbf3a66",
]
}
Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.
Terraform OpenStack Provider
============================
- Website: https://www.terraform.io
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">
Maintainers
-----------
This provider plugin is maintained by:
* Andrei Ozerov ([@ozerovandrei](https://github.com/ozerovandrei))
* Gavin Williams ([@fatmcgav](https://github.com/fatmcgav))
* Joe Topjian ([@jtopjian](https://github.com/jtopjian))
Requirements
------------
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
- [Go](https://golang.org/doc/install) 1.14 (to build the provider plugin)
Building The Provider
---------------------
Clone the repository
```sh
$ git clone git@github.com:terraform-provider-openstack/terraform-provider-openstack.git
```
Enter the provider directory and build the provider
```sh
$ cd terraform-provider-openstack
$ make build
```
Using the provider
----------------------
Please see the documentation at [terraform.io](https://www.terraform.io/docs/providers/openstack/index.html).
Or you can browse the documentation within this repo [here](https://github.com/terraform-provider-openstack/terraform-provider-openstack/tree/master/website/docs).
Developing the Provider
---------------------------
If you wish to work on the provider, you'll first need [Go](https://golang.org) installed on your machine (version 1.14+ is *required*).
To compile the provider, run `make build`. This will build the provider and put the provider binary in the current directory.
```sh
$ make build
```
For further details on how to work on this provider, please see the [Testing and Development](https://www.terraform.io/docs/providers/openstack/index.html#testing-and-development) documentation.
Releasing the Provider
----------------------
This repository contains a GitHub Action configured to automatically build and
publish assets for release when a tag is pushed that matches the pattern `v*`
(ie. `v0.1.0`).
A [Gorelaser](https://goreleaser.com/) configuration is provided that produce
build artifacts matching the [layout required](https://www.terraform.io/docs/registry/providers/publishing.html#manually-preparing-a-release)
to publish the provider in the Terraform Registry.
Releases will as drafts. Once marked as published on the GitHub Releases page,
they will become available via the Terraform Registry.
Thank You
---------
We'd like to extend special thanks and appreciation to the following:
### OpenLab
<a href="http://openlabtesting.org/"><img src="assets/openlab.png" width="600px"></a>
OpenLab is providing a full CI environment to test each PR and merge for a variety of OpenStack releases.
### VEXXHOST
<a href="https://vexxhost.com/"><img src="assets/vexxhost.png" width="600px"></a>
VEXXHOST is providing their services to assist with the development and testing of this provider.
#!/usr/bin/env bash
# To use an OpenStack cloud you need to authenticate against the Identity
# service named keystone, which returns a **Token** and **Service Catalog**.
# The catalog contains the endpoints for all services the user/tenant has
# access to - such as Compute, Image Service, Identity, Object Storage, Block
# Storage, and Networking (code-named nova, glance, keystone, swift,
# cinder, and neutron).
#
# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other
# OpenStack API is version 3. For example, your cloud provider may implement
# Image API v1.1, Block Storage API v2, and Compute API v2.0. OS_AUTH_URL is
# only for the Identity API served through keystone.
export OS_AUTH_URL=https://cscloud.cf.ac.uk:5000
# With the addition of Keystone we have standardized on the term **project**
# as the entity that owns the resources.
export OS_PROJECT_ID=867c901ce629405d94c28d23a9c86989
export OS_PROJECT_NAME="c21087458"
export OS_USER_DOMAIN_NAME="cardiff.ac.uk"
if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi
export OS_PROJECT_DOMAIN_ID="3693afdd0603423a9e8984fd32df7a0c"
if [ -z "$OS_PROJECT_DOMAIN_ID" ]; then unset OS_PROJECT_DOMAIN_ID; fi
# unset v2.0 items in case set
unset OS_TENANT_ID
unset OS_TENANT_NAME
# In addition to the owning entity (tenant), OpenStack stores the entity
# performing the action as the **user**.
export OS_USERNAME="c21087458"
# With Keystone you pass the keystone password.
echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
# If your configuration has multiple regions, we set that information here.
# OS_REGION_NAME is optional and only valid in certain environments.
export OS_REGION_NAME="RegionOne"
# Don't leave a blank variable, unset it if it was empty
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
\ No newline at end of file
terraform {
required_version = ">= 0.14.0"
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.35.0"
}
}
}
resource "openstack_networking_floatingip_v2" "floating_ip_1" {
pool = var.pool
}
resource "openstack_compute_secgroup_v2" "security_group" {
name = var.security_name
description = var.security_description
rule {
from_port = 22
to_port = 22
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}
rule {
from_port = 8080
to_port = 8080
ip_protocol = "tcp"
cidr = "0.0.0.0/0"
}
}
resource "openstack_compute_instance_v2" "instance_1" {
name = var.name1
image_name = var.image
flavor_name = var.flavor
security_groups = [openstack_compute_secgroup_v2.security_group.name]
key_pair = var.keypair
user_data = file(var.server1_script)
network {
name = var.network
}
}
resource "openstack_compute_floatingip_associate_v2" "floating_ip_1" {
floating_ip = openstack_networking_floatingip_v2.floating_ip_1.address
instance_id = openstack_compute_instance_v2.instance_1.id
}
#!/usr/bin/bash
echo "update logging configuration..."
sudo sh -c "echo '*.info;mail.none;authpriv.none;cron.none /dev/ttyS0' >> /etc/rsyslog.conf"
sudo systemctl restart rsyslog
echo "update logging configuration..."
echo "cd to root directory..."
cd root
echo "whoami..."
whoami
echo "pwd..."
pwd
# commented out to speed things up, do not do this in production
# echo "upgrading..."
# sudo yum upgrade -y
echo "installing gfortran..."
sudo yum install gcc-gfortran -y
echo "installing git..."
sudo yum install git -y
echo "installing gitlab server key..."
touch .ssh/known_hosts
ssh-keyscan git.cardiff.ac.uk >> .ssh/known_hosts
chmod 644 .ssh/known_hosts
echo "installing gitlab deployment key..."
touch matrix_keypair.key
cat << `EOF` >> matrix_keypair.key
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAQEAy5v5OYLxRCKM05zZJlw4NLuO5d/Of8oMyZ+KeaSGKjTLV+4hg0y/
qMbuYcTCxTYNFmJ5xk9BnG2I9jffnMovm0ZBnCMZkbtl6J3V+vbYnoAQuGPJWtpOk0Z7OK
gSokJp8nIKtrhXvPTNpB+MG4xHheord2O6brw1yiAP2WQ2OqNE1Yw+fMzxMZQ3v4MjG5TL
0qBdIxb1tQLgrnAlyB43w6u2q4eIk+s3rxIpnGnl+Nifq9Sd7MrW8gZtpdwOFNWtP+9fMj
6wa+HXLsPsBQ+zM9JNCorzuVrLJgQM7+EqgpnhrA9ZNkTrvTV0sKqvCnLoIWdWfon/sZ33
J+LrLqaz1QAAA9BK1huFStYbhQAAAAdzc2gtcnNhAAABAQDLm/k5gvFEIozTnNkmXDg0u4
7l385/ygzJn4p5pIYqNMtX7iGDTL+oxu5hxMLFNg0WYnnGT0GcbYj2N9+cyi+bRkGcIxmR
u2XondX69tiegBC4Y8la2k6TRns4qBKiQmnycgq2uFe89M2kH4wbjEeF6it3Y7puvDXKIA
/ZZDY6o0TVjD58zPExlDe/gyMblMvSoF0jFvW1AuCucCXIHjfDq7arh4iT6zevEimcaeX4
2J+r1J3sytbyBm2l3A4U1a0/718yPrBr4dcuw+wFD7Mz0k0KivO5WssmBAzv4SqCmeGsD1
k2ROu9NXSwqq8KcughZ1Z+if+xnfcn4usuprPVAAAAAwEAAQAAAQEAmJIvJhZl3i2Zo3R0
D9eo0nL9OGoF3iI0hN1FMbPESVo4SZKKkE3xjHJM7Pw5CvhexDhUkfKP8rztlbr2mBG1rL
/vqCVxIo/vZGjpkF5qohLK9LDpkGfn21pEOYdQN0BXDbLBLnxiWpiChAqTvYzXh5Sar6MO
b64fDHAMEFWUgUjCDeGgpFJu1ZSvtJjfZrzz3rJOrwP/lru8tGRw+xnSWMcvZ1Gf5WXEKv
WNyxOk8zx15Ez9Lh+cOo7PuCfskDbeLUdqP7K2yGW6GwKUfPJ3hDlHk8fA87gJGChX116T
pmVqVHyc0IRE/Pzw4A3XYujg2PmtddESI3v08QAguToFPQAAAIEAhBXHKo9Wilp3L6vAK3
1mQpBRPLV/iXoKEAm7q+8uJ5NbN5m+i8gdBp+LUJKpQlW1zj2IpRgHH/Kb8NoNOgA8o9WV
wOcJ4ZKPkpRo45R/BdhpYa5gIzLNTOVkT2wHmYJX3RtU28Kih9ufwmA1VA5PJ9kJBP6b1Z
uJq3cigiO20jcAAACBAPNp9v7ao0wTXPse/m54yqbps/IIcLs0vnMSbK2EAmj+tYra0D9+
qMr5m09ckVbQL+0Oy9JzjLAtpDqoTkUWxdY0AXH8beEoLrINvlcz980ph22m/9uqsJ4YiW
bs6pt27dbY8go5dWhB+jGCnOoLV+iHlCd+1oCYmItAOOZujpF3AAAAgQDWIx7HEeU8QWEV
nhINoJKCTk7jUSQwkma4tKjLdgSU+I0EBcx4NR4Cd16mfhSUkLId4rXkQ/qAeusGmP0SSk
sBG9IHl5LAuaDgXfj7/3+vVR6Ru2ep0ALT0pI0n0kC0aL1J7mq7+XXzxt5k5ONCZJSpfPd
vNfQn99+1/Zo5LdYEwAAABhJRCtzY21pbWNAV1JBODdFRUFCM0E0NkIB
-----END OPENSSH PRIVATE KEY-----
`EOF`
chmod 400 matrix_keypair.key
echo "cloning repository..."
echo $PWD
ssh-agent bash -c 'ssh-add matrix_keypair.key; git clone git@git.cardiff.ac.uk:scmimc/matrix.git'
echo "changing to repository directory..."
cd matrix
echo "enabling execution..."
chmod a+x *.sh
echo "compiling matrix..."
./make.sh
echo "running matrix..."
nohup ./run.sh &
{
"version": 4,
"terraform_version": "1.8.2",
"serial": 54,
"lineage": "b2644994-a179-35ca-9607-d6c371ea4546",
"outputs": {},
"resources": [],
"check_results": null
}
{
"version": 4,
"terraform_version": "1.8.2",
"serial": 49,
"lineage": "b2644994-a179-35ca-9607-d6c371ea4546",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "openstack_compute_floatingip_associate_v2",
"name": "floating_ip_1",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"fixed_ip": "",
"floating_ip": "10.72.98.82",
"id": "10.72.98.82/b8c6f3ab-6d8e-4099-ba7c-6e3290147d63/",
"instance_id": "b8c6f3ab-6d8e-4099-ba7c-6e3290147d63",
"region": "RegionOne",
"timeouts": null,
"wait_until_associated": null
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9fQ==",
"dependencies": [
"openstack_compute_instance_v2.instance_1",
"openstack_compute_secgroup_v2.security_group",
"openstack_networking_floatingip_v2.floating_ip_1"
]
}
]
},
{
"mode": "managed",
"type": "openstack_compute_instance_v2",
"name": "instance_1",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"access_ip_v4": "192.168.0.57",
"access_ip_v6": "",
"admin_pass": null,
"all_metadata": {},
"all_tags": [],
"availability_zone": "nova",
"availability_zone_hints": null,
"block_device": [],
"config_drive": null,
"flavor_id": "3522106a-582a-43fe-b688-7dbdca91c6d9",
"flavor_name": "m1.large",
"floating_ip": null,
"force_delete": false,
"id": "b8c6f3ab-6d8e-4099-ba7c-6e3290147d63",
"image_id": "043bb163-acb3-4a4c-a524-80c6c756c489",
"image_name": "Rocky 9.3",
"key_pair": "bigzy_keypair",
"metadata": null,
"name": "RockyMatrix",
"network": [
{
"access_network": false,
"fixed_ip_v4": "192.168.0.57",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:4a:d3:8c",
"name": "byronsNetwork",
"port": "",
"uuid": "e7565bb5-0b51-43b9-bb7b-611f966413e1"
}
],
"network_mode": null,
"personality": [],
"power_state": "active",
"region": "RegionOne",
"scheduler_hints": [],
"security_groups": [
"tf_securityMat"
],
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"user_data": "c22fc5cbed024b60b7847c4e334c56b89cd89a57",
"vendor_options": [],
"volume": []
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "admin_pass"
}
]
],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"openstack_compute_secgroup_v2.security_group"
]
}
]
},
{
"mode": "managed",
"type": "openstack_compute_secgroup_v2",
"name": "security_group",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"description": "Terraform security group",
"id": "d79c1cbe-324b-4b1b-aa62-f44066e08a12",
"name": "tf_securityMat",
"region": "RegionOne",
"rule": [
{
"cidr": "0.0.0.0/0",
"from_group_id": "",
"from_port": 22,
"id": "9d32bb74-1cfd-4f5e-98d6-f918e2d0c5f4",
"ip_protocol": "tcp",
"self": false,
"to_port": 22
},
{
"cidr": "0.0.0.0/0",
"from_group_id": "",
"from_port": 8080,
"id": "354eb9b9-7757-4562-b6a4-84a93cf6d960",
"ip_protocol": "tcp",
"self": false,
"to_port": 8080
}
],
"timeouts": null
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ=="
}
]
},
{
"mode": "managed",
"type": "openstack_networking_floatingip_v2",
"name": "floating_ip_1",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"address": "10.72.98.82",
"all_tags": [],
"description": "",
"dns_domain": "",
"dns_name": "",
"fixed_ip": "",
"id": "6d1c11e4-a7f5-4ba3-bcce-0a5c46c969a2",
"pool": "cscloud_private_floating",
"port_id": "",
"region": "RegionOne",
"subnet_id": null,
"tags": [],
"tenant_id": "867c901ce629405d94c28d23a9c86989",
"timeouts": null,
"value_specs": null
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0="
}
]
}
],
"check_results": null
}
variable "flavor" { default = "m1.large" }
variable "image" { default = "Rocky 9.3" }
variable "name1" { default = "RockyMatrix" }
variable "keypair" { default = "bigzy_keypair" } # you may need to change this
variable "network" { default = "byronsNetwork" } # you need to change this
variable "pool" { default = "cscloud_private_floating" }
variable "server1_script" { default = "./server1.sh" }
variable "security_description" { default = "Terraform security group" }
variable "security_name" { default = "tf_securityMat" }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment