feat: Initial code
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
0e18170cdf
commit
fc59b4f9a5
18 changed files with 478 additions and 1 deletions
73
README.md
73
README.md
|
@ -1,3 +1,74 @@
|
|||
# galene-cloud
|
||||
|
||||
Run galene in the cloud using OpenTofu and Ansible
|
||||
Run galene in the cloud using OpenTofu and Ansible.
|
||||
|
||||
# Requirements
|
||||
|
||||
* Ansible (`ansible`)
|
||||
* OpenTofu (`tofu`)
|
||||
* Public Cloud project on [OVHcloud](https://www.ovhcloud.com)
|
||||
* Domain zone on [OVHcloud](https://www.ovhcloud.com)
|
||||
|
||||
# OpenTofu
|
||||
|
||||
## Configuration
|
||||
|
||||
### OpenStack provider
|
||||
|
||||
> tofu/clouds.yaml
|
||||
|
||||
The `clouds.yaml` file will automatically configure the openstack provider to
|
||||
use your Public Cloud project.
|
||||
|
||||
Go to the [OVHcloud Manager](https://www.ovh.com/manager/), then "Public Cloud"
|
||||
section, then "Horizon", then "API access". In the drop down on the right,
|
||||
select "OpenStack clouds.yaml File".
|
||||
|
||||
### OVH provider
|
||||
|
||||
> tofu/ovh.conf
|
||||
|
||||
Follow the [First Steps with the OVHcloud
|
||||
APIs](https://help.ovhcloud.com/csm/en-gb-api-getting-started-ovhcloud-api?id=kb_article_view&sysparm_article=KB0042784)
|
||||
guide, section "Advanced usage: pair OVHcloud APIs with an application", to
|
||||
generate the `ovh.conf` file.
|
||||
|
||||
### Variables
|
||||
|
||||
* **domain**: Name of the domain zone
|
||||
* **hostname**: Name of the server (default: "galene")
|
||||
* **openstack_image**: Name of the OpenStack image (default: "Debian 12")
|
||||
* **openstack_flavor**: Name of the OpenStack flavor (default: "d2-2")
|
||||
|
||||
Variables can be provided using files ending with `.tfvars` extension. See [the
|
||||
documentation](https://opentofu.org/docs/language/values/variables/#variable-definitions-tfvars-files)
|
||||
for more information.
|
||||
|
||||
## Usage
|
||||
|
||||
Change directory to "tofu":
|
||||
|
||||
```
|
||||
cd tofu
|
||||
```
|
||||
|
||||
### Start
|
||||
|
||||
```
|
||||
tofu plan
|
||||
tofu apply
|
||||
```
|
||||
|
||||
Then follow the instructions for Ansible.
|
||||
|
||||
### Stop
|
||||
|
||||
```
|
||||
tofu destroy
|
||||
```
|
||||
|
||||
# Ansible
|
||||
|
||||
## Configuration
|
||||
|
||||
## Usage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue