Skip to content

Commit 6234b70

Browse files
thevilledevscop
andauthored
chore: installation instructions and README (#32)
Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com> Co-authored-by: Ville Skyttä <ville.skytta@upcloud.com>
1 parent 25d58e5 commit 6234b70

2 files changed

Lines changed: 108 additions & 0 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# UpCloud Blesta Module
2+
3+
Enabling hosting providers to offer UpCloud cloud servers through their Blesta billing platform.
4+
5+
## Overview
6+
7+
The UpCloud Blesta Module provides seamless integration between Blesta billing software and UpCloud's cloud infrastructure platform. This module allows hosting providers to automatically provision, manage, and bill UpCloud VPS services directly from their Blesta installation.
8+
9+
## Requirements
10+
11+
- **Blesta**: Version 5.10 or higher
12+
- **PHP**: Version 7.2 or higher
13+
- **UpCloud Account**: Active UpCloud account with API access
14+
15+
## Installation & configuration
16+
17+
For comprehensive installation instructions, see [INSTALL.md](INSTALL.md).
18+
19+
## Contributing
20+
21+
Contributions to the module are welcome. To contribute:
22+
23+
1. Fork the repository
24+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
25+
3. Commit your changes (`git commit`), prefer commit messages that adhere to [conventional commits](https://www.conventionalcommits.org)
26+
4. Push the branch (`git push -u origin feature/amazing-feature`)
27+
5. Open a Pull Request
28+
29+
## License
30+
31+
This module is released under the MIT License. See the [LICENSE](LICENSE) file for details.

docs/INSTALL.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# UpCloud Blesta Module Installation Guide
2+
3+
This guide will walk you through the process of installing and configuring the UpCloud VPS Module for Blesta.
4+
5+
## Installation
6+
7+
### Downloading and Installing the Module
8+
9+
1. Obtain the module from the UpCloud GitHub repository.
10+
2. Extract the module files to your local system.
11+
3. Upload the entire module folder to your Blesta installation directory at `/path-to-your-blesta/components/modules/upcloud/` on your Blesta server.
12+
4. Ensure proper file permissions are set for the module directory.
13+
14+
### Obtaining API Credentials
15+
16+
The module uses API tokens for interacting with the UpCloud platform.
17+
18+
Follow the instructions first to [install the upctl command-line tool](https://upcloudltd.github.io/upcloud-cli/) to your machine.
19+
20+
Then proceed with the instructions to [create a token](https://upcloudltd.github.io/upcloud-cli/commands_reference/upctl_account/token/create/).
21+
22+
### Adding Your First UpCloud Account
23+
24+
1. Log in to your Blesta admin panel.
25+
2. Navigate to **Settings** > **Modules**.
26+
3. Find "UpCloud VPS" in the available modules list and click **Install**.
27+
4. After installation, click **Manage** next to the UpCloud VPS module.
28+
5. Click **Add Account** to create your first UpCloud server connection.
29+
6. Fill in the following details:
30+
- **Account Name**: A descriptive name for this UpCloud account (e.g., "UpCloud Production")
31+
- **API Token**: The API token you generated in the previous step
32+
7. Click **Add** to save the configuration.
33+
34+
## Configuration
35+
36+
### Creating a Package Group
37+
38+
1. Navigate to **Packages** > **Package Groups** in your Blesta admin panel.
39+
2. Click **Create Group** (the `[+]` icon) to create a new package group.
40+
3. Provide the following details:
41+
- **Name**: Enter a descriptive name (e.g., "UpCloud VPS Plans")
42+
- **Description**: Optional description for internal use
43+
- **Type**: Select "Standard"
44+
4. Configure other settings as needed for your business requirements.
45+
5. Click **Create Group** to create the package group.
46+
47+
### Creating a New Package
48+
49+
1. Navigate to **Packages** > **Packages**
50+
2. Click **Create Package** (the `[+]` icon)
51+
3. Configure the basic package details:
52+
- **Name**: Provide a descriptive package name (e.g., "UpCloud VPS - 2GB RAM")
53+
- **Description**: Detailed description for clients
54+
- **Status**: Set to "Active"
55+
4. Set up pricing for the package according to your business model.
56+
5. In the **Group Membership** section, make the package a member of the package group created earlier.
57+
6. Click **Module** tab to proceed to module settings.
58+
59+
On the module settings page, configure the following:
60+
61+
1. **Module**: Select the UpCloud module.
62+
2. **Account**: Select the UpCloud account you created earlier.
63+
3. **Server Plan**: Select from available UpCloud server plans or choose custom configuration.
64+
4. **Template Settings**:
65+
- **Set Template**: Choose whether admin sets template or client can choose
66+
- **Template**: Select default operating system template
67+
68+
Click **Create Package** to create the package.
69+
70+
### Pricing Considerations
71+
72+
You have the flexibility to:
73+
74+
- Set custom pricing for different server plans
75+
- Add surcharges for premium templates (Windows)
76+
- Configure location-based pricing variations
77+
- Set up bandwidth overage charges

0 commit comments

Comments
 (0)