Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/developer/addon-executor.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,32 @@ guarded by both the environment and `ADDONS_TEST_MODULE_ENABLED`. Outside that
guard it throws `AddonModuleUnavailableException`, which the executor records
as `unsupported` rather than retrying.

## Panelica dedicated IPv4

The Panelica hosting module implements `ServiceAddonModuleInterface` for one
add-on: a single dedicated IPv4 address. Configure the product add-on as:

```text
fulfillment_module = panelica
operation = increment
parameter = dedicated_ipv4
value = 1
unit = (empty)
auto_fulfill = on
```

On apply the module reads `GET /v1/ip-addresses/available`, skips IPv6, primary
and already assigned addresses, and patches the service account with
`PATCH /v1/accounts/{id}` and `ip_address_ids` (the existing ids plus the new
one). It records the chosen id under
`service.module_data['dedicated_ipv4']['executions'][execution_id]` before the
remote write, so a retry reuses the same address instead of allocating another.

On removal the module only unassigns the address recorded for the applied
execution. It refuses to remove the primary address or an address assigned to
another account, leaving those for manual review. It never deletes the IP
resource itself.

## Example executor use

```php
Expand Down
23 changes: 23 additions & 0 deletions lang/de/panelica.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,27 @@
'unsupported_action' => 'Nicht unterstützte Aktion.',
'unsupported_record_type' => 'Nicht unterstützter Eintragstyp.',
'upload_unavailable' => 'Auf diesem Server ist das Hochladen von Dateien noch nicht verfügbar.',
'ip_addon_absent' => 'Für dieses Add-on ist keine dedizierte IPv4-Adresse gespeichert.',
'ip_addon_status' => 'Status des dedizierten IPv4-Add-ons geladen.',
'ip_addon_valid' => 'Das dedizierte IPv4-Add-on kann angewendet werden.',
'ip_addon_invalid_parameter' => 'Nicht unterstützte Konfiguration des dedizierten IPv4-Add-ons.',
'ip_addon_no_user' => 'Für diesen Dienst wurde keine Panelica-Benutzer-ID gefunden.',
'ip_addon_account_failed' => 'Die IP-Adressen des Panelica-Kontos konnten nicht gelesen werden.',
'ip_addon_already_removed_apply' => 'Die dedizierte IPv4-Adresse wurde bereits entfernt und kann nicht erneut hinzugefügt werden.',
'ip_addon_selection_failed' => 'Die verfügbaren IPv4-Adressen konnten nicht vom Panel gelesen werden.',
'ip_addon_claimed' => 'Die gespeicherte IPv4-Adresse wird noch von einem anderen Add-on beansprucht; manuelle Prüfung erforderlich.',
'ip_addon_in_use' => 'Die gespeicherte IPv4-Adresse ist einem anderen Konto zugewiesen; manuelle Prüfung erforderlich.',
'ip_addon_primary' => 'Die primäre IPv4-Adresse wird nicht entfernt.',
'ip_addon_no_capacity' => 'Im Panel ist keine dedizierte IPv4-Adresse verfügbar.',
'ip_addon_assign_failed' => 'Die IPv4-Adresse konnte nicht zugewiesen werden: :error',
'ip_addon_verify_failed' => 'Das Panel hat die IPv4-Zuweisung nicht bestätigt.',
'ip_addon_applied' => 'Dedizierte IPv4-Adresse :ip hinzugefügt.',
'ip_addon_already_applied' => 'Die dedizierte IPv4-Adresse :ip ist bereits zugewiesen.',
'ip_addon_missing_record' => 'Für dieses Add-on ist keine Zuweisung einer dedizierten IPv4-Adresse gespeichert; manuelle Prüfung erforderlich.',
'ip_addon_release_failed' => 'Die IPv4-Adresse konnte nicht entfernt werden: :error',
'ip_addon_release_verify_failed' => 'Das Panel hat das Entfernen der IPv4-Adresse nicht bestätigt.',
'ip_addon_removed' => 'Dedizierte IPv4-Adresse :ip entfernt.',
'ip_addon_already_removed' => 'Die dedizierte IPv4-Adresse :ip ist nicht zugewiesen.',
'ip_addon_locked' => 'Für diesen Dienst läuft eine andere IPv4-Änderung; bitte später erneut versuchen.',

];
23 changes: 23 additions & 0 deletions lang/en/panelica.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,27 @@
'unsupported_action' => 'Unsupported action.',
'unsupported_record_type' => 'Unsupported record type.',
'upload_unavailable' => 'File upload is not available on this server yet.',
'ip_addon_absent' => 'No dedicated IPv4 address is recorded for this add-on.',
'ip_addon_status' => 'Dedicated IPv4 add-on status loaded.',
'ip_addon_valid' => 'The dedicated IPv4 add-on can be applied.',
'ip_addon_invalid_parameter' => 'Unsupported dedicated IPv4 add-on configuration.',
'ip_addon_no_user' => 'Panelica user ID was not found for this service.',
'ip_addon_account_failed' => 'Could not read the Panelica account IP addresses.',
'ip_addon_already_removed_apply' => 'The dedicated IPv4 address was already removed and cannot be added again.',
'ip_addon_selection_failed' => 'Could not read the available IPv4 addresses from the panel.',
'ip_addon_claimed' => 'The recorded IPv4 address is still claimed by another add-on; manual review is required.',
'ip_addon_in_use' => 'The recorded IPv4 address is assigned to another account; manual review is required.',
'ip_addon_primary' => 'Refusing to remove the primary IPv4 address.',
'ip_addon_no_capacity' => 'No dedicated IPv4 address is available on the panel.',
'ip_addon_assign_failed' => 'Could not assign the IPv4 address: :error',
'ip_addon_verify_failed' => 'The panel did not confirm the IPv4 assignment.',
'ip_addon_applied' => 'Dedicated IPv4 address :ip added.',
'ip_addon_already_applied' => 'Dedicated IPv4 address :ip is already assigned.',
'ip_addon_missing_record' => 'No dedicated IPv4 assignment is recorded for this add-on; manual review is required.',
'ip_addon_release_failed' => 'Could not remove the IPv4 address: :error',
'ip_addon_release_verify_failed' => 'The panel did not confirm the IPv4 removal.',
'ip_addon_removed' => 'Dedicated IPv4 address :ip removed.',
'ip_addon_already_removed' => 'Dedicated IPv4 address :ip is not assigned.',
'ip_addon_locked' => 'Another IPv4 change is in progress for this service; retry later.',

];
23 changes: 23 additions & 0 deletions lang/pl/panelica.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,27 @@
'unsupported_action' => 'Nieobsługiwana operacja.',
'unsupported_record_type' => 'Nieobsługiwany typ rekordu.',
'upload_unavailable' => 'Przesyłanie plików nie jest jeszcze dostępne na tym serwerze.',
'ip_addon_absent' => 'Dla tego dodatku nie zapisano dedykowanego adresu IPv4.',
'ip_addon_status' => 'Odczytano status dodatku dedykowanego IPv4.',
'ip_addon_valid' => 'Dodatek dedykowanego IPv4 można zastosować.',
'ip_addon_invalid_parameter' => 'Nieobsługiwana konfiguracja dodatku dedykowanego IPv4.',
'ip_addon_no_user' => 'Nie znaleziono identyfikatora użytkownika Panelica dla tej usługi.',
'ip_addon_account_failed' => 'Nie udało się odczytać adresów IP konta Panelica.',
'ip_addon_already_removed_apply' => 'Dedykowany adres IPv4 został już usunięty i nie można go dodać ponownie.',
'ip_addon_selection_failed' => 'Nie udało się odczytać dostępnych adresów IPv4 z panelu.',
'ip_addon_claimed' => 'Zapisany adres IPv4 jest nadal przypisany do innego dodatku; wymagana jest ręczna weryfikacja.',
'ip_addon_in_use' => 'Zapisany adres IPv4 jest przypisany do innego konta; wymagana jest ręczna weryfikacja.',
'ip_addon_primary' => 'Odmowa usunięcia głównego adresu IPv4.',
'ip_addon_no_capacity' => 'W panelu nie ma dostępnego dedykowanego adresu IPv4.',
'ip_addon_assign_failed' => 'Nie udało się przypisać adresu IPv4: :error',
'ip_addon_verify_failed' => 'Panel nie potwierdził przypisania adresu IPv4.',
'ip_addon_applied' => 'Dodano dedykowany adres IPv4 :ip.',
'ip_addon_already_applied' => 'Dedykowany adres IPv4 :ip jest już przypisany.',
'ip_addon_missing_record' => 'Dla tego dodatku nie zapisano przypisania dedykowanego adresu IPv4; wymagana jest ręczna weryfikacja.',
'ip_addon_release_failed' => 'Nie udało się usunąć adresu IPv4: :error',
'ip_addon_release_verify_failed' => 'Panel nie potwierdził usunięcia adresu IPv4.',
'ip_addon_removed' => 'Usunięto dedykowany adres IPv4 :ip.',
'ip_addon_already_removed' => 'Dedykowany adres IPv4 :ip nie jest przypisany.',
'ip_addon_locked' => 'Dla tej usługi trwa inna zmiana adresu IPv4; spróbuj ponownie później.',

];
23 changes: 23 additions & 0 deletions lang/tr/panelica.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,27 @@
'unsupported_action' => 'Desteklenmeyen işlem.',
'unsupported_record_type' => 'Desteklenmeyen kayıt türü.',
'upload_unavailable' => 'Bu sunucuda henüz dosya yüklenemiyor.',
'ip_addon_absent' => 'Bu eklenti için kayıtlı özel bir IPv4 adresi yok.',
'ip_addon_status' => 'Özel IPv4 eklentisinin durumu yüklendi.',
'ip_addon_valid' => 'Özel IPv4 eklentisi uygulanabilir.',
'ip_addon_invalid_parameter' => 'Desteklenmeyen özel IPv4 eklentisi yapılandırması.',
'ip_addon_no_user' => 'Bu hizmet için Panelica kullanıcı kimliği bulunamadı.',
'ip_addon_account_failed' => 'Panelica hesabının IP adresleri okunamadı.',
'ip_addon_already_removed_apply' => 'Özel IPv4 adresi zaten kaldırılmış; yeniden eklenemez.',
'ip_addon_selection_failed' => 'Panelden kullanılabilir IPv4 adresleri okunamadı.',
'ip_addon_claimed' => 'Kayıtlı IPv4 adresi hâlâ başka bir eklenti tarafından talep ediliyor; elle inceleme gerekli.',
'ip_addon_in_use' => 'Kayıtlı IPv4 adresi başka bir hesaba atanmış; elle inceleme gerekli.',
'ip_addon_primary' => 'Birincil IPv4 adresini kaldırma reddedildi.',
'ip_addon_no_capacity' => 'Panelde kullanılabilir özel IPv4 adresi yok.',
'ip_addon_assign_failed' => 'IPv4 adresi atanamadı: :error',
'ip_addon_verify_failed' => 'Panel IPv4 atamasını doğrulamadı.',
'ip_addon_applied' => 'Özel IPv4 adresi :ip eklendi.',
'ip_addon_already_applied' => 'Özel IPv4 adresi :ip zaten atanmış.',
'ip_addon_missing_record' => 'Bu eklenti için özel IPv4 atama kaydı yok; elle inceleme gerekli.',
'ip_addon_release_failed' => 'IPv4 adresi kaldırılamadı: :error',
'ip_addon_release_verify_failed' => 'Panel IPv4 adresinin kaldırıldığını doğrulamadı.',
'ip_addon_removed' => 'Özel IPv4 adresi :ip kaldırıldı.',
'ip_addon_already_removed' => 'Özel IPv4 adresi :ip atanmamış.',
'ip_addon_locked' => 'Bu hizmet için başka bir IPv4 değişikliği sürüyor; daha sonra tekrar deneyin.',

];
23 changes: 23 additions & 0 deletions lang/zh/panelica.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,27 @@
'unsupported_action' => '不支持的操作。',
'unsupported_record_type' => '不支持的记录类型。',
'upload_unavailable' => '此服务器暂不支持上传文件。',
'ip_addon_absent' => '此附加组件未记录专用 IPv4 地址。',
'ip_addon_status' => '专用 IPv4 附加组件状态已加载。',
'ip_addon_valid' => '可以应用专用 IPv4 附加组件。',
'ip_addon_invalid_parameter' => '不受支持的专用 IPv4 附加组件配置。',
'ip_addon_no_user' => '未找到此服务的 Panelica 用户 ID。',
'ip_addon_account_failed' => '无法读取 Panelica 账户的 IP 地址。',
'ip_addon_already_removed_apply' => '专用 IPv4 地址已被移除,无法重新添加。',
'ip_addon_selection_failed' => '无法从面板读取可用的 IPv4 地址。',
'ip_addon_claimed' => '已记录的 IPv4 地址仍被另一个附加组件占用;需要人工检查。',
'ip_addon_in_use' => '已记录的 IPv4 地址已分配给其他账户;需要人工检查。',
'ip_addon_primary' => '拒绝移除主 IPv4 地址。',
'ip_addon_no_capacity' => '面板上没有可用的专用 IPv4 地址。',
'ip_addon_assign_failed' => '无法分配 IPv4 地址::error',
'ip_addon_verify_failed' => '面板未确认 IPv4 分配。',
'ip_addon_applied' => '已添加专用 IPv4 地址 :ip。',
'ip_addon_already_applied' => '专用 IPv4 地址 :ip 已分配。',
'ip_addon_missing_record' => '此附加组件没有专用 IPv4 分配记录;需要人工检查。',
'ip_addon_release_failed' => '无法移除 IPv4 地址::error',
'ip_addon_release_verify_failed' => '面板未确认 IPv4 移除。',
'ip_addon_removed' => '已移除专用 IPv4 地址 :ip。',
'ip_addon_already_removed' => '专用 IPv4 地址 :ip 未分配。',
'ip_addon_locked' => '此服务正在进行另一项 IPv4 更改;请稍后重试。',

];
Loading
Loading