miroir de
https://github.com/PAPAMICA/Wiki-Tech.io.git
synchronisé 2024-12-29 02:50:22 +01:00
docs: update Cloud/IPC/Wordpress-HA
Cette révision appartient à :
Parent
b54ee5ed7d
révision
bfb43e6e5b
1 fichiers modifiés avec 44 ajouts et 32 suppressions
|
@ -2,7 +2,7 @@
|
||||||
title: Infomaniak Public Cloud - Mise en situation : VDI Ubuntu
|
title: Infomaniak Public Cloud - Mise en situation : VDI Ubuntu
|
||||||
description: Mettre en place un bureau virtuel avec Ubuntu*
|
description: Mettre en place un bureau virtuel avec Ubuntu*
|
||||||
published: true
|
published: true
|
||||||
date: 2021-11-09T07:49:29.570Z
|
date: 2021-11-09T08:17:28.239Z
|
||||||
tags: openstack, infomaniak, public-cloud, cloud, ipc, vdi, ubuntu
|
tags: openstack, infomaniak, public-cloud, cloud, ipc, vdi, ubuntu
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-11-08T16:33:28.599Z
|
dateCreated: 2021-11-08T16:33:28.599Z
|
||||||
|
@ -12,31 +12,32 @@ dateCreated: 2021-11-08T16:33:28.599Z
|
||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
|
|
||||||
# Template Heat
|
# Template Heat
|
||||||
### Créez le fichier `vdi.yml`:
|
### Créez le fichier `desktop.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
heat_template_version: rocky
|
heat_template_version: rocky
|
||||||
description: VDI Ubuntu
|
description: Desktop Ubuntu
|
||||||
parameters:
|
parameters:
|
||||||
image:
|
image:
|
||||||
type: string
|
type: string
|
||||||
description: image use for vdi
|
description: image use for desktop
|
||||||
default: Ubuntu 20.04 LTS Focal Fossa
|
default: Ubuntu 20.04 LTS Focal Fossa
|
||||||
key:
|
key:
|
||||||
type: string
|
type: string
|
||||||
description: SSH key to connect to the servers
|
description: SSH key to connect to the servers
|
||||||
flavor:
|
flavor:
|
||||||
type: string
|
type: string
|
||||||
description: flavor used by vdi
|
description: flavor used by desktop
|
||||||
default: a4-ram8-disk50-perf1
|
default: a4-ram8-disk50-perf1
|
||||||
network:
|
network:
|
||||||
type: string
|
type: string
|
||||||
description: network used by vdi
|
description: network used by desktop
|
||||||
default: vdi-network
|
default: desktop-network
|
||||||
subnet_id:
|
subnet_id:
|
||||||
type: string
|
type: string
|
||||||
description: dedicated subnet for vdi
|
description: dedicated subnet for desktop
|
||||||
default: vdi-subnet
|
default: desktop-subnet
|
||||||
floating_network_id:
|
floating_network_id:
|
||||||
type: string
|
type: string
|
||||||
description: UUID of a Neutron external network
|
description: UUID of a Neutron external network
|
||||||
|
@ -66,10 +67,10 @@ resources:
|
||||||
|
|
||||||
|
|
||||||
# security group
|
# security group
|
||||||
vdi_security_group:
|
desktop_security_group:
|
||||||
type: OS::Neutron::SecurityGroup
|
type: OS::Neutron::SecurityGroup
|
||||||
properties:
|
properties:
|
||||||
name: "vdi_security_group"
|
name: "desktop_security_group"
|
||||||
description: >
|
description: >
|
||||||
Allows ICMP, SSH & RDP default port
|
Allows ICMP, SSH & RDP default port
|
||||||
rules:
|
rules:
|
||||||
|
@ -78,60 +79,60 @@ resources:
|
||||||
- { direction: ingress, protocol: tcp, port_range_min: 3389, port_range_max: 3389 }
|
- { direction: ingress, protocol: tcp, port_range_min: 3389, port_range_max: 3389 }
|
||||||
|
|
||||||
# network resources
|
# network resources
|
||||||
vdi_network:
|
desktop_network:
|
||||||
type: OS::Neutron::Net
|
type: OS::Neutron::Net
|
||||||
properties:
|
properties:
|
||||||
name: { get_param: network }
|
name: { get_param: network }
|
||||||
value_specs:
|
value_specs:
|
||||||
mtu: 1500
|
mtu: 1500
|
||||||
|
|
||||||
vdi_subnet:
|
desktop_subnet:
|
||||||
type: OS::Neutron::Subnet
|
type: OS::Neutron::Subnet
|
||||||
properties:
|
properties:
|
||||||
name: 'vdi-subnet'
|
name: 'desktop-subnet'
|
||||||
network_id: { get_resource: vdi_network }
|
network_id: { get_resource: desktop_network }
|
||||||
cidr: "10.11.3.0/24"
|
cidr: "10.11.3.0/24"
|
||||||
dns_nameservers:
|
dns_nameservers:
|
||||||
- "84.16.67.69"
|
- "84.16.67.69"
|
||||||
- "84.16.67.70"
|
- "84.16.67.70"
|
||||||
ip_version: 4
|
ip_version: 4
|
||||||
|
|
||||||
vdi_router:
|
desktop_router:
|
||||||
type: OS::Neutron::Router
|
type: OS::Neutron::Router
|
||||||
properties:
|
properties:
|
||||||
name: 'vdi-router'
|
name: 'desktop-router'
|
||||||
external_gateway_info: { network: ext-floating1 }
|
external_gateway_info: { network: ext-floating1 }
|
||||||
|
|
||||||
vdi_router_subnet_interface:
|
desktop_router_subnet_interface:
|
||||||
type: OS::Neutron::RouterInterface
|
type: OS::Neutron::RouterInterface
|
||||||
properties:
|
properties:
|
||||||
router_id: { get_resource: vdi_router }
|
router_id: { get_resource: desktop_router }
|
||||||
subnet: { get_resource: vdi_subnet }
|
subnet: { get_resource: desktop_subnet }
|
||||||
|
|
||||||
vdi_port:
|
desktop_port:
|
||||||
type: OS::Neutron::Port
|
type: OS::Neutron::Port
|
||||||
properties:
|
properties:
|
||||||
network: { get_resource: vdi_network }
|
network: { get_resource: desktop_network }
|
||||||
security_groups: [ { get_resource: vdi_security_group } ]
|
security_groups: [ { get_resource: desktop_security_group } ]
|
||||||
fixed_ips:
|
fixed_ips:
|
||||||
- subnet_id: { get_resource: vdi_subnet }
|
- subnet_id: { get_resource: desktop_subnet }
|
||||||
|
|
||||||
vdi_floating:
|
desktop_floating:
|
||||||
type: OS::Neutron::FloatingIP
|
type: OS::Neutron::FloatingIP
|
||||||
properties:
|
properties:
|
||||||
floating_network_id: { get_param: floating_network_id }
|
floating_network_id: { get_param: floating_network_id }
|
||||||
port_id: { get_resource: vdi_port }
|
port_id: { get_resource: desktop_port }
|
||||||
|
|
||||||
# instance
|
# instance
|
||||||
server:
|
server:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
depends_on: [ vdi_router]
|
depends_on: [ desktop_router]
|
||||||
properties:
|
properties:
|
||||||
flavor: { get_param: flavor }
|
flavor: { get_param: flavor }
|
||||||
image: { get_param: image }
|
image: { get_param: image }
|
||||||
key_name: {get_param: key}
|
key_name: {get_param: key}
|
||||||
networks:
|
networks:
|
||||||
- port: { get_resource: vdi_port }
|
- port: { get_resource: desktop_port }
|
||||||
user_data:
|
user_data:
|
||||||
str_replace:
|
str_replace:
|
||||||
template: |
|
template: |
|
||||||
|
@ -175,19 +176,19 @@ resources:
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
vdi_url:
|
desktop_url:
|
||||||
value:
|
value:
|
||||||
str_replace:
|
str_replace:
|
||||||
template: host:3389
|
template: host:3389
|
||||||
params:
|
params:
|
||||||
host: { get_attr: [vdi_floating, floating_ip_address] }
|
host: { get_attr: [desktop_floating, floating_ip_address] }
|
||||||
description: "RDP IP"
|
description: "RDP IP"
|
||||||
|
|
||||||
vdi_password:
|
desktop_password:
|
||||||
value: { get_param: USER_PASSWORD }
|
value: { get_param: USER_PASSWORD }
|
||||||
description: "User password"
|
description: "User password"
|
||||||
|
|
||||||
vdi_login:
|
desktop_login:
|
||||||
value: { get_param: USER_NAME }
|
value: { get_param: USER_NAME }
|
||||||
description: "User"
|
description: "User"
|
||||||
```
|
```
|
||||||
|
@ -220,7 +221,18 @@ Pour la gestion de la stack, voir ce tutoriel :
|
||||||
# Création de la VM
|
# Création de la VM
|
||||||
## Horizon
|
## Horizon
|
||||||
### Création du groupe de sécurité pour le port RDP
|
### Création du groupe de sécurité pour le port RDP
|
||||||
|
Pour nous connecter à la machine virtuelle une fois installée, nous allons avoir besoin d'ouvrir le port RDP (`3389`). Si vous avez bien suivis les autres tutoriel, cela devrais etre simple. Créez donc un nouveau groupe de sécurité `RDP`en suivant ce tutoriel :
|
||||||
|
|
||||||
|
- [🛡️ Les groupes de sécurité *Comprendre et utiliser le firewall et ses règles*](/Cloud/IPC/Security-Groups)
|
||||||
|
{.links-list}
|
||||||
|
|
||||||
|
Et ajoutez la règle suivante : ![infomaniak-publiccloud_8_1.png](/images/cloud/infomaniak-public-cloud/8/infomaniak-publiccloud_8_1.png =600x)
|
||||||
|
|
||||||
### Création de l'instance
|
### Création de l'instance
|
||||||
|
Comme pour la création du groupe de sécurité, utilisez le tutoriel suivant pour la création de l'instance :
|
||||||
|
- [⚡ Les instances (machines virtuelles) *Créer et gérer une instance*](/Cloud/IPC/Instances)
|
||||||
|
{.links-list}
|
||||||
|
|
||||||
|
|
||||||
## CLI
|
## CLI
|
||||||
### Création du groupe de sécurité pour le port RDP
|
### Création du groupe de sécurité pour le port RDP
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket